microblaze: fix variable name collision with syscall macros
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
2
3         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
4         Rename "ret" to "__ret".
5         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
6         inline_syscall5, inline_syscall6): Likewise.
7
8 2016-07-19   Will Newton  <will.newton@gmail.com>
9
10         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
11         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
12         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
14         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
15
16 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
17
18         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
19         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
20         -mfpmath=387 with $(rtld-CFLAGS).
21         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
22         $(rtld-CFLAGS).
23
24 2016-07-18   Ross Burton  <ross.burton@intel.com>
25              Khem Raj  <raj.khem@gmail.com>
26
27         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
28         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
29         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
30         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
31         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
32         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
33         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
34         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
35         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
36         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
37         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
38         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
39         R_METAG_TLS_DTPOFF): New.
40
41 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
42             Matt Clay  <mclay@lycos.com>
43
44         [BZ #20357]
45         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
46         to call __mpsin/__mpcos and to negate values.
47         * math/auto-libm-test-in: Add test.
48         * math/auto-libm-test-out: Regenerate.
49
50 2016-07-18  Zack Weinberg  <zackw@panix.com>
51
52         * grp/Makefile: Don't install the internal header grp-merge.h.
53
54 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
55
56         * sysdeps/aarch64/libm-test-ulps: Regenerated.
57
58 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
59
60         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
61
62 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
63
64         [BZ #15368]
65         * sysdeps/unix/sysv/linux/nptl-signals.h
66         (__nptl_clear_internal_signals): New function.
67         (__libc_signal_block_all): Likewise.
68         (__libc_signal_block_app): Likewise.
69         (__libc_signal_restore_set): Likewise.
70         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
71         implementation.
72         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
73         the cached pid/tid value in pthread structure.
74
75 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
76
77         [BZ #20347]
78         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
79
80 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
81
82         [BZ #20348]
83         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
84         preadv64, pwrite64 and pwritev64.
85
86 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
87
88         [BZ #20350]
89         * posix/tst-preadwrite.c: Renamed to ...
90         * posix/tst-preadwrite-common.c: This.
91         (PREAD): Removed.
92         (PWRITE): Likewise.
93         (STRINGIFY): Likewise.
94         (STRINGIFY2): Likewise.
95         (do_prepare): Make it static and remove function arguments.
96         (do_test): Likewise.
97         (PREPARE): Updated.
98         (TEST_FUNCTION): New.
99         (name): Make it static.
100         (fd): Likewise.
101         (do_prepare): Use create_temp_file.
102         (do_test): Renamed to ...
103         (do_test_with_offset): This.  Make it static and accept offset.
104         Properly check return value of PWRITE and PREAD.  Return bytes
105         read.  Don't close fd nor unlink name.
106         * posix/tst-preadwrite.c: Rewrite.
107         * posix/tst-preadwrite64.c: Likewise.
108
109 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
110
111         [BZ #20309]
112         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
113         -mtls-dialect=gnu2 works.
114         * configure: Regenerated.
115         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
116         (tests): Add tst-gnu2-tls1.
117         (modules-names): Add tst-gnu2-tls1mod.
118         ($(objpfx)tst-gnu2-tls1): New.
119         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
120         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
121         * elf/tst-gnu2-tls1.c: New file.
122         * elf/tst-gnu2-tls1mod.c: Likewise.
123         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
124         bytes for push in the PLT entry to align the stack.
125
126 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
127
128         [BZ #20349]
129         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
130
131 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
132
133         [BZ #18707]
134         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
135         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
136
137 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
138
139         * sysdeps/unix/sysv/linux/sysdep.h
140         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
141         guards.
142         * misc/tst-preadvwritev-common.c: New file.
143         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
144         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
145         a check for files larger than 2GB.
146
147         * sysdeps/unix/sysv/linux/mips/kernel-features.h
148         (__ASSUME_OFF_DIFF_OFF64): Remove define.
149         * sysdeps/unix/sysv/linux/pread.c
150         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
151         __OFF_T_MATCHES_OFF64_T.
152         * sysdeps/unix/sysv/linux/pread64.c
153         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
154         * sysdeps/unix/sysv/linux/preadv.c
155         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
156         * sysdeps/unix/sysv/linux/preadv64.c
157         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
158         * sysdeps/unix/sysv/linux/pwrite.c
159         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
160         * sysdeps/unix/sysv/linux/pwrite64.c
161         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
162         * sysdeps/unix/sysv/linux/pwritev.c
163         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
164         * sysdeps/unix/sysv/linux/pwritev64.c
165         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
166
167 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
168
169         * sysdeps/unix/sysv/linux/tile/kernel-features.h
170         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
171
172 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
173
174         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
175
176 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
177
178         [BZ #20240]
179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
180         (CFLAGS-s_modf-ppc32.c): New variable.
181         (CFLAGS-s_modff-ppc32.c): Likewise.
182         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
183         (CFLAGS-s_modf-ppc64.c): Likewise.
184         (CFLAGS-s_modff-ppc64.c): Likewise.
185
186 2016-07-07  Andreas Schwab  <schwab@suse.de>
187
188         [BZ #20263]
189         * nptl/tst-robust10.c: New test.
190         * nptl/Makefile (tests): Add tst-robust10.
191
192 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
193
194         [BZ #20263]
195         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
196
197 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
198
199         * sysdeps/s390/linkmap.h (struct link_map_machine):
200         Remove member gotplt and add member jmprel.
201         * sysdeps/s390/s390-32/dl-machine.h
202         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
203         instead of gotplt with &got[3].
204         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
205         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
206
207 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
208
209         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
210
211 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
212
213         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
214         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
215         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
216         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
217         * libio/vtables.c (_IO_vtable_check)
218         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
219         * libio/libioP.h (IO_set_accept_foreign_vtables)
220         [!PTR_MANGLE]: Do not call PTR_MANGLE.
221
222 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
223
224         [BZ #20314]
225         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
226         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
227         $(common-objpfx)cmath.
228         ($(common-objpfx)cstdlib): New target.
229         ($(common-objpfx)cmath): Likewise.
230
231 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
232
233         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
234
235 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
236
237         [BZ #20327]
238         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
239         are not part of the string.
240
241 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
242
243         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
244         * nptl/tst-cancel4-common.h (fifoname): New variable.
245         (fifofd): Likewise.
246         (cl_fifo): New function.
247         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
248         SIGINT.
249         (tf_open): Add early cancel test.
250
251 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
252
253         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
254
255 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
256
257         * sysdeps/generic/ldsodefs.h
258         (dl_symbol_visibility_binds_local_p): New inline function.
259         * elf/dl-addr.c (determine_info): Treat hidden and internal
260         symbols as local.
261         * elf/dl-lookup.c (do_lookup_x): Likewise.
262         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
263
264 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
265
266         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
267         invalid exception for a sNaN input.
268         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
269         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
270         (__nearbyint_vis3): Likewise
271         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
272         (__nearbyintf_vis3): Likewise
273         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
274         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
275         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
276         Likewise.
277         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
278         Likewise.
279
280 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
281
282         [BZ #20139]
283         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
284         (HAVE_AVX512DQ_ASM_SUPPORT): This.
285         * sysdeps/x86_64/configure.ac: Require assembler from binutils
286         2.24 or above.
287         (HAVE_AVX512_ASM_SUPPORT): Removed.
288         (HAVE_AVX512DQ_ASM_SUPPORT): New.
289         * sysdeps/x86_64/configure: Regenerated.
290         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
291         check unconditional.
292         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
293         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
294         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
295         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
296         Likewise.
297         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
298         Likewise.
299         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
300         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
301         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
302         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
303         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
304         Likewise.
305         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
306         Likewise.
307         * sysdeps/x86_64/multiarch/memset.S: Likewise.
308         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
309         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
310         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
311         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
312         Likewise.
313         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
314         Likewise.
315         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
316         Likewise.
317         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
318         Likewise.
319         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
320         Likewise.
321         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
322         Likewise.
323         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
324         Likewise.
325         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
326         Likewise.
327         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
328         Likewise.
329         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
330         Likewise.
331         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
332         Likewise.
333
334 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
335
336         [BZ #20024]
337         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
338         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
339         of this implementation of vector function.
340         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
341         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
342         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
343         Likewise.
344         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
345         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
346         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
347         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
348         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
349         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
350         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
351         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
352         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
353         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
354         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
355         for testing vector sincos with fixed ABI.
356         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
357         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
358         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
359         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
360         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
361         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
362         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
363         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
364         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
365         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
366         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
367         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
368         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
369         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
370         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
371         * sysdeps/x86_64/fpu/Makefile: Added new tests.
372
373 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
374
375         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
376
377 2016-06-30  Anton Blanchard  <anton@samba.org>
378
379         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
380         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
381         s_sinf-ppc64.
382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
385         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
386
387 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
388
389         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
390         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
391         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
392         e_expf-ppc64.
393         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
394         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
395         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
396         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
397
398 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
399
400         [BZ #20277]
401         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
402         when SHARED is defined.
403
404 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
405
406         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
407         (index_arch_Prefer_ERMS): Likewise.
408         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
409         __memcpy_erms for Prefer_ERMS.
410         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
411         (__memmove_erms): Enabled for libc.a.
412         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
413         __memmove_erms or Prefer_ERMS.
414         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
415         __mempcpy_erms for Prefer_ERMS.
416         * sysdeps/x86_64/multiarch/memset.S (memset): Return
417         __memset_erms for Prefer_ERMS.
418
419 2016-06-30  Andreas Schwab  <schwab@suse.de>
420
421         [BZ #20262]
422         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
423         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
424         of memory.
425
426 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
427
428         [BZ #18645]
429         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
430         (test-extras): Add tst-cleanupx4aux.
431         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
432         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
433         tst-cleanupx4aux.o.
434         * nptl/tst-cleanupx4aux.c: New file.
435
436 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
437
438         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
439
440 2016-06-29  Andreas Schwab  <schwab@suse.de>
441
442         [BZ #20260]
443         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
444         address before the beginning of the string as an integer to avoid
445         array-bounds warning.
446
447 2016-06-28  Richard Henderson  <rth@redhat.com>
448
449         * elf/elf.h (EM_BPF): New.
450         (EM_NUM): Update.
451         (R_BPF_NONE, R_BPF_MAP_FD): New.
452
453         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
454         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
455         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
456         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
457         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
458         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
459         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
460         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
461         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
462         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
463         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
464         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
465         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
466         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
467         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
468         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
469         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
470         (EM_NUM): Update.
471
472 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
473
474         [BZ #18960]
475         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
476         Set _nl_current_LC_CATEGORY_used to two instead of one.
477
478 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
479
480         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
481         (do_test): ... this.
482         (TEST_FUNCTION): New macro.
483          Include test-skeleton.c.
484         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
485         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
486
487 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
488
489         [BZ #15479]
490         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
491         floating-point environment rather than just control word.
492         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
493         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
494         floating-point environment, with "invalid" exceptions merged in,
495         rather than just control word.
496         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
497         * math/libm-test.inc (trunc_test_data): Do not allow spurious
498         "inexact" exceptions.
499
500         [BZ #15479]
501         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
502         floating-point environment rather than just control word.
503         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
504         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
505         floating-point environment, with "invalid" exceptions merged in,
506         rather than just control word.
507         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
508         * math/libm-test.inc (floor_test_data): Do not allow spurious
509         "inexact" exceptions.
510
511         [BZ #15479]
512         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
513         floating-point environment rather than just control word.
514         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
515         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
516         floating-point environment, with "invalid" exceptions merged in,
517         rather than just control word.
518         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
519         * math/libm-test.inc (ceil_test_data): Do not allow spurious
520         "inexact" exceptions.
521
522 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
523
524         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
525         __libc_vfork.
526         (__vfork) [IS_IN (libc)]: Remove alias.
527         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
528         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
529         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
530
531 2016-06-24  Torvald Riegel  <triegel@redhat.com>
532
533         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
534         of atomic_compare_and_exchange_bool_rel.
535         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
536         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
537         catomic_compare_and_exchange_bool_rel): Remove.
538         * sysdeps/aarch64/atomic-machine.h
539         (atomic_compare_and_exchange_bool_rel): Likewise.
540         * sysdeps/alpha/atomic-machine.h
541         (atomic_compare_and_exchange_bool_rel): Likewise.
542         * sysdeps/arm/atomic-machine.h
543         (atomic_compare_and_exchange_bool_rel): Likewise.
544         * sysdeps/mips/atomic-machine.h
545         (atomic_compare_and_exchange_bool_rel): Likewise.
546         * sysdeps/microblaze/atomic-machine.h
547         ( __arch_compare_and_exchange_bool_8_rel,
548         __arch_compare_and_exchange_bool_16_rel): Likewise.
549         * sysdeps/powerpc/atomic-machine.h
550         ( __arch_compare_and_exchange_bool_8_rel,
551         __arch_compare_and_exchange_bool_16_rel): Likewise.
552         * sysdeps/powerpc/powerpc32/atomic-machine.h
553         ( __arch_compare_and_exchange_bool_32_rel,
554         __arch_compare_and_exchange_bool_64_rel): Likewise.
555         * sysdeps/powerpc/powerpc64/atomic-machine.h
556         ( __arch_compare_and_exchange_bool_32_rel,
557         __arch_compare_and_exchange_bool_64_rel): Likewise.
558         * sysdeps/tile/atomic-machine.h
559         (atomic_compare_and_exchange_bool_rel): Likewise.
560
561 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
562
563         [BZ #20296]
564         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
565         when either argument is a NaN.
566         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
567         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
568
569         * math/libm-test.inc (snan_value_ld): New macro.
570         (isgreater_test_data): Add sNaN tests.
571         (isgreaterequal_test_data): Likewise.
572         (isless_test_data): Likewise.
573         (islessequal_test_data): Likewise.
574         (islessgreater_test_data): Likewise.
575         (isunordered_test_data): Likewise.
576         (nextafter_test_data): Likewise.
577         (nexttoward_test_data): Likewise.
578         (remainder_test_data): Likewise.
579         (remquo_test_data): Likewise.
580         (significand_test_data): Likewise.
581         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
582
583 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
584
585         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
586         environment macros are defined.
587         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
588
589 2016-06-23  Florian Weimer  <fweimer@redhat.com>
590
591         [BZ #20191]
592         Implement vtable verification in libio.
593         * Makerules (shlib.lds): Place __libc_IO_vtables section.
594         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
595         * debug/vdprintf_chk.c (__vdprintf_chk): Call
596         _IO_new_file_init_internal instead of _IO_file_init.
597         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
598         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
599         * libio/Makefile (routines): Add vtables.
600         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
601         (_IO_init): Remove, not for internal use.
602         (_IO_init_internal): Declare, internal replacement for _IO_init.
603         (_IO_file_init): Remove, not for internal use.
604         (_IO_new_file_init): Remove, not for internal use.
605         (_IO_new_file_init_internal): Declare, internal replacement for
606         _IO_new_file_init.
607         (_IO_old_file_init): Remove, not for internal use.
608         (_IO_old_file_init_internal): Declare, internal replacement for
609         _IO_old_file_init.
610         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
611         internal use.
612         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
613         Declare.
614         (libio_vtable): New macro.
615         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
616         functions.
617         * libio/fileops.c (_IO_new_file_init_internal): Rename from
618         _IO_new_file_init.
619         (_IO_new_file_init): New externally visible wrapper which disables
620         vtable verification.
621         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
622         Define as vtables.
623         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
624         (_IO_init): New externally visible wrapper which disables
625         vtable verification.
626         * libio/iofdopen.c (_IO_new_fdopen): Call
627         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
628         comment.
629         * libio/iofopen.c (__fopen_internal): Call
630         _IO_new_file_init_internal instead of _IO_file_init.
631         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
632         Define as vtables.
633         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
634         _IO_new_file_init_internal instead of _IO_file_init.
635         * libio/iopopen.c (_IO_new_popen): Likewise.
636         (_IO_proc_jumps): Define as vtable.
637         * libio/iovdprintf.c (_IO_vdprintf): Call
638         _IO_new_file_init_internal instead of _IO_file_init.
639         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
640         (__open_memstream): Call _IO_init_internal instead of _IO_init.
641         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
642         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
643         _IO_old_file_init.
644         (_IO_old_file_init): New externally visible wrapper which disables
645         vtable verification.
646         (_IO_old_file_jumps): Define as vtable.
647         * libio/oldiofdopen.c (_IO_old_fdopen): Call
648         _IO_old_file_init_internal instead of _IO_old_file_init.
649         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
650         * libio/oldiopopen.c (_IO_old_popen): Likewise.
651         (_IO_old_proc_jumps): Define as vtable.
652         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
653         Define as vtables.
654         * libio/vtables.c: New file.
655         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
656         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
657         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
658         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
659         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
660         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
661         instead of _IO_init.
662
663 2016-06-23  Florian Weimer  <fweimer@redhat.com>
664
665         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
666
667 2016-06-23  Florian Weimer  <fweimer@redhat.com>
668
669         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
670         potentially unused.
671
672 2016-06-22  Florian Weimer  <fweimer@redhat.com>
673
674         * test-skeleton.c (write_message): New function.
675         * malloc/tst-mallocfork2.c (write_message): Remove.
676         * debug/tst-longjmp_chk2.c (write_indented): New function.
677         (write_message): Remove.
678         (stackoverflow_handler): Call write_indented.
679
680 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
681
682         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
683         "inexact" exceptions after fnstenv.
684         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
685         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
686         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
687
688 2015-06-22  Zack Weinberg  <zackw@panix.com>
689
690         * sysdeps/generic/bits/hwcap.h: Moved to ...
691         * bits/hwcap.h: Here.
692
693 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
694
695         * sysdeps/aarch64/memcpy.S (memcpy):
696         Further tuning for performance.
697
698 2016-06-21  Florian Weimer  <fweimer@redhat.com>
699
700         [BZ #20284]
701         * malloc/arena.c (reused_arena): Do not return NULL if we start
702         out with a non-corrupted arena.
703
704 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
705
706         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
707         * misc/tst-preadvwritev.c: New file.
708         * misc/tst-preadvwritev64.c: Likewise.
709         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
710         usage.
711         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
712         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
713         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
714         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
715
716 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
717
718         [BZ #19654]
719         * sysdeps/x86_64/fpu/Makefile: Added new tests.
720         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
721         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
722         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
723         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
724         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
725         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
726         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
727         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
728         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
729         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
730         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
731         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
732         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
733         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
734         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
735         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
736         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
737         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
738         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
739         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
740         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
741         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
742         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
743         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
744         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
745
746 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
747
748         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
749         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
750
751 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
752
753         * sysdeps/aarch64/memcpy.S (memcpy):
754         Rewrite of optimized memcpy and memmove.
755         * sysdeps/aarch64/memmove.S (memmove): Remove
756         memmove code (merged into memcpy.S).
757
758 2016-06-20  Florian Weimer  <fweimer@redhat.com>
759
760         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
761         * sysdeps/generic/dl-dtv.h: New file.
762         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
763         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
764         (dtv_t): Remove.
765         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
766         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
767         (dtv_t): Remove.
768         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
769         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
770         (dtv_t): Remove.
771         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
772         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
773         (dtv_t): Remove.
774         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
775         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
776         (dtv_t): Remove.
777         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
778         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
779         (dtv_t): Remove.
780         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
781         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
782         (dtv_t): Remove.
783         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
784         (dtv_t): Remove.
785         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
786         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
787         (dtv_t): Remove.
788         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
789         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
790         (dtv_t): Remove.
791         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
792         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
793         (dtv_t): Remove.
794         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
795         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
796         (dtv_t): Remove.
797         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
798         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
799         (dtv_t): Remove.
800         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
801         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
802         (dtv_t): Remove.
803         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
804         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
805         (dtv_t): Remove.
806         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
807         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
808         (dtv_t): Remove.
809
810 2016-06-20  Florian Weimer  <fweimer@redhat.com>
811
812         Revert symbol poisoning of  __malloc_initialize_hook.
813         * include/stdc-predef.h (__malloc_initialize_hook): Remove
814         poisoning.
815         * malloc/Makefile: Remove un-poisoning.
816         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
817         instead of old__malloc_initialize_hook.
818         * malloc/malloc-hooks.h: Likewise.
819         * malloc/malloc.c: Likewise.
820         * malloc/mcheck-init.c: Likewise.
821
822 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
823
824         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
825
826 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
827
828         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
829         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
830         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
831         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
832
833 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
834
835         * NEWS: Mention addition of nextup and nextdown.
836         * manual/arith.texi: Document nextup and nextdown.
837         * manual/libm-err-tab.pl: Add nextup and nextdown.
838         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
839         * math/Versions (libm): Add GLIBC_2.24.
840         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
841         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
842         Add new test.
843         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
844         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
845         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
846         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
847         (nextup_test_data): Likewise.
848         (nextdown_test_data): Likewise.
849         * math/s_nextdown.c: New file.
850         * math/s_nextdownf.c: Likewise.
851         * math/s_nextdownl.c: Likewise.
852         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
853         F(nextup): New function.
854         F(nextdown): Likewise.
855         * math/tgmath.h: Add nextup and nextdown.
856         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
857         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
858         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
859         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
860         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
861         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
862         Add nextup and nextdown.
863         (CFLAGS-nldbl-nextup.c): New variable.
864         (CFLAGS-nldbl-nextdown.c): Likewise.
865         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
866         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
867         * sysdeps/nacl/libm.abilist: Update.
868         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
869         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
870         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
871         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
872         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
873         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
874         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
875         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
876         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
877         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
878         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
879         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
882         Likewise.
883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
885         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
886         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
887         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
888         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
889         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
890         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
892         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
893         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
894         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
895         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
896
897 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
898
899         * manual/pattern.texi: Fix typos & grammar errors.
900
901 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
902
903         * manual/search.texi: Fix typos & grammar errors.
904
905 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
906
907         * manual/message.texi: Fix typos & grammar errors.
908
909 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
910
911         * manual/contrib.texi: Fix spelling typos.
912         * manual/crypt.texi: Likewise.
913         * manual/filesys.texi: Likewise.
914         * manual/locale.texi: Likewise.
915         * manual/message.texi: Likewise.
916         * manual/nss.texi: Likewise.
917         * manual/string.texi: Likewise.
918
919 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
920
921         * manual/locale.texi: Fix typos & grammar errors.
922
923 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
924
925         * manual/charset.texi: Fix typos & grammar errors.
926
927 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
928
929         * manual/string.texi: Fix typos.
930
931 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
932
933         * manual/ctype.texi: Fix typos.
934
935 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
936
937         * manual/memory.texi: Fix various typos & grammar errors.
938
939 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
940
941         [BZ #20255]
942         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
943         * math/libm-test.inc (fdim_test_data): Add another test.
944
945         [BZ #6796]
946         [BZ #20255]
947         [BZ #20256]
948         * math/s_fdim.c: Include <math_private.h>.
949         (__fdim): Use math_narrow_eval on result.
950         * math/s_fdimf.c: Include <math_private.h>.
951         (__fdimf): Use math_narrow_eval on result.
952         * sysdeps/i386/fpu/s_fdim.S: Remove file.
953         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
954         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
955         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
956         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
957         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
958         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
959         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
960         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
961         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
962         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
963         * math/libm-test.inc (fdim_test_data): Expect errno setting on
964         overflow.  Add sNaN tests.
965
966         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
967         fpclassify.
968         * math/s_fdimf.c (__fdimf): Likewise.
969         * math/s_fdiml.c (__fdiml): Likewise.
970
971 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
972
973         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
974         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
975         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
976         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
977         ifunc'ed strcasecmp/strncasecmp.
978         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
979         [EALIGN]: Removed.
980         [END]: Likewise.
981         [__strcasecmp]: Define instead of the above to control symbol name.
982         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
983         for __strcasecmp_power8.
984         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
985         for __strncasecmp_power8.
986         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
987         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
988         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
989         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
990         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
991         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
992
993 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
994
995         [BZ #20252]
996         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
997         arguments when second argument is a NaN.
998         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
999         qNaN tests.
1000
1001         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
1002         (conj_test_data): Likewise.
1003         (copysign_test_data): Likewise.
1004         (creal_test_data): Likewise.
1005         (fma_test_data): Likewise.
1006         (fmod_test_data): Likewise.
1007
1008         [BZ #20250]
1009         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
1010         itself.
1011         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
1012         zero input to itself.
1013         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
1014         Likewise.
1015         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
1016         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
1017         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1018         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
1019         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
1020
1021 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1022
1023         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
1024         * nptl/tst-cancel4-common.c: New file.
1025         * nptl/tst-cancel4-common.h: Likewise.
1026         * nptl/tst-cancel4.c: Move common definitions to
1027         tst-cancel4-common.{c,h} file.
1028         * nptl/tst-cancel4_1.c: New test.
1029         * nptl/tst-cancel4_2.c: New test.
1030
1031 2016-06-13  Florian Weimer  <fweimer@redhat.com>
1032
1033         [BZ #20248]
1034         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
1035         (write_message): New function.
1036         (stackoverflow_handler): Call it instead of printf, to avoid
1037         excessive stack usage by printf.
1038         (do_test): Restore SIGSEGV, SIGBUS default handlers.
1039
1040 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1041
1042         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
1043         (prio_inherit_missing): Remove define.
1044         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1045         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1046         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
1047         Likewise.
1048         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1049         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1050         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1051         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1052         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1053         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1054
1055 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1056
1057         [BZ #19670]
1058         [BZ #19672]
1059
1060         * io/test-lfs.c (do_prepare): Use xmalloc.
1061         * io/tst-fcntl.c (do_prepare): Likewise.
1062         * libio/tst-fopenloc.c (do_bz17916): Likewise.
1063         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
1064         * login/tst-utmp.c (do_prepare): Likewise.
1065         * posix/tst-exec.c (do_prepare): Likewise.
1066         * posix/tst-pathconf.c (prepare): Likewise.
1067         * posix/tst-spawn.c (do_prepare): Likewise.
1068         * posix/tst-truncate.c (do_prepare): Likewise.
1069         * rt/tst-aio.c (do_prepare): Likewise.
1070         * rt/tst-aio64.c (do_prepare): Likewise.
1071
1072 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1073
1074         [BZ #20237]
1075         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
1076         (get*ent): Set entidx to NULL during initialization.  If entidx is
1077         NULL, start iteration from the beginning.
1078
1079 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1080
1081         * malloc/malloc.c (musable): Return correct size for dumped fake
1082         mmapped chunk.
1083
1084 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1085
1086         [BZ #20222]
1087         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
1088         (_IO_cookie_write): Likewise.
1089         (_IO_cookie_seek): Likewise.
1090         (_IO_cookie_close): Likewise.
1091         (_IO_old_cookie_seek): Likewise.
1092         (set_callbacks): New function.
1093         (_IO_cookie_init): Call set_callbacks to copy callbacks.
1094
1095 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
1096
1097         * locale/programs/localedef.c (oldstyle_tables): Remove.
1098         * locale/programs/localedef.h (oldstyle_tables): Likewise.
1099
1100 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
1101
1102         [BZ #20240]
1103         * math/Makefile (CFLAGS-s_modf.c): New variable.
1104         (CFLAGS-s_modff.c): Likewise.
1105         (CFLAGS-s_modfl.c): Likewise.
1106         * math/libm-test.inc (modf_test_data): Add sNaN tests.
1107
1108 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
1109
1110         [BZ #20215]
1111         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
1112         [!__GNUC_PREREQ (3,2)]: Likewise.
1113
1114 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
1115
1116         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
1117         (msghdr.msg_controllen): Likewise.
1118         (cmsghdr.cmsg_len): Likewise.
1119         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
1120         ptw-oldsendmsg.
1121         (CFLAGS-oldrecvmsg.c): Remove rule.
1122         (CFLAGS-oldsendmsg.c): Likewise.
1123         (CFLAGS-recvmsg.c): Add rule.
1124         (CFLAGS-sendmsg.c): Likewise.
1125         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1126         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1127         (CFLAGS-recvmsg.c): Remove rule.
1128         (CFLAGS-sendmsg.c): Likewise.
1129         (CFLAGS-oldrecvmsg.c): Likewise.
1130         (CFLAGS-oldsendmsg.c): Likewise.
1131         (CFLAGS-recvmmsg.c): Likewise.
1132         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1133         to kernel defined interfaces.
1134         (msghdr.msg_controllen): Likewise.
1135         (cmsghdr.cmsg_len): Likewise.
1136         (msghdr.__glibc_reserved1): Remove member.
1137         (msghdr.__glibc_reserved2): Likewise.
1138         (cmsghdr.__glibc_reserved1): Likewise.
1139         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1140         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1141         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1142         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1143         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1144         version.
1145         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1146         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1147         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1148         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1149         Remove recvmsg and sendmsg.
1150         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1151         Likewise.
1152         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1153         Likewise.
1154         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1155         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1156         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1157         Likewise.
1158         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1159         Likewise.
1160         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1161         [libc] (GLIBC_2.24): Likewise.
1162         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1163         Likewise.
1164         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1165         Likewise.
1166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1167         [libc] (GLIBC_2.24): Likewise.
1168         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1169         Likewise.
1170         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1171         Likewise.
1172         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1173         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1174         Likewise.
1175         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1176         Likewise.
1177         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1178         Likewise.
1179         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1180         Likewise.
1181         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1182         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1183         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1184         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1185         version for {recv,send,recm,sendm}msg.
1186         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1187         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1188         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1189         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1190         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1191         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1192         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1193         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1194         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1195         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1196         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1197         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1199         Likewise.
1200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1201         Likewise.
1202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1204         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1205         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1206         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1207         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1208         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1209         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1211         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1212         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1213         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1214         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1215
1216 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1217
1218         [BZ #19564]
1219         Remove __malloc_initialize_hook from the API.
1220         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1221         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1222         #pragma GCC poison.
1223         * malloc/malloc-hooks.h: New file.
1224         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1225         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1226         (old__malloc_initialize_hook): Rename from
1227         __malloc_initialize_hook to evade poisoning.  Turn into compat
1228         symbol.
1229         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1230         __malloc_initialize_hook.
1231         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1232         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1233         * manual/memory.texi (Hooks for Malloc): Remove
1234         __malloc_initialize_hook.  Adjust hook example.
1235
1236 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1237
1238         [BZ #20235]
1239         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1240         itself.
1241         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1242         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1243
1244         [BZ #20234]
1245         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1246         infinity or NaN input to itself.
1247
1248         [BZ #20233]
1249         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1250         to itself.
1251
1252         [BZ #20232]
1253         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1254         itself.
1255
1256 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1257
1258         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1259         __libc_start_main via GOT.
1260
1261 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1262
1263         * sysdeps/x86_64/memcopy.h: New file.
1264         * sysdeps/x86_64/wordcopy.c: Likewise.
1265
1266 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1267
1268         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1269         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1270         <cstdlib>.
1271         (optimization_barrier): New.
1272         (do_test): Use it.  Call quick_exit in the global namespace.
1273         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1274         instead of <cstdlib>, <thread>.
1275         (optimization_barrier): New.
1276         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1277         Call quick_exit in the global namespace.
1278         (do_test): Call optimization_barrier.  Use pthread_create,
1279         pthread_join instead of std::thread.
1280
1281 2016-06-09  Andreas Schwab  <schwab@suse.de>
1282
1283         [BZ #19755]
1284         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1285         new entries in auto-propagate mode.
1286         * nscd/grpcache.c (cache_addgr): Likewise.
1287
1288 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1289
1290         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1291         New functions.
1292         (add_temp_file): Use them.
1293
1294 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1295
1296         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1297
1298 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1299
1300         [BZ #20229]
1301         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1302         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1303         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1304
1305         [BZ #20228]
1306         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1307         itself.
1308         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1309         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1310
1311         [BZ #20227]
1312         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1313         itself.
1314         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1315         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1316         * math/libm-test.inc (log_test_data): Add sNaN tests.
1317
1318         [BZ #20226]
1319         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1320         itself.
1321         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1322         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1323         (exp10_test_data): Likewise.
1324         (expm1_test_data): Likewise.
1325
1326         [BZ #20225]
1327         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1328         itself.
1329         * math/s_ldexpf.c (__ldexpf): Likewise.
1330         * math/s_ldexpl.c (__ldexpl): Likewise.
1331         * math/w_scalbln.c (__w_scalbln): Likewise.
1332         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1333         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1334         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1335         (scalbln_test_data): Likewise.
1336
1337         [BZ #20224]
1338         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1339         argument to itself.
1340         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1341
1342 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1343
1344         [BZ #19776]
1345         * sysdeps/x86_64/memcpy.S: Make it dummy.
1346         * sysdeps/x86_64/mempcpy.S: Likewise.
1347         * sysdeps/x86_64/memmove.S: New file.
1348         * sysdeps/x86_64/memmove_chk.S: Likewise.
1349         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1350         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1351         * sysdeps/x86_64/memmove.c: Removed.
1352         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1353         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1354         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1355         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1356         Likewise.
1357         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1358         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1359         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1360         memcpy-sse2-unaligned, memmove-avx-unaligned,
1361         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1362         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1363         (__libc_ifunc_impl_list): Replace
1364         __memmove_chk_avx512_unaligned_2 with
1365         __memmove_chk_avx512_unaligned.  Remove
1366         __memmove_chk_avx_unaligned_2.  Replace
1367         __memmove_chk_sse2_unaligned_2 with
1368         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1369         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1370         with __memmove_avx512_unaligned.  Replace
1371         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1372         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1373         with __memcpy_chk_avx512_unaligned.  Remove
1374         __memcpy_chk_avx_unaligned_2.  Replace
1375         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1376         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1377         Replace __memcpy_avx512_unaligned_2 with
1378         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1379         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1380         with __mempcpy_chk_avx512_unaligned.  Remove
1381         __mempcpy_chk_avx_unaligned_2.  Replace
1382         __mempcpy_chk_sse2_unaligned_2 with
1383         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1384         Replace __mempcpy_avx512_unaligned_2 with
1385         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1386         Replace __mempcpy_sse2_unaligned_2 with
1387         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1388         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1389         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1390         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1391         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1392         (ENTRY): Removed.
1393         (END): Likewise.
1394         (ENTRY_CHK): Likewise.
1395         (libc_hidden_builtin_def): Likewise.
1396         Don't include ../memcpy.S.
1397         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1398         __memcpy_chk_avx512_unaligned_erms and
1399         __memcpy_chk_avx512_unaligned.  Use
1400         __memcpy_chk_avx_unaligned_erms and
1401         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1402         Default to __memcpy_chk_sse2_unaligned.
1403         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1404         Change function suffix from unaligned_2 to unaligned.
1405         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1406         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1407         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1408         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1409         (ENTRY): Removed.
1410         (END): Likewise.
1411         (ENTRY_CHK): Likewise.
1412         (libc_hidden_builtin_def): Likewise.
1413         Don't include ../mempcpy.S.
1414         (mempcpy): New.  Add a weak alias.
1415         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1416         __mempcpy_chk_avx512_unaligned_erms and
1417         __mempcpy_chk_avx512_unaligned.  Use
1418         __mempcpy_chk_avx_unaligned_erms and
1419         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1420         Default to __mempcpy_chk_sse2_unaligned.
1421
1422 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1423
1424         [BZ #19881]
1425         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1426         into ...
1427         * sysdeps/x86_64/memset.S: This.
1428         (__bzero): Removed.
1429         (__memset_tail): Likewise.
1430         (__memset_chk): Likewise.
1431         (memset): Likewise.
1432         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1433         defined.
1434         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1435         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1436         (__memset_zero_constant_len_parameter): Check SHARED instead of
1437         PIC.
1438         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1439         memset-avx2 and memset-sse2-unaligned-erms.
1440         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1441         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1442         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1443         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1444         (__bzero): Enabled.
1445         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1446         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1447         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1448         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1449         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1450         (memset): Removed.
1451         (__memset_chk): Likewise.
1452         (MEMSET_SYMBOL): New.
1453         (libc_hidden_builtin_def): Replace __memset_sse2 with
1454         __memset_sse2_unaligned.
1455         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1456         __memset_chk_sse2 and __memset_chk_avx2 with
1457         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1458         Use __memset_chk_sse2_unaligned_erms or
1459         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1460         __memset_chk_avx512_unaligned_erms and
1461         __memset_chk_avx512_unaligned.
1462
1463 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1464
1465         * math/gen-auto-libm-test.c (fp_format_desc): remove
1466         suffix member.
1467         (output_generic_value): Remove usage of suffix member,
1468         and the resulting unuse of the fp_format argument.
1469         (output_for_one_input_case): Remove unused fp_format
1470         parameter.
1471
1472         * math/auto-libm-test-out: Regenerate.
1473
1474         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1475         usage with TEST_COND_ibm128.
1476         (TEST_COND_flt_32): Remove.
1477         (TEST_COND_dbl_64): Remove.
1478         (TEST_COND_ldbl_96_intel): Remove.
1479         (TEST_COND_ldbl_96_m68k): Remove.
1480         (TEST_COND_ldbl_128): Remove.
1481
1482 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1483
1484         * auto-libm-test-in:
1485         Replace flt-32 usage with binary32.
1486         Replace dbl-64 usage with binary64.
1487         Replace ldbl-intel-96 usage with intel96.
1488         Replace ldbl-m68k-96 usage with m68k96.
1489         Replace ldbl-128ibm usage with ibm128.
1490         Replace ldbl-128 usage with binary128.
1491
1492         * auto-libm-test-out: Regenerate.
1493
1494 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1495
1496         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1497         (parse_ulps): Dynamically generate type name matching
1498         string from all_floats.
1499         (get_ulps): Generate the ulps as an array instead.
1500         (output_ulps): Dynamically compose the type based
1501         on the number of supported formats, and print
1502         the indices as type specific helper macros.
1503
1504         * math/libm-test.inc: Remove comment about CHOOSE.
1505         (ulp_data): Generate the type in libm-test-ulps.h.
1506         (ULP_IDX): New macro.
1507         (find_ulps): Update usage of max_ulp.
1508
1509         * math/test-double-vlen2.h (CHOOSE): Remove.
1510         * math/test-double-vlen4.h (CHOOSE): Likewise.
1511         * math/test-double-vlen8.h (CHOOSE): Likewise.
1512         * math/test-float.c (CHOOSE): Likewise.
1513         * math/test-float-finite.c (CHOOSE): Likewise.
1514         * math/test-double.c (CHOOSE): Likewise.
1515         * math/test-double-finite.c (CHOOSE): Likewise.
1516         * math/test-idouble.c (CHOOSE): Likewise.
1517         * math/test-ifloat.c (CHOOSE): Likewise.
1518         * math/test-ildoubl.c (CHOOSE): Likewise.
1519         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1520         * math/test-ldouble.c (CHOOSE): Likewise.
1521
1522         * math/test-float.h (TEST_FLOAT): Remove.
1523         * math/test-double.h (TEST_DOUBLE): Likewise.
1524         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1525
1526 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1527
1528         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1529         (parse_args): Strip C suffix from floating point literals
1530         typed with 'f' and wrap them with LIT().
1531
1532         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1533         (test_ff_f_data_nexttoward): Rename to
1534         (test_fj_f_data): New struct.
1535         (nexttoward_test_data): Relabel tests as
1536         TEST_fj_f instead of TEST_ff_f.
1537
1538 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1539
1540         Emacs bug 23726.
1541         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1542         (__libc_realloc): Correct size computation for dumped fake mmapped
1543         chunks.
1544
1545 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1546
1547         [BZ #20219]
1548         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1549         to itself.
1550         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1551
1552         [BZ #20218]
1553         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1554         to itself.
1555         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1556
1557 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1558
1559         [BZ #20195]
1560         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1561         check to ...
1562         (init_cpu_features): Here.
1563
1564 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1565
1566         [BZ #20214]
1567         * sysdeps/unix/sysv/linux/bits/in.h
1568         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1569          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1570         Define to 1.
1571         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1572          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1573         Define to 0.
1574         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1575         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1576
1577 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1578
1579         [BZ #20198]
1580         * stdlib/Makefile (tests): Add tst-quick_exit, and
1581         tst-thread-quick_exit.
1582         [ifeq ($(have-cxx-thread_local),yes)]
1583         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1584         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1585         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1586         (LDLIBS-tst-thread-quick_exit): Likewise.
1587         [ifneq ($(have-cxx-thread_local),yes)]
1588         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1589         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1590         If run_dtors is true call __call_tls_dtors.
1591         (exit): Call __run_exit_handlers with run_dtors set to true.
1592         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1593         definition.
1594         * stdlib/quick_exit.c (quick_exit): Remove function.
1595         (__new_quick_exit): New function.
1596         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1597         function.
1598         * stdlib/tst-quick_exit.cc: New file.
1599         * stdlib/tst-thread-quick_exit.cc: New file.
1600         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1601         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1602         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1603         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1604         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1605         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1606         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1607         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1608         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1609         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1610         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1611         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1612         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1613         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1614         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1615         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1620         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1621         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1622         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1623         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1624         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1625         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1627         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1628         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1629         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1630
1631 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1632
1633         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1634         a typo in comments.
1635
1636 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1637
1638         [BZ #20213]
1639         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1640         argument to itself.
1641         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1642
1643 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1644
1645         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1646         required flags.
1647         (CFLAGS-pwritev64.c): Likewise.
1648         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1649         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1650         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1651         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1652         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1653         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1654         syscall from auto-generation.
1655         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1656         [WORDSIZE == 64] (pwritev64): Remove macro.
1657         [!PWRITEV] (PWRITEV): Likewise.
1658         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1659         [!PWRITEV] (PWRITE): Likewise.
1660         [!PWRITEV] (OFF_T): Likewise.
1661         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1662         (LO_HI_LONG): Remove macro.
1663         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1664         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1665         (PWRITEV): Remove macro.
1666         (PWRITEV_REPLACEMENTE): Likewise.
1667         (PWRITE): Likewise.
1668         (OFF_T): Likewise.
1669         (pwritev64): New function.
1670         * nptl/tst-cancel4.c (tf_writev): Add test.
1671
1672         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1673         required flags.
1674         (CFLAGS-preadv64.c): Likewise.
1675         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1676         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1677         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1678         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1679         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1680         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1681         syscall from auto-generation.
1682         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1683         [WORDSIZE == 64] (preadv64): Remove macro.
1684         [!PREADV] (PREADV): Likewise.
1685         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1686         [!PREADV] (PREAD): Likewise.
1687         [!PREADV] (OFF_T): Likewise.
1688         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1689         (LO_HI_LONG): Remove macro.
1690         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1691         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1692         (PREADV): Remove macro.
1693         (PREADV_REPLACEMENTE): Likewise.
1694         (PREAD): Likewise.
1695         (OFF_T): Likewise.
1696         (preadv64): New function.
1697         * nptl/tst-cancel4.c (tf_preadv): Add test.
1698
1699 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1700
1701         [BZ #20212]
1702         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1703         argument to itself.
1704         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1705
1706 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1707
1708         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1709         New symbol defined as libc_hidden_def.
1710         (strcasestr): Became a weak alias to __strcasestr.
1711         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1712         according to multi-arch support.  Move __stpncpy hidden
1713         definition from here to...
1714         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1715         symbol stpncpy.
1716         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1717         libc_hidden_builtin_def.
1718         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1719         memset symbol to use when multi-arch support is available.
1720
1721 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1722
1723         * dlfcn/tst-rec-dlopen.c: Include string.h.
1724
1725 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1726
1727         * manual/install.texi: Remove mention of --without-tls
1728         * INSTALL: Regenerate.
1729
1730 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1731
1732         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1733         Remove.
1734         (call_function, interposed_malloc_called): New variables.
1735         (malloc): New function.
1736         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1737         and clear call_function as needed.
1738
1739 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1740
1741         * include/wchar.h (__wmemset): Use __typeof.
1742
1743 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1744
1745         * include/wchar.h (__wmemset): Declare function without typeof.
1746
1747 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1748
1749         [BZ #20205]
1750         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1751         exponent when incrementing negative subnormal with low mantissa
1752         word zero.
1753         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1754         Add another test.
1755
1756 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1757
1758         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1759         __wmemset instead of wmemset.
1760
1761 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1762
1763         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1764         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1765         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1766         __USE_KERNEL_IPV6_DEFS to 0.
1767         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1768         Update comment.
1769
1770 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1771
1772         [BZ #19861]
1773         Do not use IFUNC resolver with potentially unrelocated symbol.
1774         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1775         (DEFINE_FORK): Remove macro and inline definition.
1776         (fork_alias): Renamed from fork_ifunc.
1777         (__fork_alias): Renamed from __fork_ifunc.
1778
1779 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1780
1781         [BZ 19653]
1782         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1783         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1784
1785 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1786
1787         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1788         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1789         i386-linux-gnu).
1790         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1791         Set to no.
1792         * sysdeps/mach/hurd/configure: Refresh.
1793
1794 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1795
1796         [BZ #20178]
1797         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1798         on failure instead of exit.
1799
1800 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1801
1802         [BZ #3629]
1803         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1804         of POSIX.1-2008.
1805
1806 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1807
1808         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1809           Use PLT entry for calling _hurd_self_sigstate.
1810
1811 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1812
1813         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1814         available logical processors with SMT level type sharing L2
1815         cache for Intel processors.
1816
1817 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1818
1819         [BZ #20160]
1820         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1821         argument to itself before returning the result.
1822         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1823         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1824         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1825         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1826         Likewise.
1827         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1828         Likewise.
1829         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1830         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1831         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1832         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1833         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1834         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1835
1836         [BZ #20160]
1837         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1838         argument to itself before returning the result.
1839         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1840         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1841         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1842         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1843         Likewise.
1844         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1845         Likewise.
1846         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1847         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1848         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1849         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1850         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1851         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1852
1853 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1854
1855         * libm-test.inc: Replace usage of M_El with
1856         (lit_e): New macro.
1857
1858 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1859
1860         * libm-test.inc: Replace usage of M_PI_4l with
1861         (lit_pi_4_d): New macro.
1862
1863 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1864
1865         * libm-test.inc: Replace usage of M_PIl with
1866         (lit_pi): New macro.
1867
1868 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1869
1870         * libm-test.inc: Replace usage of M_PI2l with
1871         (lit_pi_2_d): New macro.
1872
1873         * math/test-double.h (LITM): New macro.
1874         * math/test-float.h (LITM): Likewise.
1875         * math/test-ldouble.h (LITM): Likewise.
1876
1877 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1878
1879         * libm-test.inc (M_PI_34l): Rename to
1880         (lit_pi_3_m_4_d): New Macro.
1881         (M_PI_34_LOG10El): Rename to
1882         (lit_pi_3_m_4_ln10_m_d): New Macro.
1883         (M_PI2_LOG10El): Rename to
1884         (lit_pi_2_ln10_m_d):  New Macro.
1885         (M_PI4_LOG10El): Rename to
1886         (lit_pi_4_ln10_m_d):  New Macro.
1887         (M_PI_LOG10El): Rename to
1888         (lit_pi_ln10_d):  New Macro.
1889
1890 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1891
1892         [BZ #20157]
1893         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1894         determine whether to negate low half if [_ARCH_PPCGR], and integer
1895         comparison otherwise.
1896         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1897         determine whether to negate low half.
1898
1899         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1900         (NO_TEST_INLINE_DOUBLE): Likewise.
1901         (TEST_COND_x86_64): Likewise.
1902         (TEST_COND_x86): Likewise.
1903         (M_PI_6l): Likewise.
1904
1905 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1906
1907         * math/libm-test.inc:
1908         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1909         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1910         (TEST_LDOUBLE): Update usage to evaluate as true if
1911         the guarded tests match the property being tested.
1912         (LDBL_MAX_EXP): Change to MAX_EXP.
1913         (LDBL_MIN_EXP): Change to MIN_EXP.
1914         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1915         nexttoward tests.
1916
1917 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1918
1919         * math/libm-test.inc:
1920         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1921         (TYPE_MIN): Likewise.
1922         (TYPE_TRUE_MIN): Likewise.
1923         (TYPE_MAX): Likewise.
1924         (MIN_EXP): Likewise.
1925         (MAX_EXP): Likewise.
1926         (MANT_DIG): Likewise.
1927
1928         (FSTR_MAX): New macro.
1929         (__CONCATX): Likewise.
1930         (QTYPE_STR): Likewise.
1931         (TEST_COND_binary32): Likewise.
1932         (TEST_COND_binary64): Likewise.
1933         (TEST_COND_binary128): Likewise.
1934         (TEST_COND_ibm128): Likewise.
1935         (TEST_COND_intel96): Likewise.
1936         (TEST_COND_m68k96): Likewise.
1937
1938         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1939         (TEST_COND_dbl_64): Likewise.
1940         (TEST_COND_ldbl_96_intel): Likewise.
1941         (TEST_COND_ldbl_96_m68k): Likewise.
1942         (TEST_COND_ldbl_128): Likewise.
1943         (TEST_COND_ldbl_128ibm): Likewise.
1944
1945         (plus_zero): Redefine using LIT macro.
1946         (minus_zero): Likewise.
1947         (plus_infty): Redefine as (INF).
1948         (minux_infty): Redefine as (-INF).
1949         (max_value): Redefine as TYPE_MAX.
1950         (min_value): Redefine as TYPE_MIN.
1951         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1952
1953         (print_float): Refactor to use snprintf to convert FLOAT values
1954         to string. This brings it closer to dropin replacement of strtof
1955         for the TS 18661 defined types.
1956         (update_stats): Likewise.
1957         (print_complex_function_ulps): Likewise.
1958         (print_max_error): Likewise.
1959         (print_complex_max_error): Likewise.
1960         (check_float_internal): Likewise.
1961
1962         * math/test-float.h (PREFIX): New macro.
1963         (LIT): Likewise.
1964         (TYPE_STR): Likewise.
1965         (FTOSTR): Likewise.
1966
1967         * math/test-double.h (PREFIX): New macro.
1968         (LIT): Likewise.
1969         (TYPE_STR): Likewise.
1970         (FTOSTR): Likewise.
1971
1972         * math/test-ldouble.h (PREFIX): New macro.
1973         (LIT): Likewise.
1974         (TYPE_STR): Likewise.
1975         (FTOSTR): Likewise.
1976
1977 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1978
1979         [BZ #20156]
1980         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1981         to itself when zero or not finite.
1982         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1983         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1984         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1985         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1986
1987 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1988
1989         [BZ #20153]
1990         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1991         x * x + x for infinities and NaNs.
1992
1993         [BZ #20151]
1994         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1995         argument to itself before returning result.
1996         (__ieee754_y0l): Likewise.
1997         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1998         (__ieee754_y1l).
1999
2000         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
2001         (atan_test_data): Likewise.
2002         (ceil_test_data): Likewise.
2003         (cos_test_data): Likewise.
2004         (cosh_test_data): Likewise.
2005         (erf_test_data): Likewise.
2006         (exp2_test_data): Likewise.
2007         (fabs_test_data): Likewise.
2008         (floor_test_data): Likewise.
2009         (ilogb_test_data): Likewise.
2010         (j0_test_data): Likewise.
2011         (j1_test_data): Likewise.
2012         (jn_test_data): Likewise.
2013         (lgamma_test_data): Likewise.
2014         (lrint_test_data): Likewise.
2015         (llrint_test_data): Likewise.
2016         (logb_test_data): Likewise.
2017         (lround_test_data): Likewise.
2018         (llround_test_data): Likewise.
2019         (nearbyint_test_data): Likewise.
2020         (rint_test_data): Likewise.
2021         (round_test_data): Likewise.
2022         (sin_test_data): Likewise.
2023         (sincos_test_data): Likewise.
2024         (sinh_test_data): Likewise.
2025         (sqrt_test_data): Likewise.
2026         (tan_test_data): Likewise.
2027         (tanh_test_data): Likewise.
2028         (tgamma_test_data): Likewise.
2029         (trunc_test_data): Likewise.
2030         (y0_test_data): Likewise.
2031         (y1_test_data): Likewise.
2032         (yn_test_data): Likewise.
2033
2034         * math/libm-test.inc: Update comment about NaN testing.
2035         (TEST_SNAN): New macro.
2036         (snan_value): Likewise.
2037         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
2038         (fpclassify_test_data): Add sNaN tests.
2039         (isfinite_test_data): Likewise.
2040         (isinf_test_data): Likewise.
2041         (isnan_test_data): Likewise.
2042         (isnormal_test_data): Likewise.
2043         (issignaling_test_data): Likewise.
2044         (signbit_test_data): Likewise.
2045         * math/gen-libm-test.pl (%beautify): Add snan_value.
2046         (show_exceptions): Add argument $test_snan.
2047         (parse_args): Handle snan_value as non-finite.  Update call to
2048         show_exceptions.
2049         * math/Makefile (libm-test-no-inline-cflags): Add
2050         -fsignaling-nans.
2051
2052 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2053
2054         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
2055         (CFLAGS-oldsendmsg.c): Add rule.
2056         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
2057         Correct recvmsg symbol name.
2058         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
2059         Likewise.
2060
2061 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2062
2063         * sysdeps/unix/sysv/linux/Makefile
2064         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
2065         oldsendmmsg.
2066         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
2067         sendmmsg.
2068         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2069         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2070         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2071         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2073         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2074         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2075         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2076         Likewise.
2077         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2078         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
2079         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
2080         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
2081         iovlen and controllen fields to adjust to POSIX specification.
2082         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
2083
2084         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
2085         and change to correct expected type.
2086         (msghdr.msg_controllen): Likewise.
2087         (cmsghdr.cmsg_len): Likewise.
2088         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
2089         expected POSIX assumption about the size.
2090         (msghdr.msg_controllen): Likewise.
2091         (msghdr.__glibc_reserved1): Likewise.
2092         (msghdr.__glibc_reserved2): Likewise.
2093         (cmsghdr.cmsg_len): Likewise.
2094         (cmsghdr.__glibc_reserved1): Likewise.
2095         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
2096         Add ptw-oldrecvmsg and ptw-oldsendmsg.
2097         (CFLAGS-sendmsg.c): Remove rule.
2098         (CFLAGS-recvmsg.c): Likewise.
2099         (CFLAGS-oldsendmsg.c): Add rule.
2100         (CFLAGS-oldrecvmsg.c): Likewise.
2101         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
2102         recvmsg and sendmsg.
2103         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
2104         Likewise.
2105         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
2106         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
2107         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
2108         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
2109         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
2110         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
2111         Likewise.
2112         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
2113         Likewise.
2114         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
2115         Likewise.
2116         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
2117         Likewise.
2118         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
2119         Likewise.
2120         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
2121         Likewise.
2122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
2123         (GLIBC_2.24): Likewise.
2124         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2125         Likewise.
2126         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2127         Likewise.
2128         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2129         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2130         Likewise.
2131         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2132         Likewise.
2133         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2134         Likewise.
2135         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2136         (GLIBC_2.24): Likewise.
2137         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2138         Likewise.
2139         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2140         Likewise.
2141         * sysdeps/unix/sysv/linux/Makefile
2142         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2143         (CFLAGS-sendmsg.c): Add rule.
2144         (CFLAGS-recvmsg.c): Likewise.
2145         (CFLAGS-oldsendmsg.c): Likewise.
2146         (CFLAGS-oldrecvmsg.c): Likewise.
2147         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2148         initialization.
2149         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2150         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2151         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2152         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2153         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2154         iovlen and controllen fields to adjust to POSIX specification.
2155         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2156         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2157         added recvmsg and sendmsg.
2158         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2159         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2160         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2161         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2162         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2163         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2164         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2165         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2166         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2167         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2168         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2169         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2171         Likewise.
2172         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2174         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2175         Likewise.
2176         Likewise.
2177         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2178         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2179         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2180         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2181         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2182         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2183         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2184         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2185         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2186         Likewise.
2187         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2188         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2189
2190         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2191         from auto-generation.
2192         (sendmsg): Likewise.
2193         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2194         (sendmsg): Likewise.
2195         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2196         (sendmsg): Likewise.
2197         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2198         (sendmsg): Likewise.
2199         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2200         (sendmsg): Likewise.
2201         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2202         (sendmsg): Likewise.
2203         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2204         Likewise.
2205         (sendmsg): Likewise.
2206         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2207         (sendmsg): Likewise.
2208         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2209         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2210         Remove.
2211         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2212         Likewise.
2213         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2214         Undefine.
2215         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2216         Likewise.
2217         * sysdeps/unix/sysv/linux/kernel-features.h
2218         (__ASSUME_SENDMSG_SYSCALL): Define.
2219         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2220         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2221         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2222         Remove.
2223         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2224         Likewise.
2225         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2226         Undefine.
2227         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2228         Likewise.
2229         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2230         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2231         Remove.
2232         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2233         Likewise.
2234         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2235         Undefine.
2236         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2237         Likewise.
2238         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2239         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2240         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2241         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2242         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2243         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2244         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2245         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2246         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2247
2248 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2249
2250         * stdlib/gen-tst-strtod-round.c: Add backslash to
2251         compile command in comment.
2252         (printfp): Remove the literal suffix, and define an infinite
2253         value as INF to avoid expansion clash with INFINITY.
2254         (round_str): Remove the literal suffix.
2255         (round_for_all): Likewise, remove the now duplicate ldbl-64
2256         entry, and remove some magic constants.
2257
2258         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2259         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2260         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2261         (_CONCAT): New macro.
2262         (CONCAT): Likewise.
2263         (CHOOSE_ld): Likewise.
2264         (CHOOSE_f): Likewise.
2265         (CHOOSE_d): Likewise.
2266         (FTYPE_MEMBER): Likewise.
2267         (BOOL_MEMBER): Likewise.
2268         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2269         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2270         (_XNTRY): Likewise.
2271         (XNTRY): Likewise.
2272         (_ENTRY): Likewise.
2273         (ENTRY): Likewise.
2274         (test_exactness): Generate members via macro.
2275         (test_results): Likewise.
2276         (test): Update members.
2277         (TEST): Redefine using new macros.
2278         (INF): New macro.
2279         (fetestmodes): New structure.
2280         (do_test): Refactor to be type generic.
2281         (test_in_one_mode): Refactor duplicate code into
2282         (GEN_ONE_TEST): New macro.
2283
2284         * stdlib/tst-strtod-round-data.h: Regenerate.
2285
2286         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2287         Extend to pass additional arbitrary parameters to
2288         generators.
2289
2290 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2291
2292         [BZ #15479]
2293         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2294         floating-point state after first floating-point operation on
2295         input.  Restore full floating-point state instead of just rounding
2296         mode.
2297         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2298         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2299         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2300         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2301         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2302
2303         [BZ #15479]
2304         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2305         floating-point state after first floating-point operation on
2306         input.  Restore full floating-point state instead of just rounding
2307         mode.
2308         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2309         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2310         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2311         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2312         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2313
2314 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2315
2316         [BZ #19727]
2317         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2318         valid high surrogate.
2319         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2320         of an utf16 surrogate.
2321         * iconv/gconv_simple.c (BODY): Likewise.
2322         * iconvdata/bug-iconv12.c: New file.
2323         * iconvdata/Makefile (tests): Add bug-iconv12.
2324
2325 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2326
2327         [BZ #19726]
2328         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2329         outptrp in case of an illegal input.
2330         * iconv/tst-iconv6.c: New file.
2331         * iconv/Makefile (tests): Add tst-iconv6.
2332
2333 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2334
2335         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2336         an error in case of a value in range of an utf16 low surrogate.
2337
2338 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2339
2340         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2341         an error in case of a value in range of an utf16 low surrogate.
2342
2343 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2344
2345         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2346         Move to ...
2347         * sysdeps/s390/Makefile: ... here.
2348         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2349         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2350         (BRANCH_ON_COUNT): New define.
2351         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2352         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2353         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2354         run on s390-32, too.
2355         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2356         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2357         run on s390-32, too.
2358         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2359         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2360         run on s390-32, too.
2361
2362 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2363
2364         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2365         etf3eh or new vector loop-variant.
2366
2367 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2368
2369         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2370         etf3eh or new vector loop-variant.
2371
2372 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2373
2374         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2375         or new vector loop-variant.
2376
2377 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2378
2379         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2380         Rename to TR_LOOP and usage of tr instead of troo instruction.
2381
2382 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2383
2384         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2385         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2386
2387 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2388
2389         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2390         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2391         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2392         New override define.
2393         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2394
2395 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2396
2397         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2398         * sysdeps/s390/configure.ac: Add test for S390 vector register
2399         support in gcc.
2400         * sysdeps/s390/configure: Regenerated.
2401
2402 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2403
2404         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2405         Install file from $(objpfx)gconv-modules.
2406         ($(objpfx)gconv-modules): Concatenate architecture specific file
2407         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2408         * sysdeps/s390/gconv-modules: New file.
2409         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2410         Deleted.
2411         ($(objpfx)gconv-modules-s390): Deleted.
2412         (sysdeps-gconv-modules): New variable.
2413
2414 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2415
2416         [BZ #15479]
2417         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2418         of immediate operand to rounding instruction.
2419         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2420         Likewise.
2421         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2422         Likewise.
2423         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2424         Likewise.
2425
2426 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2427
2428         * math/libm-test.inc (MIN_EXP): Directly define as
2429         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2430
2431 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2432
2433         * math/libm-test.inc (MANT_DIG): Directly define as
2434         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2435
2436 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2437
2438         * stdlib/gen-tst-strtod-round.c (main):
2439           Change usage to more closely match the generated
2440           output.  Add usage and compilation instructions.
2441           (string_to_fp): Add and use FILE* parameter as
2442           output target.
2443           (print_fp): Likewise.
2444           (round_str): Likewise.
2445           (round_for_all): Likewise.
2446         * stdlib/tst-strtod-round.c (tests): Move into
2447         * stdlib/tst-strtod-round-data.h: New file.
2448
2449 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2450
2451         [BZ #15479]
2452         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2453         (__round): Do not force "inexact" exception.
2454         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2455         variable.
2456         (__round): Do not force "inexact" exception.
2457         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2458         (__roundf): Do not force "inexact" exception.
2459         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2460         (__roundl): Do not force "inexact" exception.
2461         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2462         (__roundl): Do not force "inexact" exception.
2463         * math/libm-test.inc (round_test_data): Do not allow spurious
2464         "inexact" exceptions.
2465
2466         [BZ #15479]
2467         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2468         exception in comment.
2469         (huge): Remove variable.
2470         (__floor): Do not force "inexact" exception.
2471         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2472         "inexact" exception in comment.
2473         (huge): Remove variable.
2474         (__floor): Do not force "inexact" exception.
2475         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2476         exception in comment.
2477         (huge): Remove variable.
2478         (__floorf): Do not force "inexact" exception.
2479         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2480         exception in comment.
2481         (huge): Remove variable.
2482         (__floorl): Do not force "inexact" exception.
2483
2484         [BZ #15479]
2485         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2486         exception in comment.
2487         (huge): Remove variable.
2488         (__ceil): Do not force "inexact" exception.
2489         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2490         "inexact" exception in comment.
2491         (huge): Remove variable.
2492         (__ceil): Do not force "inexact" exception.
2493         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2494         (__ceilf): Do not force "inexact" exception.
2495         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2496         exception in comment.
2497         (huge): Remove variable.
2498         (__ceill): Do not force "inexact" exception.
2499
2500 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2501
2502         * config.h.in (BIND_NOW): New.
2503         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2504         * configure: Regenerated.
2505         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2506         indirect branch via the GOT slot.
2507
2508 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2509
2510         [BZ #19765]
2511         * sysdeps/s390/mempcpy.S: New File.
2512         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2513         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2514         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2515         Add mempcpy variants.
2516         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2517         (memcpy): Adjust to be usable from mempcpy entry point.
2518         (__memcpy_mvcle): Likewise.
2519         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2520         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2521         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2522         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2523         (__memcpy_z10): Likewise.
2524         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2525
2526 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2527
2528         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2529         Remove __GI_ symbol.
2530         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2531         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2532         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2533         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2534         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2535         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2536
2537 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2538
2539         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2540         Use cghi instead of chi to compare 64bit value.
2541
2542 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2543
2544         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2545         Jump to 1MB check before executing mvc-loop.
2546
2547 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2548
2549         [BZ #6527]
2550         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2551         unconditionally.
2552         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2553
2554 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2555
2556         * stdlib/tst-strtod6.c (do_test): Use new type generic
2557         invocation of the test function.
2558         (test): Refactor into ...
2559         (TEST_STRTOD): New macro base function.
2560
2561 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2562
2563         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2564         (TEST_STRTOD): New macro.
2565         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2566
2567 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2568
2569         * stdlib/tst-strtod6.c (do_test): Use new type generic
2570         invocation of the test function.
2571         (test): Refactor into ...
2572         (TEST_STRTOD): New macro base function.
2573
2574 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2575
2576         CVE-2016-4429
2577         [BZ #20112]
2578         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2579         payload.
2580
2581 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2582
2583         [BZ #20111]
2584         * bits/sockaddr.h (_SS_SIZE): Define.
2585         * bits/socket.h (_SS_SIZE): Remove.
2586         (_SS_PADSIZE): Adjust to account for all padding.
2587         (struct sockaddr_storage): Update comment.  Avoid implicit
2588         padding.
2589         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2590         (_SS_PADSIZE): Adjust to account for all padding.
2591         (struct sockaddr_storage): Update comment.  Avoid implicit
2592         padding.
2593         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2594         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2595         (_SS_PADSIZE): Adjust to account for all padding.
2596         (struct sockaddr_storage): Update comment.  Avoid implicit
2597         padding.
2598         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2599         __SS_SIZE is 126 in this version.
2600         * inet/tst-sockaddr.c: New file.
2601         * inet/Makefile (tests): Add tst-sockaddr.c
2602         (tst-sockaddr.c): Compile with non-strict aliasing.
2603
2604 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2605
2606         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2607         [XPG3 || XPG4].
2608         (NL_ARGMAX): Also expect for [XPG3].
2609         (NL_LANGMAX): Likewise.
2610         (NL_MSGMAX): Likewise.
2611         (NL_NMAX): Likewise.
2612         (NL_SETMAX): Likewise.
2613         (NL_TEXTMAX): Likewise.
2614         (NZERO): Likewise.
2615         (TMP_MAX): Likewise.
2616         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2617         variable.
2618
2619         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2620         (PF_MAX): Update value.
2621         (AF_KCM): New macro.
2622         (SOL_NETBEUI): Likewise.
2623         (SOL_LLC): Likewise.
2624         (SOL_DCCP): Likewise.
2625         (SOL_NETLINK): Likewise.
2626         (SOL_TIPC): Likewise.
2627         (SOL_RXRPC): Likewise.
2628         (SOL_PPPOL2TP): Likewise.
2629         (SOL_BLUETOOTH): Likewise.
2630         (SOL_PNPIPE): Likewise.
2631         (SOL_RDS): Likewise.
2632         (SOL_IUCV): Likewise.
2633         (SOL_CAIF): Likewise.
2634         (SOL_ALG): Likewise.
2635         (SOL_NFC): Likewise.
2636         (SOL_KCM): Likewise.
2637         (MSG_BATCH): New enum value and macro.
2638
2639 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2640
2641         [BZ #18185]
2642         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2643         sharing L2 cache to 2 for Knights Landing.
2644
2645 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2646
2647         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2648         (FTW_DP): Do not expect for [XPG3 || XPG4].
2649         (FTW_SL): Do not expect for [XPG3].
2650         (FTW_SLN): Likewise.
2651         (FTW_PHYS): Likewise.
2652         (FTW_MOUNT): Likewise.
2653         (FTW_DEPTH): Likewise.
2654         (FTW_CHDIR): Likewise.
2655         (nftw): Likewise.
2656         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2657         variable.
2658
2659 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2660
2661         * manual/errno.texi: Fix various typos & grammar errors.
2662
2663 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2664
2665         * manual/intro.texi: Fix duplicated typo.
2666
2667 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2668
2669         [BZ #13304]
2670         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2671         <float.h>, <math_private.h> and <stdlib.h>.
2672         (add_split): New function.
2673         (mul_split): Likewise.
2674         (ext_val): New typedef.
2675         (store_ext_val): New function.
2676         (mul_ext_val): New function.
2677         (compare): New function.
2678         (add_split_ext): New function.
2679         (__fmal): After checking for Inf, NaN and zero, compute result as
2680         an exact sum of scaled double values in round-to-nearest before
2681         adding those up and adjusting for other rounding modes.
2682         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2683         tests of fma.
2684         * math/auto-libm-test-out: Regenerated.
2685
2686 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2687
2688         [BZ #20119]
2689         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2690         processor level type mask for CPUID with EAX == 11.
2691
2692 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2693
2694         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2695         logical threads if the HTT bit is 0.
2696         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2697         (index_cpu_HTT): Likewise.
2698         (reg_HTT): Likewise.
2699
2700 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2701
2702         [BZ #20115]
2703         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2704         Remove alignments on jump targets.
2705
2706 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2707
2708         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2709         (getpwent): Likewise.
2710         (setpwent): Likewise.
2711         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2712         variable.
2713
2714         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2715         (remque): Likewise.
2716         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2717         variable.
2718
2719 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2720
2721         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2722         not being tested.
2723
2724 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2725
2726         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2727         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2728         call.
2729         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2730         (__condvar_cleanup1): Likewise.
2731
2732 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2733
2734         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2735         New
2736         (__pthread_unwind): Renamed to ...
2737         (PTHREAD_UNWIND): This.
2738         (__pthread_enable_asynccancel): Replace
2739         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2740
2741 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2742
2743         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2744         (CLONE_NEWCGROUP): New macro.
2745
2746         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2747         (Q_GETNEXTQUOTA): New macro.
2748
2749 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2750
2751         [BZ #19907]
2752         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2753         buffer updated by the previous run.
2754         * string/test-memcpy.c (do_one_test): Likewise.
2755         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2756         * string/test-memmove.c (do_one_test): Likewise.
2757
2758 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2759
2760         [BZ #20094]
2761         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2762         not [__USE_XOPEN].
2763         (unlockpt): Likewise.
2764         (ptsname): Likewise.
2765         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2766         variable.
2767
2768         [BZ #20076]
2769         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2770         instead of [__USE_UNIX98].
2771         (S_ISSOCK): Likewise.
2772         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2773         variable.
2774
2775         [BZ #20074]
2776         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2777         [__USE_POSIX].
2778         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2779         variable.
2780
2781         [BZ #20051]
2782         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2783         (ttyslot): Do not declare.
2784         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2785         (ttyslot): New prototype.
2786         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2787         variable.
2788         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2789
2790 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2791
2792         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2793
2794 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2795
2796         Fix race condition in tst-mallocfork2, use fewer resources.
2797         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2798         to current process group.
2799         (signal_sender): Yield in the non-sleeping case.
2800
2801 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2802
2803         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2804         (ecvt): Likewise.
2805         (fcvt): Likewise.
2806         (gcvt): Likewise.
2807         (getsubopt): Likewise.
2808         (grantpt): Likewise.
2809         (initstate): Likewise.
2810         (l64a): Likewise.
2811         (mktemp): Likewise.
2812         (mkstemp): Likewise.
2813         (ptsname): Likewise.
2814         (random): Likewise.
2815         (realpath): Likewise.
2816         (setstate): Likewise.
2817         (srandom): Likewise.
2818         (ttyslot): Likewise.
2819         (unlockpt): Likewise.
2820         (valloc): Likewise.
2821
2822         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2823         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2824         variable.
2825
2826 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2827
2828         [BZ #20072]
2829         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2830         init_cpu_features only if SHARED is defined.
2831         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2832
2833 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2834
2835         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2836         non-inclusive caches on Intel processors.
2837
2838 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2839
2840         * malloc/malloc.c (dumped_main_arena_start)
2841         (dumped_main_arena_end): New variables.
2842         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2843         (do_check_chunk): Skip dumped fake mmapped chunks.
2844         (munmap_chunk): Likewise.
2845         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2846         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2847         mmapped chunks.
2848         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2849         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2850         and dumped_main_arena_end to cover the dumped heap.
2851
2852 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2853
2854         * conform/data/time.h-data (getdate_err): Do not expect for
2855         [XPG3].
2856         (getdate): Likewise.
2857         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2858         variable.
2859
2860         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2861         (F_ULOCK): Likewise.
2862         (F_TEST): Likewise.
2863         (F_TLOCK): Likewise.
2864         (useconds_t): Likewise.
2865         (intptr_t): Do not expect for [XPG3] or [XPG4].
2866         (brk): Do not expect for [XPG3]
2867         (fchown): Likewise.
2868         (fchdir): Likewise.
2869         (ftruncate): Likewise.
2870         (getdtablesize): Likewise.
2871         (gethostid): Likewise.
2872         (getpagesize): Likewise.
2873         (getpgid): Likewise.
2874         (getsid): Likewise.
2875         (getwd): Likewise.
2876         (lchown): Likewise.
2877         (lockf): Likewise.
2878         (readlink): Likewise.
2879         (sbrk): Likewise.
2880         (setpgrp): Likewise.
2881         (setregid): Likewise.
2882         (setreuid): Likewise.
2883         (symlink): Likewise.
2884         (sync): Likewise.
2885         (truncate): Likewise.
2886         (ualarm): Likewise.
2887         (usleep): Likewise.
2888         (vfork): Likewise.
2889         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2890         variable.
2891
2892         [BZ #20054]
2893         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2894         not [__USE_UNIX98].
2895         * conform/data/unistd.h-data (gethostname): Do not expect for
2896         [XPG3].
2897
2898         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2899         [!POSIX] (S_IFBLK): Likewise.
2900         [!POSIX] (S_IFCHR): Likewise.
2901         [!POSIX] (S_IFIFO): Likewise.
2902         [!POSIX] (S_IFREG): Likewise.
2903         [!POSIX] (S_IFDIR): Likewise.
2904         [!POSIX] (S_IFLNK): Likewise.
2905         [!POSIX] (S_IFSOCK): Likewise.
2906         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2907         variable.
2908         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2909
2910 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2911
2912         * sysdeps/aarch64/memset.S (__memset):
2913         Rewrite of optimized memset.
2914
2915 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2916
2917         [BZ #19703]
2918         Partially async-signal-safe fork for single-threaded processes.
2919         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2920         variable.  Do not acquire and reset/release malloc and libio locks
2921         in single-threaded processes.
2922         * malloc/tst-mallocfork2.c: New file.
2923         * malloc/Makefile (tests): Add it.
2924
2925 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2926
2927         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2928         argument.  Use scratch buffer instead of extend_alloca.
2929         (gethosts): Use scratch buffer instead of extend_alloca.
2930         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2931         extend_alloca.
2932         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2933
2934 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2935
2936         [BZ #20055]
2937         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2938         instead of [__USE_UNIX98].
2939         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2940         [__USE_UNIX98].
2941         * conform/data/termios.h-data (tcgetsid): Do not expect for
2942         [XPG3].
2943         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2944         variable.
2945         (test-xfail-XPG4/termios.h/conform): Likewise.
2946
2947 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2948
2949         Do not use mcheck in localedef.
2950         * locale/programs/localedef.c (turn_on_mcheck)
2951         (__malloc_initialize_hook): Remove.
2952
2953 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2954
2955         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2956         * sysdeps/s390/s390-64/Makefile: Likewise.
2957
2958 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2961         Remove ifunc-defines.sym.
2962         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2963         Likewise.
2964         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2965         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2966         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2967         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2968         rtld-global-offsets.sym.
2969         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2970         * sysdeps/x86/cpu-features-offsets.sym: This.
2971         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2972         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2973
2974 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2975
2976         [BZ #20073]
2977         * io/sys/stat.h (fchmod): Declare for
2978         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2979         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2980         variable.
2981
2982         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2983         [XPG3] (S_IFSOCK): Likewise.
2984         [XPG3] (S_ISVTX): Likewise.
2985         [XPG3] (S_ISLNK): Likewise.
2986         [XPG3] (S_ISSOCK): Likewise.
2987         [XPG3] (fchmod): Likewise.
2988         [XPG3] (lstat): Likewise.
2989         [XPG3] (mknod): Likewise.
2990
2991         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2992         [XPG3].  Expect type long and XFAIL for [XPG4].
2993         (st_blocks): Likewise.
2994
2995         [BZ #20044]
2996         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2997         (pthread_atfork): New prototype.
2998         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2999         variable.
3000
3001         [BZ #20043]
3002         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
3003         prototype.
3004
3005 2016-05-10  Florian Weimer  <fweimer@redhat.com>
3006
3007         [BZ #20017]
3008         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
3009         gmtime.
3010
3011 2016-05-10  Florian Weimer  <fweimer@redhat.com>
3012
3013         [BZ #19994]
3014         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
3015         flag in _res.options.
3016
3017 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
3018
3019         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
3020         [XPG3 || XPG4].
3021         (blksize_t): Likewise.
3022         (clockid_t): Likewise.
3023         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
3024         variable.
3025         (test-xfail-XPG4/sys/types.h/conform): Likewise.
3026
3027 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
3028
3029         * sysdeps/unix/sysv/linux/s390/init-first.c:
3030         Add VDSO_SYMBOL(getcpu).
3031         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
3032         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
3033         Add VDSO_SYMBOL(getcpu).
3034         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
3035         New define HAVE_GETCPU_VSYSCALL.
3036         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3037
3038 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3039
3040         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
3041         instead of <sysdeps/x86_64/cacheinfo.c>.
3042         * sysdeps/x86_64/cacheinfo.c: Moved to ...
3043         * sysdeps/x86/cacheinfo.c: Here.
3044
3045 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3046
3047         * malloc/malloc-internal.h: Adjust header file guard.
3048
3049 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3050
3051         [BZ #19787]
3052         * inet/getnameinfo.c (check_sprintf_result): New function.
3053         (CHECKED_SNPRINTF): New macro.
3054         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
3055         to the host buffer.
3056         (gni_host_local): Use checked_copy to copy the host name.
3057         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
3058         (gni_serv_local): Use checked_copy to copy the service name.
3059         (getnameinfo): Remove unnecessary truncation of result buffers.
3060
3061 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3062
3063         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
3064         in case of inet_ntop failure.
3065
3066 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3067
3068         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
3069         avoid long lines.
3070         (gni_host_inet_numeric): Likewise.  Reduce scope of local
3071         variables.
3072         (gni_host_inet, gni_host_local): Add comment.
3073         (gni_host): Add comment.  Use temporary to avoid long lines.
3074
3075 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3076
3077         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
3078         registers specifiers where general purpose registers specifiers should
3079         have been used.
3080
3081 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3082
3083         [BZ #19779]
3084         CVE-2016-1234
3085         Avoid copying names of directory entries.
3086         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
3087         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
3088         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
3089         (struct readdir_result): New type.
3090         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
3091         (GL_READDIR): New macros.
3092         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
3093         (convert_dirent, convert_dirent64): New functions.
3094         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
3095         convert_dirent64.  Adjust references to the readdir result.
3096         * sysdeps/unix/sysv/linux/i386/glob64.c:
3097         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
3098         * posix/bug-glob2.c (LONG_NAME): Define.
3099         (filesystem): Add LONG_NAME.
3100         (my_DIR): Increase the size of room_for_dirent.
3101
3102 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
3103
3104         [BZ #20041]
3105         * misc/sys/select.h (__need_timespec): Only define if
3106         [__USE_XOPEN2K].
3107         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
3108         variable.
3109         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3110         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3111         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3112
3113 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3114             Segher Boessenkool  <segher@gcc.gnu.org>
3115
3116         [BZ #20004]
3117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
3118         (__novec_swapcontext): Add missing load.
3119
3120 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
3121
3122         [BZ #20023]
3123         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
3124         <time.h>.
3125         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3126         variable.
3127         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3128
3129 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3130
3131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3132         flags CLONE_VM compare.
3133
3134 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3135
3136         [BZ #20031]
3137         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3138         completely empty.
3139
3140 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3141
3142         [BZ #19573]
3143         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3144         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3145         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3146         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3147         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3148         (hesiod_free_list): Mark as hidden.
3149         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3150         res_set, res_get.
3151         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3152         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3153         (hesiod_init): Remove obsolete res_ninit call.
3154         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3155         (hesiod_bind): Do not call init.
3156         (get_txt_records): Use res_mkquery, res_send instead of
3157         res_nmkquery, res_nsend.
3158         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3159         instead of _nss_hesiod_init.
3160         (_nss_hesiod_initgroups_dyn): Likewise.
3161         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3162         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3163         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3164
3165 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3166
3167         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3168         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3169
3170 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3171
3172         * hesiod/hesiod.h: Remove RCS keyword.
3173         * hesiod/hesiod_p.h: Likewise.
3174
3175         * hesiod/hesiod.c: Likewise.
3176
3177 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3178
3179         [BZ #12450]
3180         * locale/iso-639.def: Add Samogitian/sgs.
3181
3182 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3183
3184         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3185
3186         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3187
3188 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3189             Carlos O'Donell  <carlos@redhat.com>
3190
3191         [BZ #19072]
3192         * grp/Makefile (headers): Add grp-merge.h
3193         (routines): Add grp-merge.
3194         * grp/getgrgid_r.c: Include grp-merge.h.
3195         (DEEPCOPY_FN): Define.
3196         (MERGE_FN): Define.
3197         * grp/getgrname_r.c: Include grp-merge.h.
3198         (DEEPCOPY_FN): Define.
3199         (MERGE_FN): Define.
3200         * grp/grp-merge.c: New file.
3201         * grp/grp-merge.h: New file.
3202         * include/grp-merge.h: New file.
3203         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3204         __copy_grp@GLIBC_PRIVATE.
3205         * manual/nss.texi (Actions in the NSS configuration): Describe
3206         return, continue, and merge.
3207         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3208         (DEEPCOPY_FN): Define.
3209         (MERGE_FN): Define.
3210         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3211         (DEEPCOPY_FN): Define.
3212         (MERGE_FN): Define.
3213         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3214         [!MERGE_FN]: Define __merge_einval.
3215         (CHECK_MERGE): Define.
3216         (REENTRANT_NAME): Process merge if do_merge is true.
3217         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3218         (__nss_getent_r): Likewise.
3219         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3220         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3221
3222 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3223
3224         [BZ #20012]
3225         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3226         length to calculate the buffer to read.
3227         (fmemopen_write): Set the buffer position based on bytes written.
3228         (fmemopen_seek): Return EINVAL for invalid whence modes.
3229
3230         [BZ #19957]
3231         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3232         tst-getpid2.
3233         (test): Add tst-clone2.
3234         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3235         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3236         pid/tid fields for CLONE_VM.
3237         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3238         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3239         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3240         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3241         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3242         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3243         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3244         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3246         Likewise.
3247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3248         Likewise.
3249         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3250         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3251         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3252         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3253         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3254         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3255         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3256         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3257
3258 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3259
3260         [BZ #19642]
3261         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3262         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3263         (gni_serv_local, gni_serv): New functions extracted from
3264         getnameinfo.
3265         (getnameinfo): Call gni_host and gni_serv to perform the
3266         processing.  Always free scratch buffer.
3267
3268 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3269
3270         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3271         remaining bytes in the dest string, with zeros.
3272
3273 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3274
3275         [BZ #20010]
3276         CVE-2016-3706
3277         * sysdeps/posix/getaddrinfo.c
3278         (convert_hostent_to_gaih_addrtuple): New function.
3279         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3280         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3281         AF_INET data.
3282
3283 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3284
3285         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3286         callback function gl_readdir.
3287         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3288         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3289         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3290         memcpy to copy the name.
3291         * manual/pattern.texi (Calling Glob): Document requirements for
3292         implementations of the gl_readdir callback function.
3293         * manual/examples/mkdirent.c: New example.
3294         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3295         per the manual guidance.
3296         * posix/tst-gnuglob.c (my_readdir): Likewise.
3297
3298 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3299
3300         [BZ #20014]
3301         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3302         not [__USE_POSIX].
3303         (getchar_unlocked): Likewise.
3304         (putc_unlocked): Likewise.
3305         (putchar_unlocked): Likewise.
3306         (flockfile): Likewise.
3307         (ftrylockfile): Likewise.
3308         (funlockfile): Likewise.
3309         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3310         variable.
3311         (test-xfail-XPG4/stdio.h/conform): Likewise.
3312
3313         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3314         Expect constant.
3315         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3316         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3317         variable.
3318         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3319         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3320
3321         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3322         [__USE_LARGEFILE64] (off64_t): Likewise.
3323         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3324         variable.
3325
3326 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3327
3328         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3329
3330 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3331
3332         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3333         * resolv/res_init.c: Likewise.
3334         * resolv/res_mkquery.c: Likewise.
3335
3336 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3337
3338         * resolv/res_init.c (isascii): Do not define.  Use definition in
3339         <ctype.h>.
3340         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3341         (LOG_AUTH): Remove.
3342         (SPRINTF): Remove, adjust caller.
3343         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3344
3345 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3346
3347         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3348         SUNSECURITY conditional.
3349         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3350
3351 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3352
3353         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3354         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3355         Remove BSD-related preprocessor conditionals.
3356         * conf/portability.h: Remove.
3357
3358 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3359
3360         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3361         * resolv/res_data.c: Likewise.
3362
3363 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3364
3365         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3366         * resolv/res_data.c: Remove code conditional on ultrix.
3367
3368 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3369
3370         * resolv/res_init.c (RFC1535): Do not define.  Remove
3371         RFC1535 preprocessor conditionals.
3372         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3373         because there configuration options which make the resolver
3374         behavior different.
3375
3376 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3377
3378         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3379         RESOLVSORT preprocessor conditionals.
3380         * resolv/nss_dns/dns-host.c: Likewise.
3381         * resolv/res_init.c: Likewise.
3382
3383 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3384
3385         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3386         is never defined.
3387
3388 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3389
3390         * inet/inet_lnaof.c: Remove SCSS keyword.
3391         * inet/inet_mkadr.c: Likewise.
3392         * inet/inet_net.c: Likewise.
3393         * inet/inet_netof.c: Likewise.
3394         * inet/rcmd.c: Likewise.
3395         * inet/rexec.c: Likewise.
3396         * inet/ruserpass.c: Likewise.
3397
3398 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3399
3400         * resolv/inet_addr.c: Remove _LIBC conditionals.
3401         * resolv/res_data.c: Likewise.
3402         * resolv/res_init.c: Likewise.
3403         * resolv/res_mkquery.c: Likewise.
3404         * resolv/res_libc.c: Update comment.
3405         * resolv/README: Update.
3406
3407 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3408
3409         * resolv/gethnamaddr.c: Remove SCSS keyword.
3410         * resolv/herror.c: Likewise.
3411         * resolv/inet_addr.c: Likewise.
3412         * resolv/inet_net_ntop.c: Likewise.
3413         * resolv/inet_net_pton.c: Likewise.
3414         * resolv/inet_neta.c: Likewise.
3415         * resolv/inet_ntop.c: Likewise.
3416         * resolv/inet_pton.c: Likewise.
3417         * resolv/ns_date.c: Remove RCS keyword.
3418         * resolv/ns_name.c: Likewise.
3419         * resolv/ns_netint.c: Likewise.
3420         * resolv/ns_parse.c: Likewise.
3421         * resolv/ns_print.c: Likewise.
3422         * resolv/ns_samedomain.c: Likewise.
3423         * resolv/ns_ttl.c: Likewise.
3424         * resolv/nsap_addr.c: Likewise.
3425         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3426         * resolv/res_data.c: Remove RCS keyword.
3427         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3428         * resolv/res_init.c: Likewise.
3429         * resolv/res_mkquery.c: Likewise.
3430         * resolv/res_query.c: Likewise.
3431         * resolv/res_send.c: Likewise.
3432
3433 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3434
3435         * conform/data/stdio.h-data (fdopen): Expect also for
3436         [XPG3 || XPG4].
3437
3438         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3439         (fseeko): Likewise.
3440         (ftello): Likewise.
3441         (ftrylockfile): Likewise.
3442         (funlockfile): Likewise.
3443         (getc_unlocked): Likewise.
3444         (getchar_unlocked): Likewise.
3445         (putc_unlocked): Likewise.
3446         (putchar_unlocked): Likewise.
3447
3448 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3449
3450         [BZ #19868]
3451         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3452         DNS packet syntax checks (which were not needed before).  Skip
3453         over non-PTR records.
3454
3455 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3456
3457         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3458         definition.  Include <stddef.h> instead.
3459
3460 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3461
3462         [BZ #19831]
3463         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3464         function.
3465         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3466         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3467
3468 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3469
3470         [BZ #19862]
3471         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3472         (getanswer_r): Do not call syslog.
3473         (gaih_getanswer_slice): Likewise.
3474         * resolv/gethnamaddr.c (AskedForGot): Remove.
3475         (getanswer): Do not call syslog.
3476         (gethostbyaddr): Likewise.
3477
3478 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3479
3480         * conform/data/signal.h-data (union sigval): Expect also if
3481         [XOPEN2K].
3482         (struct sigevent): Likewise.
3483         (SIGEV_NONE): Likewise.
3484         (SIGEV_SIGNAL): Likewise.
3485         (SIGEV_THREAD): Likewise.
3486         (SIGRTMIN): Likewise.
3487         (SIGRTMAX): Likewise.
3488         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3489         variable.
3490         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3491
3492 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3493
3494         [BZ #19830]
3495         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3496         (gaih_getanswer_slice): Likewise.
3497         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3498         Also check for availability of RR metadata.
3499
3500 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3501
3502         [BZ #19825]
3503         * resolv/res_send.c (send_vc): Remove early *resplen2
3504         initialization.  Set *resplen2 on socket error.  Call
3505         close_and_return_error for other errors.
3506
3507 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3508
3509         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3510         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3511         (SCM_IUCV_TRGCLS): New define.
3512
3513 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3514
3515         [BZ #20005]
3516         * libio/fmemopen.c (fmemopen_write): Update internal position after
3517         write.
3518         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3519         * stdio-common/tst-fmemopen4.c: New file..
3520
3521 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3522
3523         [BZ #19996]
3524         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3525         not [__USE_XOPEN2K].
3526         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3527         variable.
3528
3529         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3530         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3531         variable.
3532
3533         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3534         [__USE_XOPEN2K8].
3535         [__USE_LARGEFILE64] (off64_t): Likewise.
3536         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3537         variable.
3538
3539 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3540
3541         [BZ #19989]
3542         * libio/stdio.h (cuserid): Do not declare if
3543         [__USE_XOPEN2K && !__USE_GNU].
3544         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3545         variable.
3546
3547 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3548
3549         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3550         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3551         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3552         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3553         ifunc'ed strcspn.
3554         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3555         [EALIGN]: Removed.
3556         [END]: Likewise
3557         [STRSPN]: Define instead of the above to control symbol name.
3558         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3559         New file.
3560         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3561         Likewise.
3562         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3563         Likewise.
3564         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3565         Likewise.
3566         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3567         [INITIAL_MASK]: New macro.
3568         [STRCSPN]: Likewise.
3569         [UPDATE_MASK]: Likewise.
3570         [USE_AS_STRCSPN]: Lisewise.
3571
3572 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3573
3574         [BZ #19931]
3575         * stdio-common/tst-vfprintf-width-prec.c: New file.
3576         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3577         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3578         (generated): Add mtrace-related files.
3579         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3580         (tst-%-mem.out): New pattern rule, replaces
3581         tst-printf-bz18872-mem.out.
3582         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3583         specifier, deallocate any previously allocated work buffer.
3584
3585 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3586
3587         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3588         Add nop before __startcontext, add explaining comments.
3589
3590 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3591
3592         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3593         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3594         completely different API.
3595
3596         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3597         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3598         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3599         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3600         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3601         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3602         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3603         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3604         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3605         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3606
3607 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3608
3609         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3610
3611 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3612
3613         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3614         when it is the default of 0.
3615
3616 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3617
3618         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3619         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3620         (sysdep_routines): Add new strcasestr targets.
3621         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3622         (__libc_ifunc_impl_list): Likewise.
3623         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3624         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3625         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3626         * sysdeps/powerpc/powerpc64/power8/Makefile:
3627         New file to add strcasestr-ppc64 to sysdep_routines.
3628         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3629         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3630
3631 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3632
3633         * benchtests/Makefile (wcsmbs-benchset): Include only for
3634         native builds and runs.
3635         (LOCALES): Likewise.
3636         (bench-build): Build timing-type here instead of the bench
3637         target.  Generate locale only for native builds.
3638         * benchtests/README: Add note for cross-building.
3639
3640         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3641
3642         * benchtests/README: Update README to include instructions on
3643         using bench-build.
3644
3645         * Makefile.in (bench-build): New target.
3646         * Rules (PHONY): Add bench-build target.
3647         * benchtests/Makefile (bench): Depend on bench-build.
3648         (bench-build): New target.
3649
3650 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3651
3652         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3653         profil_reply_port.
3654         (profile_waiter): Do not initialize profil_reply_port.
3655         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3656         frequency instead of tick length in us.
3657
3658 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3659
3660         [BZ #18712]
3661         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3662         (__old_mempcpy_small): Likewise.
3663         (__old_strcpy_small): Likewise.
3664         (__old_stpcpy_small): Likewise.
3665         (__old_strpbrk_c2): Fix compat symbol name.
3666         (__old_strpbrk_c3): Likewise.
3667         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3668         (__mempcpy_small): Remove.
3669         (__strcpy_small): Remove.
3670         (__stpcpy_small): Remove.
3671
3672 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3673
3674         [BZ #19400]
3675         * locale/iso-639.def: Add the Talossan/tzl language.
3676
3677 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3678
3679         [BZ #16983]
3680         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3681         comment.  Add "ln" to strchr check on postal_fmt.
3682
3683 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3684
3685         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3686         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3687         tel_dom_fmt.
3688
3689 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3690
3691         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3692         (sysdep_routines): Added __strlen_power8.
3693         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3694         __strlen_power8 entry.
3695         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3696         Implementation for POWER8.
3697         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3698         for __strlen_power8.
3699         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3700         Implementation for POWER8.
3701
3702 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3703
3704         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3705
3706 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3707
3708         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3709         Goldmont and Airmont processors.
3710
3711 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3712
3713         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3714         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3715         (__STRING2_SMALL_GET32): Remove.
3716         (memset): Remove.
3717         (__memset_1): Remove.
3718         (__memset_gc): Remove.
3719         (__mempcpy): Remove.
3720         (mempcpy): Remove.
3721         (__mempcpy_args): Remove.
3722         (strchr): Remove.
3723         (strcpy): Remove.
3724         (strcpy_args): Remove.
3725         (__stpcpy_args): Remove.
3726         (__strcmp_cc): Remove.
3727         (__strcmp_gc): Remove.
3728         (strstr): Remove.
3729
3730 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3731
3732         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3733         * nis/nis_call.c (nis_server_cache_add): Likewise.
3734
3735 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3736
3737         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3738
3739 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3740
3741         * malloc/arena.c (__malloc_fork_lock_parent)
3742         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3743         internal_function attribute.
3744
3745 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3746
3747         * stdio-common/printf_fp.c (__printf_fp_l):
3748         Rename ___printf_fp_l to __printf_fp_l and
3749         remove strong alias. Use libc_hidden_def instead
3750         of ldbl_hidden_def macro.
3751
3752 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3753
3754         Remove malloc hooks from fork handler.  They are no longer needed
3755         because malloc runs right before fork, and no malloc calls from
3756         other fork handlers are not possible anymore.
3757         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3758         declarations.
3759         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3760         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3761         (atfork_recursive_cntr): Remove.
3762         (__malloc_fork_lock_parent): Do not override malloc hooks and
3763         thread_arena.
3764         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3765         thread_arena.
3766         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3767         thread_arena instead of save_arena.
3768
3769 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3770
3771         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3772         (thread_atfork, thread_atfork_static): Remove.
3773         * sysdeps/mach/hurd/malloc-machine.h:
3774         (thread_atfork, thread_atfork_static): Remove.
3775
3776 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3777
3778         [BZ #19431]
3779         Run the malloc fork handler as late as possible to avoid deadlocks.
3780         * malloc/malloc-internal.h: New file.
3781         * malloc/malloc.c: Include it.
3782         * malloc/arena.c (ATFORK_MEM): Remove.
3783         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3784         Update comment.
3785         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3786         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3787         Remove outdated comment.
3788         (ptmalloc_init): Do not call thread_atfork.  Remove
3789         thread_atfork_static.
3790         * malloc/tst-malloc-fork-deadlock.c: New file.
3791         * Makefile (tests): Add tst-malloc-fork-deadlock.
3792         (tst-malloc-fork-deadlock): Link against libpthread.
3793         * manual/memory.texi (Aligned Memory Blocks): Update safety
3794         annotation comments.
3795         * sysdeps/nptl/fork.c (__libc_fork): Call
3796         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3797         __malloc_fork_unlock_child.
3798         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3799
3800 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3801
3802         [BZ #19613]
3803         Remove union wait.
3804         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3805         (w_stopsig, w_stopval): Remove.
3806         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3807         stat_loc argument.
3808         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3809         (__WAIT_STATUS_DEFN): Remove.
3810         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3811         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3812         (wait, wait3, wait4): Use int * for the stat_loc argument.
3813         * posix/wait.c (__wait): Likewise.
3814         * posix/wait3.c (__wait3): Likewise.
3815         * posix/wait4.c (__wait4): Likewise.
3816         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3817         (__WAIT_STATUS_DEFN): Remove.
3818         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3819         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3820         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3821         argument.
3822         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3823         * sysdeps/posix/wait3.c (__wait3): Likewise.
3824         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3825         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3826         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3827         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3828         stat_loc argument.
3829         * manual/process.texi (BSD Wait Functions): Remove union wait.
3830
3831 2016-04-13  Andreas Schwab  <schwab@suse.de>
3832
3833         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3834         (test-extras): Add tst-tlsalign-vars.
3835         * math/Makefile: Wrap long lines.
3836         (libm-vec-test-wrappers): Define.
3837         (test-extras): Add $(libm-vec-test-wrappers).
3838         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3839         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3840         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3841         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3842         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3843         (extra-test-objs): Add corresponding objects.
3844
3845 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3846
3847         [BZ #19928]
3848         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3849         New.
3850         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3851         times of shared cache size.
3852         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3853         (VMOVNT): New.
3854         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3855         (VMOVNT): Likewise.
3856         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3857         (VMOVNT): Likewise.
3858         (VMOVU): Changed to movups for smaller code sizes.
3859         (VMOVA): Changed to movaps for smaller code sizes.
3860         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3861         comments.
3862         (PREFETCH): New.
3863         (PREFETCH_SIZE): Likewise.
3864         (PREFETCHED_LOAD_SIZE): Likewise.
3865         (PREFETCH_ONE_SET): Likewise.
3866         Rewrite to use forward and backward loops, which move 4 vector
3867         registers at a time, to support overlapping addresses and use
3868         non temporal store if size is above the threshold and there is
3869         no overlap between destination and source.
3870
3871 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3872
3873         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3874         Include dl-vdso.
3875         * sysdeps/unix/sysv/linux/mips/Versions: Add
3876         __vdso_clock_gettime.
3877         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3878         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3879         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3880         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3881         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3882         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3883         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3884         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3885         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3886
3887 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3888
3889         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3890         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3891         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3892         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3893         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3894         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3897         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3898         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3899         syscalls generation.
3900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3901         [__NR_pwrite64] (__NR_write): Remove define.
3902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3903         [__NR_pwrite64] (__NR_write): Remove define.
3904         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3905         Remove define.
3906         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3907         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3908         Remove define.
3909         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3910         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3911         Linux implementation as base.
3912         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3913
3914         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3915         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3916         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3917         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3920         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3921         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3922         syscall generation.
3923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3924         [__NR_pread64] (__NR_pread): Remove define.
3925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3926         [__NR_pread64] (__NR_pread): Likewise.
3927         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3928         define.
3929         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3930         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3931         Remove define.
3932         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3933         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3934         Linux implementation as base.
3935         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3936         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3937         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3938
3939         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3940         definition.
3941         (__ALIGNMENT_COUNT): Likewise.
3942         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3943         (__ALIGNMENT_COUNT): Likewise.
3944         (SYSCALL_LL): New define.
3945         (SYSCALL_LL64): Likewise.
3946         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3947         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3948         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3949         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3950
3951         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3952         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3953         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3954         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3955         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3956         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3957
3958 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3959
3960         [BZ #19865]
3961         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3962         original buffer before retry.
3963
3964 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3965
3966         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3967         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3968         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3969         GLRO(dl_auxv) list.
3970         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3971         including <ldsodefs.h>.
3972         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3973
3974 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3975
3976         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3977         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3978         $(CPPFLAGS).
3979
3980 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3981
3982         [BZ #17950]
3983         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3984         Add -mfpmath=387.
3985
3986 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3987
3988         * sysdeps/i386/configure.ac: Change == to = when calling test.
3989         * sysdeps/x86_64/configure.ac: Likewise.
3990         * sysdeps/i386/configure: Regenerated.
3991         * sysdeps/x86_64/configure: Likewise.
3992
3993 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3994
3995         [BZ #16137]
3996         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3997         * benchtests/bench-strcoll.c (input_files): Likewise.
3998         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3999         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
4000         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
4001
4002 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
4003
4004         [BZ #19929]
4005         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
4006         [__USE_XOPEN2K8 && !__USE_GNU].
4007         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
4008         variable.
4009
4010         [BZ #19925]
4011         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
4012         define if [!__USE_MISC && __USE_XOPEN2K].
4013         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
4014         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
4015         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
4016         Likewise.
4017         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
4018         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
4019         variable.
4020         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
4021
4022 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4023
4024         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
4025         (sysdep_routines): Add new strspn targets.
4026         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4027         (__libc_ifunc_impl_list): Add strspn.
4028         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
4029         New file.
4030         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
4031         Likewise.
4032         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
4033         Likewise.
4034         * sysdeps/powerpc/powerpc64/power8/strspn.S:
4035         Likewise.
4036
4037 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4038
4039         * misc/hsearch_r.c: Include <limits.h>.
4040
4041 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4042
4043         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
4044
4045 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4046
4047         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4048         (MEMCPY_SYMBOL): New.
4049         (MEMPCPY_SYMBOL): Likewise.
4050         (MEMMOVE_CHK_SYMBOL): Likewise.
4051         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
4052         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
4053         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
4054         Provide alias for memcpy in libc.a and ld.so.
4055
4056 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4057
4058         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4059         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
4060         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
4061         Disabled fro now.
4062         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
4063         symbols.  Properly check USE_MULTIARCH on __memset symbols.
4064
4065 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4066
4067         * benchtests/Makefile (string-benchset): Add memcpy-large,
4068         memmove-large and memset-large.
4069         * benchtests/bench-memcpy-large.c: New file.
4070         * benchtests/bench-memmove-large.c: Likewise.
4071         * benchtests/bench-memmove-large.c: Likewise.
4072         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
4073
4074 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4075
4076         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
4077         32-bit displacement to avoid long nop between instructions.
4078
4079 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4080
4081         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
4082         a comment on VMOVU and VMOVA.
4083
4084 2016-04-04  Florian Weimer  <fweimer@redhat.com>
4085
4086         [BZ #19633]
4087         Use specified locale for number formatting in strfmon_l.
4088         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
4089         (__nl_lookup_word): New inline functions.
4090         * include/printf.h (__print_fp_l): Declare.
4091         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
4092         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
4093         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
4094         (___printf_fp): New function.
4095         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
4096         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
4097         * stdlib/tst-strfmon_l.c (do_test): New test.
4098         * stdlib/Makefile (tests): Add kt.
4099         (LOCALES): Build additional locales.
4100         (tst-strfmon_l.out): Require locales.
4101
4102 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4103
4104         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
4105         if not in libc.
4106         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4107         Likewise.
4108         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
4109         Likewise.
4110         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4111         Likewise.
4112
4113 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4114
4115         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4116         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
4117         with unaligned_erms.
4118         (__memmove_erms): Skip if source == destination.
4119         (__memmove_unaligned_erms): Don't check source == destination
4120         first.
4121
4122 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4123
4124         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4125         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4126
4127 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4128
4129         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4130         * string/strspn.c (strspn): Likewise.
4131
4132 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4133
4134         * benchtests/bench-memset.c (do_test): Support 64-byte
4135         alignment.
4136         (test_main): Test 64-byte alignment.
4137
4138 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4139
4140         * benchtests/bench-memmove.c (test_main): Test 64-byte
4141         alignment.
4142
4143 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4144
4145         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4146
4147 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4148
4149         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4150         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4151         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4152
4153         * string/strpbrk.c (strpbrk): Rewrite function.
4154         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4155         (__strpbrk_c2): Likewise.
4156         (__strpbrk_c3): Likewise.
4157         * string/string-inlines.c
4158         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4159         Likewise.
4160         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4161         Likewise.
4162
4163         * string/strspn.c (strcspn): Rewrite function.
4164         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4165         (__strspn_c1): Remove inline function.
4166         (__strspn_c2): Likewise.
4167         (__strspn_c3): Likewise.
4168         * string/string-inlines.c
4169         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4170         compatibility symbol.
4171         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4172         Likewise.
4173         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4174         Likewise.
4175         * string/string-inlines.c: Include generic version.
4176
4177 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4178             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4179
4180         * string/Version (libc): Add GLIBC_2.24.
4181         * string/strcspn.c (strcspn): Rewrite function.
4182         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4183         (__strcspn_c1): Remove inline function.
4184         (__strcspn_c2): Likewise.
4185         (__strcspn_c3): Likewise.
4186         * string/string-inline.c
4187         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4188         compatibility symbol.
4189         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4190         Likewise.
4191         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4192         Likewise.
4193         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4194
4195 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4196
4197         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4198         Use ahi instead of aghi to adjust stack pointer.
4199
4200 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4201
4202         [BZ #19853]
4203         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4204         TEST to take significant digits as second parameter.
4205         [TEST]: Redefine in terms of TEST_N taking 30
4206         significant digits.
4207         (do_test): Add test case to demonstrate precision
4208         failure in the ldbl-128ibm printf.
4209         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4210         (__mpn_extract_long_double): Carry 7 extra intermediate
4211         bits of precision to aide computing difference when
4212         signs differ.
4213
4214 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4215
4216         [BZ #19881]
4217         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4218         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4219         memset-avx512-unaligned-erms.
4220         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4221         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4222         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4223         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4224         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4225         __memset_sse2_unaligned_erms, __memset_erms,
4226         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4227         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4228         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4229         file.
4230         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4231         Likewise.
4232         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4233         Likewise.
4234         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4235         Likewise.
4236
4237 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4238
4239         [BZ #19776]
4240         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4241         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4242         memmove-avx512-unaligned-erms.
4243         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4244         (__libc_ifunc_impl_list): Test
4245         __memmove_chk_avx512_unaligned_2,
4246         __memmove_chk_avx512_unaligned_erms,
4247         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4248         __memmove_chk_sse2_unaligned_2,
4249         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4250         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4251         __memmove_avx512_unaligned_erms, __memmove_erms,
4252         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4253         __memcpy_chk_avx512_unaligned_2,
4254         __memcpy_chk_avx512_unaligned_erms,
4255         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4256         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4257         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4258         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4259         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4260         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4261         __mempcpy_chk_avx512_unaligned_erms,
4262         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4263         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4264         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4265         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4266         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4267         __mempcpy_erms.
4268         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4269         file.
4270         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4271         Likwise.
4272         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4273         Likwise.
4274         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4275         Likwise.
4276
4277 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4278
4279         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4280         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4281         (La_s390_64_regs): Likewise.
4282         (La_s390_32_retval): Append vector register lrv_v24.
4283         (La_s390_64_retval): Likeweise.
4284         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4285         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4286         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4287         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4288
4289 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4290
4291         [BZ #19916]
4292         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4293         to create a non-vector/vector version for _dl_runtime_resolve and
4294         _dl_runtime_profile. Move implementation to ...
4295         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4296         (_dl_runtime_resolve) Save and restore fpr/vrs.
4297         (_dl_runtime_profile) Save and restore vrs and fix some issues
4298         if _dl_call_pltexit is called.
4299         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4300         Choose the correct resolver function if running on a machine with vx.
4301         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4302         to create a non-vector/vector version for _dl_runtime_resolve and
4303         _dl_runtime_profile. Move implementation to ...
4304         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4305         (_dl_runtime_resolve) Save and restore fpr/vrs.
4306         (_dl_runtime_profile) Save and restore vrs and fix some issues
4307         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4308         Choose the correct resolver function if running on a machine with vx.
4309
4310 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4311
4312         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4313
4314 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4315
4316         [BZ #19509]
4317         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4318         skip_map != NULL.
4319         * elf/tst-dlsym-error.c: New file.
4320         * elf/Makefile (tests): Add tst-dlsym-error.
4321         (tst-dlsym-error): Link against libdl.
4322
4323 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4324
4325         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4326         (__ASSUME_FUTIMESAT): Remove macro.
4327         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4328
4329 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4330
4331         [BZ #19879]
4332         CVE-2016-3075
4333         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4334         copy name.
4335
4336 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4337
4338         [BZ #19837]
4339         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4340         error if parse_line fails.
4341
4342 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4343
4344         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4345         (index_cpu_ERMS): Likewise.
4346         (reg_ERMS): Likewise.
4347
4348 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4349
4350         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4351         PER_LINUX_FDPIC): Add.
4352
4353 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4354
4355         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4356         memcpy-avx512-no-vzeroupper.
4357         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4358         to ...
4359         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4360         (MEMCPY): Don't define.
4361         (MEMCPY_CHK): Likewise.
4362         (MEMPCPY): Likewise.
4363         (MEMPCPY_CHK): Likewise.
4364         (MEMPCPY_CHK): Renamed to ...
4365         (__mempcpy_chk_avx512_no_vzeroupper): This.
4366         (MEMPCPY_CHK): Renamed to ...
4367         (__mempcpy_chk_avx512_no_vzeroupper): This.
4368         (MEMCPY_CHK): Renamed to ...
4369         (__memmove_chk_avx512_no_vzeroupper): This.
4370         (MEMCPY): Renamed to ...
4371         (__memmove_avx512_no_vzeroupper): This.
4372         (__memcpy_avx512_no_vzeroupper): New alias.
4373         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4374
4375 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4376
4377         [BZ #18858]
4378         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4379         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4380         and mempcpy-avx512-no-vzeroupper.
4381         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4382         New.
4383         (MEMPCPY): Likewise.
4384         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4385         (MEMPCPY_CHK): New.
4386         (MEMPCPY): Likewise.
4387         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4388         (MEMPCPY): Likewise.
4389         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4390         (MEMPCPY): Likewise.
4391         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4392         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4393         Likewise.
4394         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4395         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4396
4397 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4398              Amit Pawar  <Amit.Pawar@amd.com>
4399
4400         [BZ #19583]
4401         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4402         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4403         processors.  Set Fast_Copy_Backward for AMD Excavator
4404         processors.
4405         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4406         New.
4407         (index_arch_Fast_Unaligned_Copy): Likewise.
4408         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4409         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4410
4411 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4412
4413         [BZ #19791]
4414         * resolv/res_send.c (close_and_return_error): New function.
4415         (send_dg): Initialize *resplen2 after reopen failure.  Call
4416         close_and_return_error for error returns.  On error paths without
4417         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4418         successful return.
4419
4420 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4421
4422         [BZ# 19860]
4423         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4424         zero if the compiler does not provide the AVX512F bit.
4425
4426 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4427
4428         [BZ #19848]
4429         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4430         from 8 to 4.
4431         (__ieee754_powl): Compare integer exponent against 4 not 8.
4432         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4433         from 8 to 4.
4434         (__ieee754_powl): Compare integer exponent against 4 not 8.
4435         * math/auto-libm-test-in: Add more tests of pow.
4436         * math/auto-libm-test-out: Regenerated.
4437         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4439
4440 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4441
4442         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4443         Make code unconditional.
4444         [!__NR_utimensat]: Remove conditional code.
4445         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4446         Make code unconditional.
4447         [!__NR_utimensat]: Remove conditional code.
4448         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4449         Make code unconditional.
4450         [!__NR_utimensat]: Remove conditional code.
4451
4452 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4453
4454         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4455         Make code unconditional.
4456
4457 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4458
4459         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4460         call-clobbered %eax on retry path.
4461         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4462
4463 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4464
4465         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4466         Don't set %rcx twice before "rep movsb".
4467
4468 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4469
4470         [BZ #19583]
4471         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4472         inline.  Check family before setting family, model and
4473         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4474         bits here.
4475         (init_cpu_features): Replace HAS_CPU_FEATURE and
4476         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4477         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4478         for Intel processors with usable AVX2.  Call get_common_indeces
4479         for other processors with family == NULL.
4480         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4481         (CPU_FEATURES_ARCH_P): Likewise.
4482         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4483         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4484
4485 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4486
4487         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4488         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4489         $(shared-thread-library) instead of hardcoding the path to libpthread.
4490
4491 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4492
4493         * sysdeps/unix/sysv/linux/kernel-features.h
4494         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4495         * sysdeps/unix/sysv/linux/getdents.c
4496         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4497         [!have_no_getdents64_defined]: Likewise.
4498         (__GETDENTS): Remove __have_no_getdents64 conditional.
4499
4500 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4501
4502         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4503         Remove macro.
4504         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4505         <kernel-features.h>.
4506         (signalfd) [__NR_signalfd4]: Make code unconditional.
4507         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4508
4509 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4510
4511         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4512         style.
4513
4514 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4515
4516         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4517         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4518         __pthread_unwind.
4519         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4520         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4521         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4522         (__condvar_cleanup1): Likewise.
4523
4524 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4525
4526         [BZ #19822]
4527         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4528         move it to the final $@ location.
4529
4530 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4531
4532         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4533         access where posix_spawn success and pid argument is null.
4534         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4535         success case.
4536
4537 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4538
4539         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4540
4541         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4542
4543         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4544         and __fcntl.
4545         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4546         __fcntl only.
4547         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4548         adding attribute_hidden to __open and __fcntl.
4549
4550         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4551         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4552         depend on libc-modules.h,
4553         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4554
4555 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4556
4557         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4558         Remove macro.
4559         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4560         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4561         entry.
4562
4563         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4564         Remove macro.
4565         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4566         include <kernel-features.h>.
4567         [!__ASSUME_FALLOCATE]: Remove conditional code.
4568         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4569
4570 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4571
4572         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4573         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4574         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4575         (_ZGVdN4v_cos_avx2): Likewise.
4576         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4577         (_ZGVdN4v_cos): Likewise.
4578         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4579         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4580         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4581         (_ZGVdN4v_exp_avx2): Likewise.
4582         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4583         (_ZGVdN4v_exp): Likewise.
4584         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4585         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4586         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4587         (_ZGVdN4v_log_avx2): Likewise.
4588         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4589         (_ZGVdN4v_log): Likewise.
4590         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4591         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4592         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4593         (_ZGVdN4vv_pow_avx2): Likewise.
4594         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4595         (_ZGVdN4vv_pow): Likewise.
4596         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4597         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4598         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4599         (_ZGVdN4v_sin_avx2): Likewise.
4600         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4601         (_ZGVdN4v_sin): Likewise.
4602         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4603         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4604         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4605         (_ZGVdN4vvv_sincos_avx2): Likewise.
4606         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4607         (_ZGVdN4vvv_sincos): Likewise.
4608         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4609         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4610         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4611         (_ZGVbN4v_cosf_sse4): Likewise.
4612         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4613         (_ZGVdN8v_cosf_avx2): Likewise.
4614         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4615         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4616         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4617         (_ZGVbN4v_expf_sse4): Likewise.
4618         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4619         (_ZGVdN8v_expf_avx2): Likewise.
4620         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4621         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4622         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4623         (_ZGVbN4v_logf_sse4): Likewise.
4624         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4625         (_ZGVdN8v_logf_avx2): Likewise.
4626         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4627         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4628         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4629         (_ZGVbN4vv_powf_sse4): Likewise.
4630         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4631         (_ZGVdN8vv_powf_avx2): Likewise.
4632         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4633         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4634         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4635         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4636         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4637         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4638         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4639         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4640         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4641         (_ZGVbN4v_sinf_sse4): Likewise.
4642         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4643         (_ZGVdN8v_sinf_avx2): Likewise.
4644         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4645         Use JUMPTARGET to call callee.
4646         (WRAPPER_IMPL_SSE2_ff): Likewise.
4647         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4648         (WRAPPER_IMPL_AVX): Likewise.
4649         (WRAPPER_IMPL_AVX_ff): Likewise.
4650         (WRAPPER_IMPL_AVX_fFF): Likewise.
4651         (WRAPPER_IMPL_AVX512): Likewise.
4652         (WRAPPER_IMPL_AVX512_ff): Likewise.
4653         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4654         Likewise.
4655         (WRAPPER_IMPL_SSE2_ff): Likewise.
4656         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4657         (WRAPPER_IMPL_AVX): Likewise.
4658         (WRAPPER_IMPL_AVX_ff): Likewise.
4659         (WRAPPER_IMPL_AVX_fFF): Likewise.
4660         (WRAPPER_IMPL_AVX512): Likewise.
4661         (WRAPPER_IMPL_AVX512_ff): Likewise.
4662         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4663
4664 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4665
4666         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4667         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4668         qualifier.
4669         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4670         internal_function qualifiers.
4671
4672 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4673
4674         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4675         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4676         * math/atest-exp.c (exp_mpn): Mark chk unused.
4677         * math/atest-exp2.c (exp_mpn): Likwise.
4678         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4679         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4680
4681 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4682
4683         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4684         Remove macro.
4685         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4686         <kernel-features.h>.
4687         [__NR_ppoll]: Make code unconditional.
4688         [!__ASSUME_PPOLL]: Remove conditional code.
4689
4690         * sysdeps/unix/sysv/linux/kernel-features.h
4691         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4692         (__ASSUME_ACCEPT4): Likewise.
4693         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4694         Define.
4695         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4696         Likewise.
4697         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4698         Likewise.
4699         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4700         Likewise.
4701         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4702         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4703         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4704         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4705         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4706         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4707         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4708         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4709         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4710         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4711         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4712         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4713         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4714         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4715         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4716         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4717         Likewise.
4718         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4719         Likewise.
4720         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4721         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4722         0x040300].
4723         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4724         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4725         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4726         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4727         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4728         0x030300].
4729         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4730         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4731         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4732         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4733         0x040300].
4734         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4735         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4736         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4737         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4738         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4739         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4740         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4741         0x030300].
4742         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4743         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4744         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4745         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4746         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4747         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4748         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4749         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4750         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4751         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4752         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4753         0x040300].
4754         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4755         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4756         * sysdeps/unix/sysv/linux/sh/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/sparc/kernel-features.h
4761         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4762         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4763         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4764         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4765         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4766         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4767         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4768         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4769         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4770         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4771         Likewise.
4772         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4773         Likewise.
4774
4775 2016-03-15  Andreas Schwab  <schwab@suse.de>
4776
4777         [BZ #19257]
4778         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4779         statp->_u._ext.nscount as loop count.
4780
4781 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4782
4783         * math/test-signgam-finite-c99.c: Also #undef
4784         __LIBC_INTERNAL_MATH_INLINES.
4785         * math/test-signgam-main.c: Likewise.
4786
4787 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4788
4789         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4790         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4791         (MADV_FREE): Likewise.
4792         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4793         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4794         EPOLLEXCLUSIVE.
4795
4796 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4797
4798         * timezone/README: Remove mention of checktab.awk. Mention wiki
4799         SharedSourceFiles.
4800
4801 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4802
4803         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4804         WUNTRACED.
4805
4806 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4807
4808         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4809         order to match the type of p when calling atomic_exchange_acq().
4810
4811 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4812
4813         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4814         cfi_offset calls.
4815         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4816         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4817         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4818         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4819         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4820
4821 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4822
4823         * timezone/checktab.awk: Removed.
4824
4825 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4826
4827         * manual/math.texi (Errors in Math Functions): Document relaxed
4828         accuracy goals for IBM long double.
4829         * math/libm-test.inc (test_exceptions): Always allow spurious
4830         "underflow" and "inexact" exceptions for IBM long double.
4831
4832 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4833
4834         [BZ #19762]
4835         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4836         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4837         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4838         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4839         (bit_arch_*): This for feature array.
4840         (bit_*): Renamed to ...
4841         (bit_cpu_*): This for cpu array.
4842         (index_*): Renamed to ...
4843         (index_arch_*): This for feature array.
4844         (index_*): Renamed to ...
4845         (index_cpu_*): This for cpu array.
4846         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4847         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4848         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4849         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4850         bit_##name with index_cpu_##name and bit_cpu_##name.
4851         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4852         bit_##name with index_arch_##name and bit_arch_##name.
4853
4854 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4855
4856         [BZ #19792]
4857         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4858         Terminate FDE before return label.
4859
4860 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4861
4862         [BZ #19790]
4863         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4864         (rintl): Define as macro.
4865         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4866         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4867         of fesetround.  Ensure results are evaluated before end of scope.
4868         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4869         USE_AS_NEARBYINTL and include s_rintl.c.
4870         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4871         Disable exception traps in new environment.
4872         (libc_feholdsetround_ppc_ctx): Likewise.
4873
4874 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4875
4876         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4877         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4878         (tst_audit10_aux) [__AVX512F__]: ... here.
4879
4880 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4881
4882         * include/sys/auxv.h: New file.
4883
4884 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4885
4886         [BZ #19759]
4887         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4888
4889 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4890
4891         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4892         operand modifier.
4893         (feclearexcept): Likewise.
4894
4895 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4896
4897         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4898         to reflect the entire 32-bit HWCAP.
4899         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4900         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4901
4902 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4903
4904         [BZ #19783]
4905         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4906         $(test-via-rtld-prefix).
4907         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4908
4909 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4910
4911         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4912         union wait.  Report any non-zero exit status as error.
4913
4914 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4915
4916         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4917         configured with --enable-hardcoded-path-in-tests.
4918
4919 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4920
4921         [BZ #19677]
4922         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4923         (__ieee754_remainderl): Put zero low parts in canonical form.
4924         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4925         file.  Based on
4926         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4927         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4928         with wrapper round test-fmodrem-ldbl-128ibm.c.
4929         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4930         file.
4931         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4932         Likewise.
4933         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4934         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4935
4936 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4937
4938         [BZ #19610]
4939         * elf/ldconfig.c (opt_link): Update comment.
4940         (options): Update help string for option -X.
4941         (search_dir): Unlink stale symbolic link only if updating symbolic
4942         links.
4943         * elf/tst-ldconfig-X.sh: New file.
4944         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4945         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4946
4947 2016-03-07  Andreas Schwab  <schwab@suse.de>
4948
4949         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4950         needed arguments.
4951
4952 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4953
4954         [BZ #15333]
4955         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4956         to lstat64.
4957
4958 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4959
4960         * libio/filedoalloc.c (isatty): Remove.
4961         (local_isatty): Add comment.  Call __isatty directly.
4962         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4963         * libio/wfiledoalloc.c (isatty): Remove.
4964         (_IO_wfile_doallocate): Update comment.
4965
4966 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4967
4968         [BZ #19269]
4969         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4970         tst-audit4-aux.o.
4971         (tst-audit10): Depend on tst-audit10-aux.o.
4972         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4973         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4974         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4975         instead of inline AVX code.
4976         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4977         instead of inline AVX512 code.
4978         * sysdeps/x86_64/tst-audit4-aux.c: New file
4979         * sysdeps/x86_64/tst-audit10-aux.c: New file
4980
4981         [BZ #19648]
4982         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4983
4984 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4985
4986         [BZ #14750]
4987         [BZ #10354]
4988         [BZ #18433]
4989         * include/sched.h (__clone): Add hidden prototype.
4990         (__clone2): Likewise.
4991         * include/unistd.h (__dup): Likewise.
4992         * posix/Makefile (tests): Add tst-spawn2.
4993         * posix/tst-spawn2.c: New file.
4994         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4995         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4996         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4997         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4998         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4999         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
5000         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
5001         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
5002         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
5003         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
5004         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
5005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
5006         Likewise.
5007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
5008         Likewise.
5009         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
5010         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
5011         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
5012         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
5013         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
5014         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
5015         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
5016         * sysdeps/unix/sysv/linux/nptl-signals.h
5017         (____nptl_is_internal_signal): New function.
5018         * sysdeps/unix/sysv/linux/spawni.c: New file.
5019
5020         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
5021         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
5022         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
5023         * posix/tst-execvp2.c (do_test): Likewise.
5024         * posix/tst-execvp3.c (do_test): Likewise.
5025         * posix/tst-execvp4.c (do_test): Likewise.
5026         * posix/tst-execvpe1.c: New file.
5027         * posix/tst-execvpe2.c: Likewise.
5028         * posix/tst-execvpe3.c: Likewise.
5029         * posix/tst-execvpe4.c: Likewise.
5030         * posix/tst-execvpe5.c: Likewise.
5031         * posix/tst-execvpe6.c: Likewise.
5032
5033         [BZ #19534]
5034         * posix/execl.c (execl): Remove dynamic memory allocation.
5035         * posix/execle.c (execle): Likewise.
5036         * posix/execlp.c (execlp): Likewise.
5037
5038 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5039
5040         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
5041         Replace .text with .text.avx512.
5042         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
5043         Likewise.
5044
5045 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
5046
5047         * sysdeps/generic/libnsl.abilist: New file.
5048         * sysdeps/generic/libutil.abilist: New file.
5049
5050 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5051
5052         [BZ #19762]
5053         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
5054         HAS_ARCH_FEATURE with Fast_Rep_String.
5055         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
5056         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
5057         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
5058         Likewise.
5059         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
5060         Likewise.
5061         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
5062         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
5063         Likewise.
5064         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
5065         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
5066         Likewise.
5067
5068 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5069
5070         [BZ #19745]
5071         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
5072         with *%rax in call.
5073
5074 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5075
5076         [BZ #19745]
5077         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
5078         with *__libc_start_main@GOTPCREL(%rip) in call.
5079
5080 2016-03-04  Roland McGrath  <roland@hack.frob.com>
5081
5082         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
5083         inside conditional for nonempty $(CXX).
5084
5085         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
5086         nonempty.
5087
5088         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
5089         to test for empty $(CXX) rather than $(CXX) of "no".
5090
5091 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5092
5093         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
5094
5095 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
5096             H.J. Lu  <hongjiu.lu@intel.com>
5097
5098         [BZ #18880]
5099         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
5100         instead of Slow_BSF, and also check for Fast_Copy_Backward to
5101         enable __memcpy_ssse3_back.
5102
5103 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5104
5105         [BZ #19758]
5106         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
5107         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
5108
5109 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
5110
5111         [BZ #19490]
5112         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
5113         (__fentry__): Likewise.
5114
5115 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5116
5117         * gmon/Makefile (noprof): Add $(sysdep_noprof).
5118         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
5119
5120 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5121
5122         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
5123         __mcount_internal directly.
5124         (C_LABEL(__fentry__)): Likewise.
5125         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5126         directly.
5127
5128 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5129
5130         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5131         (__start_context): Call __setcontext directly.
5132
5133 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5134
5135         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5136         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5137         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5138         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5139         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5140         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5141         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5142         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5143         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5144         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5145         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5146         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5147         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5148         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5149         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5150         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5151         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5152         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5153         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5154         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5155         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5156         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5157         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5158         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5159         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5160         Remove conditional code.
5161         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5162         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5163         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5164         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5165         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5166         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5167         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5168         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5169         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5170         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5171         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5172         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5173
5174 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5175
5176         * NEWS (2.23): Fix typo in bug 19048 text.
5177
5178 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5179
5180         [BZ #14259]
5181         * Makeconfig: Rename msgcatdir to localedir.
5182         Rename inst_msgcatdir to inst_localedir.
5183         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5184         * config.make.in: Add localedir.
5185         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5186         (ldd-rewrite): Likewise.
5187         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5188         (install-others): Use inst_localedir.
5189         (CPPFLAGS): Use localedir.
5190         * locale/Makefile (locale-CPPFLAGS): Likewise.
5191         * po/Makefile (mo-installed): Use inst_localedir.
5192
5193         [BZ #19575]
5194         * localedata/charmaps/GB18030: Update comments regarding PAU to
5195         non-PUA mappings.
5196
5197 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5198
5199         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5200         test for header.
5201         * sysdeps/unix/sysv/linux/configure: Regenerated.
5202         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5203         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5204         Remove conditional code.
5205         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5206
5207         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5208         Define to 3.2.0.
5209         (arch_minimum_kernel): Likewise.
5210         * sysdeps/unix/sysv/linux/configure: Regenerated.
5211         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5212         Define to 2.6.32.
5213         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5214         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5215         (arch_minimum_kernel): Define to 2.6.32.
5216         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5217         * README: Document Linux 3.2 requirement.
5218         * manual/install.texi (Linux): Document Linux 3.2 headers
5219         requirement.
5220         * INSTALL: Regenerated.
5221
5222 2016-02-24  Andreas Schwab  <schwab@suse.de>
5223
5224         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5225         if !NO_LONG_DOUBLE.
5226
5227 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5228
5229         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5230         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5231
5232 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5233
5234         [BZ #19512]
5235         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5236
5237 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5238
5239         * posix/tst-dir.c: Include libc-internal.h.
5240
5241 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5242
5243         [BZ #19056]
5244         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5245         * manual/filesys.texi (Reading/Closing Directory): Mention
5246         deprecaion.
5247         * posix/tst-dir.c (main): Disable deprecation warning in test.
5248
5249 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5250
5251         [BZ #19679]
5252         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5253         Renamed to ...
5254         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5255         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5256         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5257         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5258         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5259         * sysdeps/x86_64/dl-trampoline.h
5260         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5261         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5262
5263 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5264
5265         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5266
5267 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5268
5269         * elf/elf.h (R_386_GOT32X): New.
5270         (R_386_NUM): Update.
5271         (R_X86_64_GOTPCRELX: New.
5272         (R_X86_64_REX_GOTPCRELX): New.
5273         (R_X86_64_NUM): Update.
5274
5275 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5276
5277         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5278
5279 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5280
5281         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5282         assign attr->stackaddr to it, and adjust it down when
5283         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5284         [_STACK_GROWS_UP]: Delete assert.
5285         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5286         Implement stack grows up logic.
5287         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5288         stack grows up logic.
5289
5290 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5291
5292         * NEWS: Update with 2.24 template.
5293
5294 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5295
5296         [BZ #19678]
5297         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5298         Ensure +0.0 is returned when taking the next value below the least
5299         positive value.
5300
5301 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5302
5303         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5304         available.  Do not define NO_THREADS.
5305         * malloc/malloc.c: Do not check NO_THREADS.
5306         * malloc/arena.c: Likewise.
5307
5308 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5309
5310         * malloc/malloc.c (__libc_mallinfo): Update comment.
5311         (struct malloc_par): Remove max_total_mem member, it was always 0.
5312         (int_mallinfo): Store 0 into usmblks (no functional change).
5313         * malloc/hooks.c (struct malloc_state): Document that
5314         max_total_mem is always 0.
5315         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5316         always 0.
5317         * manual/memory.texi (Statistics of Malloc): Likewise.
5318
5319 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5320
5321         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5322         * malloc/arena.c (arena_max): Remove.
5323         (heap_trim, _int_new_arena): Do not update arena_max.
5324
5325 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5326
5327         * resolv/res_init.c (res_ninit): Update comment.
5328
5329 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5330
5331         [BZ #19505]
5332         * posix/spawn_int.h: Add headers and include guard.
5333         (__spawn_valid_fd): New function.
5334         * posix/spawn_faction_addopen.c
5335         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5336         * posix/spawn_faction_addclose.c
5337         (posix_spawn_file_actions_addclose): Likewise.
5338         * posix/spawn_faction_adddup2.c
5339         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5340         second file descriptor.
5341         * posix/spawn_valid_fd.c: New file.
5342         * posix/tst-posix_spawn-fd.c: New file.
5343         * posix/Makefile (routines): Add spawn_valid_fd.
5344         (tests): Add tst-posix_spawn-fd.
5345
5346 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5347
5348         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5349         (do_test): Limit the number of arenas, so that we can use fewer
5350         outer threads.  Limit timeout to 3 seconds, in preparation for a
5351         larger TIMEOUT value.
5352
5353 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5354
5355         [BZ #19674]
5356         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5357         sign in overflowing and underflowing results when overflow or
5358         underflow is detected early.  Include sign in result before rather
5359         than after scaling.
5360
5361         [BZ #19603]
5362         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5363         (__ieee754_remainderl): Adjust sign of integer version of low part
5364         when taking absolute value of high part.
5365         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5366         * math/libm-test.inc (remainder_test_data): Add another test.
5367         (remquo_test_data): Likewise.
5368
5369 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5370
5371         [BZ #19602]
5372         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5373         equal high parts and both low parts zero specially.
5374         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5375         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5376         Add test-fmodl-ldbl-128ibm.
5377
5378         [BZ #19595]
5379         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5380         common logic for all cases of shifting subnormal results.  Do not
5381         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5382         exponent to ldbl_insert_mantissa in subnormal case.
5383
5384         [BZ #19594]
5385         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5386         on high and low parts then adjust result and use
5387         ldbl_canonicalize_int if needed.
5388
5389         [BZ #19593]
5390         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5391         on high part and __floor or __ceil on low part then use
5392         ldbl_canonicalize_int if needed.
5393
5394         [BZ #19592]
5395         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5396         high and low parts then use ldbl_canonicalize_int if needed.
5397
5398         [BZ #17899]
5399         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5400         New function.
5401         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5402         on high and low parts then use ldbl_canonicalize_int if needed.
5403
5404 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5405
5406         * configure: Regenerated.
5407
5408         * po/libc.pot: Regenerated.
5409
5410         * po/be.po: Updated translation.
5411         * po/bg.po: Likewise.
5412         * po/ca.po: Likewise.
5413         * po/cs.po: Likewise.
5414         * po/da.po: Likewise.
5415         * po/el.po: Likewise.
5416         * po/eo.po: Likewise.
5417         * po/es.po: Likewise.
5418         * po/fi.po: Likewise.
5419         * po/fr.po: Likewise.
5420         * po/gl.po: Likewise.
5421         * po/hr.po: Likewise.
5422         * po/hu.po: Likewise.
5423         * po/ia.po: Likewise.
5424         * po/id.po: Likewise.
5425         * po/it.po: Likewise.
5426         * po/ja.po: Likewise.
5427         * po/lt.po: Likewise.
5428         * po/nb.po: Likewise.
5429         * po/nl.po: Likewise.
5430         * po/pt_BR.po: Likewise.
5431         * po/rw.po: Likewise.
5432         * po/sk.po: Likewise.
5433         * po/sl.po: Likewise.
5434         * po/sv.po: Likewise.
5435         * po/tr.po: Likewise.
5436         * po/zh_CN.po: Likewise.
5437         * po/zh_TW.po: Likewise.
5438
5439         * version.h (RELEAES): Set to "development".
5440         (VERSION): Set to 2.23.90.
5441
5442         * version.h (RELEASE): Set to "stable".
5443         (VERSION): Set to 2.23.
5444         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5445
5446         * NEWS: Updated fixed bugs.
5447
5448 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5449             Wilco Dijkstra  <wdijkstr@arm.com>
5450
5451         [BZ #19462]
5452         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5453         (_STRING_INLINE_unaligned): This.
5454         * include/string.h: Include <string_private.h>.
5455         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5456         _STRING_INLINE_unaligned.
5457         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5458         (_STRING_INLINE_unaligned): New.
5459         * sysdeps/aarch64/string_private.h: New file.
5460         * sysdeps/generic/string_private.h: Likewise.
5461         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5462         * sysdeps/s390/string_private.h: Likewise.
5463         * sysdeps/x86/string_private.h: Likewise.
5464         * sysdeps/m68k/m680x0/m68020/bits/string.h
5465         (_STRING_ARCH_unaligned): Renamed to ...
5466         (_STRING_INLINE_unaligned): This.
5467         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5468         to ...
5469         (_STRING_INLINE_unaligned): This.
5470         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5471         to ...
5472         (_STRING_INLINE_unaligned): This.
5473         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5474         to ...
5475         (_STRING_INLINE_unaligned): This.
5476
5477 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5478             H.J. Lu  <hongjiu.lu@intel.com>
5479
5480         [BZ #19590]
5481         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5482         relocation.
5483
5484 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5485
5486         [BZ #18665]
5487         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5488         *herrno_p.
5489         (gaih_getanswer): Document functional behviour. Return tryagain
5490         if any result is tryagain.
5491         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5492         when freed.
5493         * resolv/res_send.c: Add copyright text.
5494         (__libc_res_nsend): Document that MAXPACKET is expected.
5495         (send_vc): Document. Remove buffer reuse.
5496         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5497         size of the buffer. Add Dprint for truncated UDP buffer.
5498
5499 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5500
5501         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5502         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5503         * INSTALL: Regenerate.
5504
5505 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5506             Jonathan Wakely  <jwakely@redhat.com>
5507             Carlos O'Donell  <carlos@redhat.com>
5508
5509         [BZ 19439]
5510         * math/Makefile (tests): Add test-math-isinff.
5511         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5512         * math/bits/mathcalls.h [__USE_MISC]: Use
5513         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5514         functions not in C++11 and which don't conflict e.g. isinff,
5515         isinfl etc.
5516         * math/test-math-isinff.cc: New file.
5517
5518 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5519
5520         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5521
5522 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5523
5524         [BZ #19529]
5525         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5526
5527 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5528
5529         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5530
5531 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5532
5533         [BZ #19550]
5534         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5535         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5536         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5537         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5538         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5539         New syscall entry.
5540         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5541         New syscall entry.
5542         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5543         syscall entry.
5544
5545 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5546
5547         [BZ #18240]
5548         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5549         unsigned int wraparound.
5550
5551 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5552
5553         [BZ #18240]
5554         * misc/bug18240.c: New test.
5555         * misc/Makefile (tests): Add it.
5556
5557 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5558             Joseph Myers  <joseph@codesourcery.com>
5559
5560         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5561         load in branch delay slot when less than a word of input left.
5562
5563 2016-01-27  Andreas Schwab  <schwab@suse.de>
5564
5565         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5566         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5567         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5568         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5569
5570 2016-01-26  David S. Miller  <davem@davemloft.net>
5571
5572         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5573
5574 2016-01-25  David S. Miller  <davem@davemloft.net>
5575
5576         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5577         __sqrtl_finite.
5578         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5579         instead using versioned_symbol.
5580         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5581         of entries.
5582
5583         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5584         __sqrtl_finite to GLIBC_2.23
5585
5586 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5587
5588         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5589
5590 2016-01-25  Andreas Schwab  <schwab@suse.de>
5591
5592         [BZ #17514]
5593         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5594         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5595         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5596         * nptl/tst-mutex-errorcheck.c: New file.
5597
5598 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5599
5600         [BZ #18560]
5601         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5602         (IPCOP_semop): Likewise.
5603         (IPCOP_semget): Likewise.
5604         (IPCOP_semctl): Likewise.
5605         (IPCOP_msgsnd): Likewise.
5606         (IPCOP_msgrcv): Likewise.
5607         (IPCOP_msgget): Likewise.
5608         (IPCOP_msgctl): Likewise.
5609         (IPCOP_shmat): Likewise.
5610         (IPCOP_shmdt): Likewise.
5611         (IPCOP_shmget): Likewise.
5612         (IPCOP_shmctl): Likewise.
5613
5614 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5615
5616         * string/tst-endian.c: Include <libc-internal.h>.
5617         (do_test): Ignore tautological-compare warnings around
5618         "htobeXX (beXXtoh (i)) != i" and
5619         "htoleXX (leXXtoh (i)) != i" if-statements.
5620
5621 2016-01-24  David S. Miller  <davem@davemloft.net>
5622
5623         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5624         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5625         alias.
5626         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5627         __sqrtl_finite.
5628
5629         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5630
5631 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5632
5633         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5634         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5635         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5636
5637 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5638
5639         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5640         (thread_func): Use new function to simplify barrier check.
5641         (do_test): Use new function to simplify checking barrier exit
5642         code, and actually join the child thread.
5643
5644 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5645
5646         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5647         semicolon.
5648         (__libc_tend): Likewise.
5649         (__libc_tabort): Likewise.
5650
5651 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5652
5653         * sysdeps/nios2/libm-test-ulps: Update.
5654         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5655         (__gtsf2): Likewise.
5656         (__unorddf2): Likewise.
5657         (__unordsf2): Likewise.
5658         (__ledf2): Likewise.
5659
5660 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5661
5662         * nis/nis_table.c (__follow_path): Disable diagnostic for
5663         uninitialized variable that is a false positive for gcc 4.7.
5664         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5665
5666 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5667
5668         * sysdeps/nacl/lowlevellock-futex.h
5669         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5670         Always evaluate PRIVATE argument.
5671
5672 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5673
5674         [BZ #19490]
5675         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5676         (pthread_cond_broadcast): Use ENTRY/END
5677         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5678         (pthread_cond_signal): Likewise.
5679         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5680         Likewise.
5681         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5682         Likewise.
5683         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5684         Likewise.
5685
5686 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5687
5688         * sysdeps/ieee754/dbl-64/s_finite.c
5689         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5690         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5691         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5692         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5693         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5694
5695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5696         (__gtsf2): Add as optional for libc.so.
5697         (__unordsf2): Likewise.
5698         (__signbit): Remove for libc.so.
5699         (__signbitl): Likewise.
5700
5701 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5702
5703         * iconvdata/bug-iconv11.c (test_ibm93x):
5704         Use %zu printf format specifier for size_t argument.
5705
5706 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5707
5708         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5709         already-recorded ulps.
5710         * sysdeps/arm/libm-test-ulps: Regenerated.
5711         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5712         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5713         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5714
5715 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5716             Paul Pluzhnikov  <ppluzhnikov@google.com>
5717
5718         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5719         assembler not supporting AVX-512.
5720
5721 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5722
5723         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5724
5725 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5726
5727         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5728         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5729
5730         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5731
5732         * sysdeps/arm/libm-test-ulps: Regenerated.
5733
5734 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5735
5736         [BZ #19451]
5737         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5738
5739 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5740
5741         [BZ #19486]
5742         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5743         * sysdeps/generic/fix-fp-int-convert-overflow.h
5744         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5745         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5746         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5747         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5748         Likewise.
5749         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5750         Avoid conversions to long int where inexact exceptions
5751         could be raised.
5752         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5753         Likewise.
5754         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5755         Avoid conversions to long long int where inexact exceptions
5756         could be raised.
5757         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5758         Likewise.
5759
5760 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5761
5762         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5763         * configure: Regenerated.
5764
5765 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5766
5767         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5768
5769 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5770
5771         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5772         outside of comment.
5773
5774 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5775
5776         * nptl/tst-barrier1.c: Add description on first line.
5777         * nptl/tst-barrier2.c: Likewise.
5778         * nptl/tst-barrier3.c: Likewise.
5779         * nptl/tst-barrier4.c: Likewise.
5780         * nptl/tst-barrier5.c: Likewise.
5781
5782 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5783
5784         [BZ #18868]
5785         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5786
5787 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5788
5789         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5790         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5791         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5792         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5793         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5794         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5795         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5796         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5797         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5798         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5799         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5800
5801 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5802
5803         [BZ #13065]
5804         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5805         new implementation.
5806         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5807         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5808         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5809         (BARRIER_IN_THRESHOLD): New macro.
5810         * nptl/pthread_barrierattr_setpshared.c
5811         (pthread_barrierattr_setpshared): Clean up.
5812         * nptl/tst-barrier4.c: Correct comment.
5813         * nptl/tst-barrier5.c: New file.
5814         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5815         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5816         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5817         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5818         * nptl/lowlevelbarrier.sym: Remove.
5819         * nptl/DESIGN-barrier.txt: Remove.
5820         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5821         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5822         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5823         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5824         error.
5825         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5826         implementation.
5827
5828 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5829
5830         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5831         (do_child): Mask SIGRTMIN while thr is running.
5832
5833 2016-01-15  Martin Sebor  <msebor@redhat.com>
5834
5835         [BZ #19432]
5836         * iconvdata/Makefile: Add bug-iconv11.
5837         * iconvdata/bug-iconv11.c: New test.
5838         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5839         * iconvdata/ibm933.c: Same.
5840         * iconvdata/ibm935.c: Same.
5841         * iconvdata/ibm937.c: Same.
5842         * iconvdata/ibm939.c: Same.
5843
5844 2016-01-15  Martin Sebor  <msebor@redhat.com>
5845
5846         [BZ #19443]
5847         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5848         [DEBUG] (_ufc_set_bits): Declare used.
5849         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5850         [DEBUG] (print_all): Declare used.
5851         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5852         operands of the ternary ?: expression to target type.
5853         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5854         calling the undeclared abort.
5855         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5856
5857 2016-01-15  Martin Sebor  <msebor@redhat.com>
5858
5859         [BZ #18755]
5860         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5861         warnings.
5862         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5863         (__gai_create_helper_thread): Same.
5864         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5865         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5866         to suppress -Wmaybe-uninitialized warnings.
5867
5868 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5869
5870         [BZ #19465]
5871         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5872         inside if.
5873         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5874         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5875         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5876
5877 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5878
5879         [BZ #19466]
5880         * time/tst-mktime2.c (time_t_max): Removed.
5881         (time_t_min): Likewise.
5882         (TYPE_SIGNED): New.
5883         (TYPE_MINIMUM): Likewise.
5884         (TYPE_MAXIMUM): Likewise.
5885         (TIME_T_MIN): Likewise.
5886         (TIME_T_MAX): Likewise.
5887         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5888         and TIME_T_MIN.
5889         (do_test): Likewise.
5890
5891 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5892
5893         [BZ #19467]
5894         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5895         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5896
5897 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5898
5899         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5900
5901 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5902
5903         * benchtests/Makefile (PYTHON): Define.
5904         (bench-func): Use $(PYTHON) to run python scripts.
5905         ($(objpfx)bench-%.c): Likewise.
5906
5907 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5908
5909         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5910         leading slash when `file_name' is "/".
5911
5912 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5913
5914         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5915         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5916         Likewise.
5917         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5918         Likewise.
5919         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5920         Likewise.
5921         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5922         enum constant and macro.
5923         (PTRACE_SETSIGMASK): Likewise.
5924         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5925         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5926         (PTRACE_GETSIGMASK): Likewise.
5927         (PTRACE_SETSIGMASK): Likewise.
5928         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5929         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5930         Likewise.
5931         (PTRACE_SETSIGMASK): Likewise.
5932         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5933         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5934         (PTRACE_GETSIGMASK): Likewise.
5935         (PTRACE_SETSIGMASK): Likewise.
5936         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5937         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5938         Likewise.
5939         (PTRACE_SETSIGMASK): Likewise.
5940         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5941         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5942         Likewise.
5943         (PTRACE_SETSIGMASK): Likewise.
5944         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5945         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5946         Likewise.
5947         (PTRACE_SETSIGMASK): Likewise.
5948         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5949
5950 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5951             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5952
5953         [BZ #19439]
5954         * math/bits/mathcalls.h
5955         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5956         prototype.
5957         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5958
5959 2016-01-11  Andreas Schwab  <schwab@suse.de>
5960
5961         [BZ #19253]
5962         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5963         cache when TZDEFRULES was used.
5964         * time/tst-tzname.c: New file.
5965         * time/Makefile (test): Add tst-tzname.
5966         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5967         * timezone/Makefile (test-zones): Add $(posixrules-file).
5968         ($(testdata)/$(posixrules-file)): New rule.
5969
5970 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5971
5972         Fix doc quoting problems with Texinfo 5
5973         Without this change, in the info file output, Texinfo 5 quotes code
5974         in text with undirected single quotes 'like this' and generates
5975         code examples that with many PDF readers cannot be cut out of PDFs
5976         and pasted into code.
5977         * manual/libc.texinfo: Configure the libc manual like the GNU
5978         Emacs manual, by using @documentencoding and setting
5979         txicodequoteundirected and txicodequotebacktick.  This way,
5980         Texinfo 5 quotes code in text with directed single quotes ‘like
5981         this’ and produces examples that can be cut out of PDFs.  This
5982         change causes Texinfo 5 to generate info files that contain UTF-8
5983         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5984         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5985
5986 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5987
5988         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5989         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5990         barriers to their respective compiler built-ins.
5991         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5992         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5993         * sysdeps/powerpc/sysdep.h: Likewise.
5994         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5995         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5996         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5997
5998 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5999
6000         * scripts/config.guess: Revert previous shebang change.
6001         * scripts/config.sub: Likewise.
6002         * scripts/mkinstalldirs: Likewise.
6003
6004 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6005
6006         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
6007         PPC_FEATURE2_HAS_IEEE128.
6008         * sysdeps/powerpc/dl-procinfo.c:
6009         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
6010
6011 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
6012
6013         [BZ #19415]
6014         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
6015         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
6016         (_dl_lookup_address): Rewrite using function resolver trampoline.
6017         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
6018         two bits in address.
6019
6020 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6021
6022         * longlong.h: Change !__SHMEDIA__ to
6023         (!defined (__SHMEDIA__) || !__SHMEDIA__).
6024         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
6025
6026 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
6027             Joseph Myers  <joseph@codesourcery.com>
6028             Mark Shinwell  <shinwell@codesourcery.com>
6029             Andrew Stubbs  <ams@codesourcery.com>
6030             Rich Felker <dalias@libc.org>
6031
6032         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
6033
6034 2016-01-07  Richard Henderson  <rth@redhat.com>
6035
6036         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
6037
6038 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6039
6040         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
6041         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
6042         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
6043         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
6044         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
6045
6046 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
6047             Joseph Myers  <joseph@codesourcery.com>
6048
6049         * timezone/private.h: Update from tzcode 2015g.
6050         * timezone/tzfile.h: Likewise.
6051         * timezone/tzselect.ksh: Likewise.
6052         * timezone/zdump.c: Likewise.
6053         * timezone/zic.c: Likewise.
6054         * timezone/ialloc.c: Remove file.
6055         * timezone/scheck.c: Likewise.
6056         * timezone/Makefile (extra-objs): Remove variable.
6057         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
6058         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
6059         -Wno-maybe-uninitialized.
6060         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
6061         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
6062         (CFLAGS-ialloc.c): Remove variable.
6063         (CFLAGS-scheck.c): Likewise.
6064         * timezone/README: Update list of files from tzcode.
6065
6066 2016-01-07  Khem Raj  <raj.khem@gmail.com>
6067
6068         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
6069         instead of __fxprintf when _LIBC is undefined.
6070
6071 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
6072
6073         * catgets/test-gencat.sh: Remove space after shebang.
6074         * conform/GlibcConform.pm: Likewise.
6075         * conform/check-header-lists.sh: Likewise.
6076         * conform/conformtest.pl: Likewise.
6077         * conform/linknamespace.pl: Likewise.
6078         * conform/list-header-symbols.pl: Likewise.
6079         * debug/catchsegv.sh: Likewise.
6080         * elf/genrtldtbl.awk: Likewise.
6081         * elf/tst-pathopt.sh: Likewise.
6082         * elf/tst-rtld-load-self.sh: Likewise.
6083         * grp/tst_fgetgrent.sh: Likewise.
6084         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6085         * iconvdata/gen-8bit-gap.sh: Likewise.
6086         * iconvdata/gen-8bit.sh: Likewise.
6087         * iconvdata/run-iconv-test.sh: Likewise.
6088         * intl/tst-gettext.sh: Likewise.
6089         * intl/tst-gettext2.sh: Likewise.
6090         * intl/tst-gettext4.sh: Likewise.
6091         * intl/tst-gettext6.sh: Likewise.
6092         * intl/tst-translit.sh: Likewise.
6093         * io/ftwtest-sh: Likewise.
6094         * libio/test-freopen.sh: Likewise.
6095         * locale/gen-translit.pl: Likewise.
6096         * malloc/tst-mtrace.sh: Likewise.
6097         * manual/check-safety.sh: Likewise.
6098         * manual/libc-texinfo.sh: Likewise.
6099         * manual/tsort.awk: Likewise.
6100         * manual/xtract-typefun.awk: Likewise.
6101         * nptl/tst-cancel-wrappers.sh: Likewise.
6102         * nptl/tst-tls6.sh: Likewise.
6103         * posix/globtest.sh: Likewise.
6104         * posix/tst-getconf.sh: Likewise.
6105         * posix/wordexp-tst.sh: Likewise.
6106         * scripts/check-c++-types.sh: Likewise.
6107         * scripts/check-local-headers.sh: Likewise.
6108         * scripts/config.guess: Likewise.
6109         * scripts/config.sub: Likewise.
6110         * scripts/cpp: Likewise.
6111         * scripts/cross-test-ssh.sh: Likewise.
6112         * scripts/documented.sh: Likewise.
6113         * scripts/evaluate-test.sh: Likewise.
6114         * scripts/gen-libc-abis: Likewise.
6115         * scripts/gen-sorted.awk: Likewise.
6116         * scripts/list-fixed-bugs.py: Likewise.
6117         * scripts/merge-test-results.sh: Likewise.
6118         * scripts/mkinstalldirs: Likewise.
6119         * scripts/rellns-sh: Likewise.
6120         * scripts/test-installation.pl: Likewise.
6121         * scripts/update-copyrights: Likewise.
6122         * stdio-common/tst-printf.sh: Likewise.
6123         * stdio-common/tst-unbputc.sh: Likewise.
6124         * stdlib/tst-fmtmsg.sh: Likewise.
6125         * stdlib/tst-setcontext3.sh: Likewise.
6126         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6127         * sysdeps/unix/make-syscalls.sh: Likewise.
6128
6129 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6130
6131         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6132         asm stw with atomic_exchange_rel.  Add explanatory comment.
6133         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6134         Likewise.
6135
6136 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6137
6138         [BZ #19122]
6139         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6140         * sysdeps/generic/dl-unistd.h: New file.
6141         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6142
6143 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6144
6145          [BZ #19122]
6146          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6147          * sysdeps/generic/dl-mman.h: New file.
6148          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6149
6150 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6151
6152         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6153         trailing whitespace removed.
6154         * scripts/config.guess: Update to version 2016-01-01.
6155         * scripts/config.sub: Update to version 2016-01-01.
6156         * scripts/move-if-change: Update from gnulib.
6157
6158 2016-01-04  Anton Blanchard  <anton@samba.org>
6159
6160         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6161         for array indices.
6162         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6163
6164 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6165
6166         * NEWS: Update copyright dates.
6167         * catgets/gencat.c (print_version): Likewise.
6168         * csu/version.c (banner): Likewise.
6169         * debug/catchsegv.sh: Likewise.
6170         * debug/pcprofiledump.c (print_version): Likewise.
6171         * debug/xtrace.sh (do_version): Likewise.
6172         * elf/ldconfig.c (print_version): Likewise.
6173         * elf/ldd.bash.in: Likewise.
6174         * elf/pldd.c (print_version): Likewise.
6175         * elf/sotruss.sh: Likewise.
6176         * elf/sprof.c (print_version): Likewise.
6177         * iconv/iconv_prog.c (print_version): Likewise.
6178         * iconv/iconvconfig.c (print_version): Likewise.
6179         * locale/programs/locale.c (print_version): Likewise.
6180         * locale/programs/localedef.c (print_version): Likewise.
6181         * login/programs/pt_chown.c (print_version): Likewise.
6182         * malloc/memusage.sh (do_version): Likewise.
6183         * malloc/memusagestat.c (print_version): Likewise.
6184         * malloc/mtrace.pl: Likewise.
6185         * manual/libc.texinfo: Likewise.
6186         * nptl/version.c (banner): Likewise.
6187         * nscd/nscd.c (print_version): Likewise.
6188         * nss/getent.c (print_version): Likewise.
6189         * nss/makedb.c (print_version): Likewise.
6190         * posix/getconf.c (main): Likewise.
6191         * scripts/test-installation.pl: Likewise.
6192         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6193
6194         * All files with FSF copyright notices: Update copyright dates
6195         using scripts/update-copyrights.
6196         * intl/plural.c: Regenerated.
6197         * locale/programs/charmap-kw.h: Likewise.
6198         * locale/programs/locfile-kw.h: Likewise.
6199
6200 2016-01-02  Helge Deller  <deller@gmx.de>
6201
6202         [BZ #19285]
6203         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6204         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6205         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6206         (MADV_xxK_PAGES): Remove.
6207
6208 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6209
6210         [BZ #15421]
6211         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6212         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6213         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6214         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6215
6216 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6217
6218         [BZ #19408]
6219         * sysdeps/unix/sysv/linux/personality.c: New file.
6220         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6221         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6222         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6223         (sysdep_routines): Add personality.
6224         (tests): Add tst-personality.
6225         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6226         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6227         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6228         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6229         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6230         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6231         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6232         Likewise.
6233         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6234         Likewise.
6235         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6236         Likewise.
6237         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6238         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6239         Likewise.
6240
6241 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6242
6243         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6244         (PATH_ARM_SYSTYPE): Remove.
6245         (PATH_CPUINFO): Likewise.
6246         (IO_BASE_FOOTBRIDGE): Likewise.
6247         (IO_SHIFT_FOOTBRIDGE): Likewise.
6248         (struct platform): Likewise.
6249         (init_iosys): Remove compatibility code for 2.4 kernels.
6250         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6251
6252 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6253
6254         * malloc/tst-malloc-thread-fail.c: New file.
6255         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6256         (tst-malloc-thread-fail): Link against libpthread.
6257
6258 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6259
6260         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6261         (get_parser): New function.
6262         (main): New function.
6263
6264 2015-12-29  Rob Wu  <rob@robwu.nl>
6265
6266         [BZ #19369]
6267         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6268
6269 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6270
6271         [BZ #19270]
6272         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6273
6274 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6275
6276         [BZ #15421]
6277         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6278
6279 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6280
6281         [BZ #13690]
6282         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6283         after releasing it.
6284         (__lll_robust_unlock): Likewise.
6285         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6286         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6287         (lll_robust_unlock): Likewise.
6288         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6289         Prevent warnings in callers.
6290
6291 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6292
6293         * malloc/arena.c (list_lock): Update comment.
6294
6295 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6296
6297         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6298         __parse_hwcap_and_convert_at_platform to libc.a.
6299
6300 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6301
6302         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6303         platform and feature support for POWER9.
6304         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6305         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6306         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6307         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6308         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6309         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6310         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6311         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6312
6313 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6314
6315         Harmonize generic stdio-lock support with nptl
6316
6317         This fixes build when _IO_funlockfile is a macro, fixes build where
6318         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6319         stack unwind.
6320
6321         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6322         _IO_release_lock ): Use cleanup attribute on new
6323         _IO_acquire_lock_file variable instead of assuming that
6324         _IO_release_lock will be called.
6325         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6326         _IO_acquire_lock_needs_exceptions_enabled.
6327         (_IO_acquire_lock_clear_flags2): New macro.
6328
6329 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6330
6331         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6332
6333 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6334
6335         [BZ #19182]
6336         * malloc/arena.c (list_lock): Document lock ordering requirements.
6337         (free_list_lock): New lock.
6338         (ptmalloc_lock_all): Comment on free_list_lock.
6339         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6340         (detach_arena): Update comment.  free_list_lock is now needed.
6341         (_int_new_arena): Use free_list_lock around detach_arena call.
6342         Acquire arena lock after list_lock.  Add comment, including FIXME
6343         about incorrect synchronization.
6344         (get_free_list): Switch to free_list_lock.
6345         (reused_arena): Acquire free_list_lock around detach_arena call
6346         and attached threads counter update.  Add two FIXMEs about
6347         incorrect synchronization.
6348         (arena_thread_freeres): Switch to free_list_lock.
6349         * malloc/malloc.c (struct malloc_state): Update comments to
6350         mention free_list_lock.
6351
6352 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6353
6354         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6355         Remove functions.
6356         (sloww, sloww1): Accept argument to offset quadrant.
6357         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6358         quadrant.
6359         (__sin, __cos): Consolidate common code into new functions.
6360         (reduce_sincos_1, do_sincos_1): New functions.
6361         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6362
6363         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6364         code to new functions.
6365         (reduce_sincos_2, do_sincos_2): New functions.
6366         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6367
6368         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6369         common code for sincos.
6370         (__cos) [!IN_SINCOS]: Likewise.
6371         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6372         New function.
6373         (__sincos): Use it.
6374
6375 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6376
6377         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6378         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6379         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6380
6381 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6382
6383         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6384         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6385         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6386         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6387         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6388         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6389         index_Prefer_No_VZEROUPPER): New feature.
6390         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6391         Prefer_No_VZEROUPPER for Knights Landing.
6392
6393 015-12-18  Torvald Riegel  <triegel@redhat.com>
6394
6395         * math/atest-exp2.c (mp_exp_m1): Remove.
6396
6397 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6398
6399         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6400         syscalls.
6401         (__SYSCALL0): New macro.
6402         (__SYSCALL1): Likewise.
6403         (__SYSCALL2): Likewise.
6404         (__SYSCALL3): Likewise.
6405         (__SYSCALL4): Likewise.
6406         (__SYSCALL5): Likewise.
6407         (__SYSCALL6): Likewise.
6408         (__SYSCALL_CONCAT_X): Likewise.
6409         (__SYSCALL_CONCAT): Likewise.
6410         (__SYSCALL_DIST): Likewise.
6411         (__SYSCALL_CALL): Likewise.
6412
6413 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6414
6415         [BZ #19363]
6416         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6417
6418 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6419
6420         [BZ #19375]
6421         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6422         negative subnormals.
6423
6424 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6425
6426         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6427         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6428         (INTERNAL_SYSCALL_NCS): Use it.
6429         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6430
6431 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6432
6433         [BZ #19243]
6434         * malloc/arena.c (get_free_list): Remove assert and adjust
6435         reference count handling.  Add comment about reused_arena
6436         interaction.
6437         (reused_arena): Add comments abount get_free_list interaction.
6438         * malloc/tst-malloc-thread-exit.c: New file.
6439         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6440         (tst-malloc-thread-exit): Link against libpthread.
6441
6442 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6443
6444         [BZ #19367]
6445         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6446         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6447         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6448         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6449         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6450
6451 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6452
6453         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6454         Silvermont optimizations for Knights Landing.
6455
6456 2015-12-15  Andreas Schwab  <schwab@suse.de>
6457
6458         [BZ #17197]
6459         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6460         immediately after emitting SI.
6461         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6462         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6463         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6464         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6465         * iconvdata/bug-iconv10.c: New file.
6466         * iconvdata/Makefile (tests): Add bug-iconv10.
6467         ($(objpfx)bug-iconv10.out): New rule.
6468
6469 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6470
6471         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6472         aliasing violation.
6473
6474 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6475
6476         [BZ #18472]
6477         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6478         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6479         conditionals for them.
6480         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6481         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6482         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6483         sys/kdaemon.h.
6484         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6485         compat-only syscall, obsoleted in glibc 2.23.
6486         (create_module): Likewise.
6487         (get_kernel_syms): Likewise.
6488         (query_module): Likewise.
6489         (uselib): Likewise.
6490         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6491
6492 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6493
6494         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6495         <linux/version.h>.
6496         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6497         conditional code.
6498         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6499         and ioshift_name initialization.
6500
6501 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6502
6503         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6504         Fix indentation.
6505
6506 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6507
6508         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6509
6510 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6511
6512         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6513
6514 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6515             Jakub Wilk  <jwilk@debian.org>
6516
6517         [BZ #19347]
6518         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6519         to change the group of the device to the tty group.
6520
6521 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         Split large string section; add truncation advice
6524         * manual/examples/strncat.c: Remove.
6525         This example was misleading, as the code would have undefined
6526         behavior if "hello" was longer than SIZE.  Anyway, the manual
6527         shouldn't encourage strncpy+strncat for this sort of thing.
6528         * manual/string.texi (Copying Strings and Arrays): Split into
6529         three sections Copying Strings and Arrays, Concatenating Strings,
6530         and Truncating Strings, as this section was way too long.  All
6531         cross-referenced changed.  Add advice about string-truncation
6532         functions.  Remove misleading strncat example.
6533
6534 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6535
6536         * manual/nss.texi (NSS Modules Interface): Document
6537         NSS_STATUS_NOTFOUND and SUCCESS.
6538
6539 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6540
6541         [BZ 18568]
6542         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6543         201505L, for Unicode 8.
6544
6545 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6546
6547         * locale/C-translit.h: Regenerate.
6548
6549 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6550
6551         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6552         and U+0153.
6553
6554 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6555
6556         [BZ #19351]
6557         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6558         expanding log(1+z), compare z rather than its square with epsilon
6559         to determine when to avoid evaluating the expansion.
6560
6561         [BZ #19350]
6562         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6563         Increase overflow threshold.
6564
6565         [BZ #19349]
6566         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6567         when small.
6568
6569         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6570         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6571         New macro.
6572         [__LINUX_KERNEL_VERSION >= 0x040300]
6573         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6574         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6575         Likewise.
6576         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6577         Likewise.
6578         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6579         Likewise.
6580         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6581         Likewise.
6582         [__LINUX_KERNEL_VERSION >= 0x040300]
6583         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6584         [__LINUX_KERNEL_VERSION >= 0x040300]
6585         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6586         [__LINUX_KERNEL_VERSION >= 0x040300]
6587         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6588         [__LINUX_KERNEL_VERSION >= 0x040300]
6589         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6590         [__LINUX_KERNEL_VERSION >= 0x040300]
6591         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6592         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6593         Likewise.
6594         [__LINUX_KERNEL_VERSION >= 0x040300]
6595         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6596         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6597         Likewise.
6598         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6599         Likewise.
6600         [__LINUX_KERNEL_VERSION >= 0x040300]
6601         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6602         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6603         Likewise.
6604         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6605         Likewise.
6606         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6607         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6608         Likewise.
6609         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6610         Likewise.
6611         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6612         Likewise.
6613         [__LINUX_KERNEL_VERSION >= 0x040300]
6614         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6615         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6616         Likewise.
6617         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6618         Likewise.
6619         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6620         Likewise.
6621         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6622         Likewise.
6623         [__LINUX_KERNEL_VERSION >= 0x040300]
6624         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6625         [__LINUX_KERNEL_VERSION >= 0x040300]
6626         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6627         [__LINUX_KERNEL_VERSION >= 0x040300]
6628         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6629         [__LINUX_KERNEL_VERSION >= 0x040300]
6630         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6631         [__LINUX_KERNEL_VERSION >= 0x040300]
6632         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6633         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6634         Likewise.
6635         [__LINUX_KERNEL_VERSION >= 0x040300]
6636         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6637         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6638         Likewise.
6639         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6640         Likewise.
6641         [__LINUX_KERNEL_VERSION >= 0x040300]
6642         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6643         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6644         Likewise.
6645         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6646         Likewise.
6647         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6648         (__ASSUME_SOCKET_SYSCALL): Likewise.
6649         (__ASSUME_BIND_SYSCALL): Likewise.
6650         (__ASSUME_CONNECT_SYSCALL): Likewise.
6651         (__ASSUME_LISTEN_SYSCALL): Likewise.
6652         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6653         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6654         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6655         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6656         (__ASSUME_SEND_SYSCALL): Likewise.
6657         (__ASSUME_SENDTO_SYSCALL): Likewise.
6658         (__ASSUME_RECV_SYSCALL): Likewise.
6659         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6660         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6661         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6662         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6663         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6664         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6665         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6666         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6667         Likewise.
6668         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6669         Likewise.
6670         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6671         Likewise.
6672         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6673         Likewise.
6674         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6675         Likewise.
6676         [__LINUX_KERNEL_VERSION >= 0x020625]
6677         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6678         [__LINUX_KERNEL_VERSION >= 0x020625]
6679         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6680         [__LINUX_KERNEL_VERSION >= 0x020625]
6681         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6682         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6683         Likewise.
6684         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6685         Likewise.
6686         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6687         Likewise.
6688         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6689         Likewise.
6690         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6691         Likewise.
6692         [__LINUX_KERNEL_VERSION >= 0x020625]
6693         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6694         [__LINUX_KERNEL_VERSION >= 0x020625]
6695         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6696         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6697         Likewise.
6698         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6699         Likewise.
6700
6701 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6702
6703         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6704         record the current if the current ABI and CPU support the FP64
6705         extension.
6706         (has-modd-spreg): Define to record the current if the current ABI and
6707         CPU support 32-bit floating point values in odd FPU registers.
6708         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6709         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6710         $(has-modd-spreg) equals yes.
6711         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6712         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6713         $(has-modd-spreg) equal yes.
6714
6715 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6716
6717         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6718         basename.
6719
6720 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6721
6722         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6723         (bench-string): ... here.
6724         (bench): Add bench-string.
6725         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6726         to *-benchset to reflect what they are.
6727         (benchset): Adjust.
6728
6729         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6730         cos-inputs.
6731
6732 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6733
6734         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6735         __attribute__ ((__simd__)) for vector math function declarations.
6736
6737 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6738
6739         Fix typo in strncat, wcsncat manual entries
6740         * manual/string.texi (Copying and Concatenation): Fix typos in
6741         sample implementations of strncat and wcsncat, by having them use
6742         the old value of the destination length, not the new one.
6743
6744 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6745
6746         [BZ #16961]
6747         [BZ #16962]
6748         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6749         string on the stack for strtod.
6750         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6751         a string on the stack for strtof.
6752         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6753         constructing a string on the stack for strtold.
6754         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6755         __strtold_nan to GLIBC_PRIVATE.
6756         * math/test-nan-overflow.c: New file.
6757         * math/test-nan-payload.c: Likewise.
6758         * math/Makefile (tests): Add test-nan-overflow and
6759         test-nan-payload.
6760
6761 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6762
6763         Consistency about byte vs character in string.texi
6764         * manual/string.texi (String and Array Utilities):
6765         Distinguish more carefully among bytes, multibyte characters,
6766         and wide characters.  Use "byte" when talking about C 'char',
6767         to distinguish it more clearly from multibyte characters.
6768         Say "wide character" or "multibyte character" instead of
6769         "character", when a wide or multibyte character is intended.
6770         Similarly for "multibyte string" versus "string".
6771         Define these terms more carefully.
6772
6773 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6774
6775         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6776         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6777         Likewise.
6778         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6779         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6780         * sysdeps/sh/math_private.h: New file.
6781         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6782         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6783         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6784         long double function name.
6785         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6786         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6787         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6788         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6789         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6790         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6791         Remove __finitel, __isinfl, and __isnanl.
6792         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6793         Likewise.
6794         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6796         Remove __finitel.
6797         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6798         Likewise.
6799         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6800
6801 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6802
6803         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6804         installed libmvec_nonshared.a.
6805
6806 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6807
6808         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6809         (sysdep_routines): Likewise.
6810         (sysdep-rtld-routines): Likewise.
6811         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6812         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6813         * sysdeps/powerpc/Versions: Added new
6814         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6815         * sysdeps/powerpc/hwcapinfo.c: New file.
6816         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6817         and parse hwcap, hwcap2 and platform number information.
6818         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6819         to store HWCAP+HWCAP2 and platform number.
6820         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6821         for HWCAP+HWCAP2 and platform number in the TCB.
6822         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6823         the HWCAP, HWCAP2 and platform number in the TCB.
6824         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6825         (TLS_INIT_TP): Included calls to add the hwcap and
6826         at_platform values in the TCB in TP initialization.
6827         (TLS_DEFINE_INIT_TP): Likewise.
6828         (THREAD_GET_HWCAP): New macro.
6829         (THREAD_SET_HWCAP): Likewise.
6830         (THREAD_GET_AT_PLATFORM): Likewise.
6831         (THREAD_SET_AT_PLATFORM): Likewise.
6832         * sysdeps/powerpc/powerpc32/dl-machine.h:
6833         (dl_platform_init): New function that calls
6834         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6835         powerpc32.
6836         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6837         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6838         this functionality, static linking case.
6839         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6840         linking case.
6841         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6842         __parse_hwcap_and_convert_at_platform for the static linking case.
6843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6844         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6845         ABI list for GLIBC 2.23.
6846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6847         Likewise.
6848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6849         Likewise.
6850
6851 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6852
6853         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6854         * configure: Regenerate.
6855         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6856         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6857
6858 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6859
6860         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6861         * iconvdata/ibm933.c: Likewise.
6862         * iconvdata/ibm935.c: Likewise.
6863         * iconvdata/ibm937.c: Likewise.
6864         * iconvdata/ibm939.c: Likewise.
6865
6866 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6867
6868         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6869         pthread_join.
6870         * nptl/tst-cancel21.c (tf): Likewise.
6871
6872 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6873
6874         [BZ #19313]
6875         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6876         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6877         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6878         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6879         Likewise.
6880         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6881         Likewise.
6882         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6883         Likewise.
6884         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6885         Likewise.
6886         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6887         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6888         unsigned long int with __CPU_MASK_TYPE.
6889
6890 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6891
6892         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6893
6894 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6895
6896         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6897         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6898         t512.x.
6899         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6900
6901 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6902
6903         [BZ #19214]
6904         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6905         argument to return extended model.  Update family and model
6906         with extended family and model when family == 0x0f.
6907         (init_cpu_features): Updated.
6908
6909 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6910
6911         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6912         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6913
6914         * sysdeps/mach/hurd/mmap64.c: New file.
6915
6916 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6917
6918         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6919         rights for its main user thread in NEWTASK.
6920
6921 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6922
6923         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6924         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6925
6926 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6927
6928         [BZ #14259]
6929         * Makeconfig: Rename localedir to complocaledir.
6930         Rename inst_localedir to inst_complocaledir.
6931         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6932         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6933         * configure.ac: Use libc_cv_complocaledir.
6934         * configure: Regenerate.
6935         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6936         -DCOMPLOCALEDIR.
6937         * locale/findlocale.c: Use COMPLOCALEDIR.
6938         * locale/loadarchive.c: Likewise.
6939         * locale/programs/locale.c: Likewise.
6940         * locale/programs/localedef.c: Likewise.
6941         * locale/programs/locarchive.c: Likewise.
6942         * localedata/Makefile: Use inst_complocaledir.
6943         * sysdeps/gnu/configure: Regenerate.
6944         * sysdeps/hppa/configure: Regenerate.
6945         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6946         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6948         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6949         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6950         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6951         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6952
6953 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6954
6955         [BZ #19058]
6956         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6957         AS_NEEDED.
6958         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6959         workaround.
6960         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6961         libmvec-static-only-routines): Added new file.
6962         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6963
6964 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6965
6966         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6967         of interrupted RPC instead of restoring it.
6968
6969         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6970         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6971         libc_hidden_def.
6972         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6973         into initialized data instead of common. Define rtld_hidden_data_def.
6974         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6975         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6976         libc_hidden_def.
6977         (if_freenameindex): Add libc_hidden_weak.
6978         (if_nameindex): Add libc_hidden_weak.
6979         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6980         __open64.
6981         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6982         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6983         * sysdeps/mach/nanosleep.c: Include <time.h>
6984         (__nanosleep): Rename to __libc_nanosleep.
6985         (__nanosleep): Add weak_alias.
6986         (nanosleep): Update alias.
6987
6988 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6989
6990         * stdlib/strtod_nan.c: New file.
6991         * stdlib/strtod_nan_double.h: Likewise.
6992         * stdlib/strtod_nan_float.h: Likewise.
6993         * stdlib/strtod_nan_main.c: Likewise.
6994         * stdlib/strtod_nan_narrow.h: Likewise.
6995         * stdlib/strtod_nan_wide.h: Likewise.
6996         * stdlib/strtof_nan.c: Likewise.
6997         * stdlib/strtold_nan.c: Likewise.
6998         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6999         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
7000         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
7001         * wcsmbs/wcstod_nan.c: Likewise.
7002         * wcsmbs/wcstof_nan.c: Likewise.
7003         * wcsmbs/wcstold_nan.c: Likewise.
7004         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
7005         strtold_nan.
7006         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
7007         wcstof_nan.
7008         * include/stdlib.h (__strtof_nan): Declare and use
7009         libc_hidden_proto.
7010         (__strtod_nan): Likewise.
7011         (__strtold_nan): Likewise.
7012         (__wcstof_nan): Likewise.
7013         (__wcstod_nan): Likewise.
7014         (__wcstold_nan): Likewise.
7015         * include/wchar.h (____wcstoull_l_internal): Declare.
7016         * stdlib/strtod_l.c: Do not include <ieee754.h>.
7017         (____strtoull_l_internal): Remove declaration.
7018         (STRTOF_NAN): Define macro.
7019         (SET_MANTISSA): Remove macro.
7020         (STRTOULL): Likewise.
7021         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
7022         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
7023         (STRTOF_NAN): Define macro.
7024         (SET_MANTISSA): Remove macro.
7025         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
7026         (SET_MANTISSA): Remove macro.
7027         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
7028         macro.
7029         (SET_MANTISSA): Remove macro.
7030         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
7031         macro.
7032         (SET_MANTISSA): Remove macro.
7033         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
7034         (SET_MANTISSA): Remove macro.
7035         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
7036         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
7037         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
7038
7039         [BZ #19266]
7040         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
7041         upper case and lower case letters inside NAN(), not using TOLOWER.
7042         * stdlib/tst-strtod-nan-locale-main.c: New file.
7043         * stdlib/tst-strtod-nan-locale.c: Likewise.
7044         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
7045         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
7046         Depend on $(gen-locales).
7047         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
7048         * wcsmbs/tst-wcstod-nan-locale.c: New file.
7049         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
7050         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
7051         Depend on $(gen-locales).
7052         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
7053
7054 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
7055
7056         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
7057
7058         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
7059         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
7060         __finitel, __isinfl, and __isnanl.
7061         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7062         Likewise.
7063         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7064         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
7065         __finitel.
7066         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7067         Likewise.
7068         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7069
7070 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
7071
7072         * malloc/memusage.c (me): Remove redundant getenv call.
7073
7074 2015-10-24  Florian Weimer  <fweimer@redhat.com>
7075
7076         [BZ #19143]
7077         [BZ #19164]
7078         * nptl/check-cpuset.h: Remove.
7079         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
7080         Remove CPU set size check.
7081         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
7082         Likewise.
7083         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
7084         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7085         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
7086         (__pthread_setaffinity_new): Remove CPU set size check.
7087         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7088         (__kernel_cpumask_size): Remove.
7089         (__sched_setaffinity_new): Remove CPU set size check.
7090         * manual/threads.texi (Default Thread Attributes): Remove stale
7091         reference to check_cpuset_attr, determine_cpumask_size in comment.
7092         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
7093         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
7094         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
7095         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
7096         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
7097         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
7098         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
7099         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
7100         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
7101         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
7102         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
7103         skeleton test file.
7104         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
7105         tst-affinity-pid.
7106
7107 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7108
7109         * scripts/update-abilist.sh: New file.
7110         * Makefile (+subdir_targets): Add subdir_update-all-abi.
7111         * Makerules (update-all-abi-%, update-all-abi)
7112         (subdir_update-all-abi): New targets.
7113         * elf/Makefile (update-all-abi): New target.
7114
7115 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7116
7117         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
7118         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
7119         (__libc_lock_define_initialized): Use it.
7120         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
7121         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
7122         * malloc/malloc.c (main_arena): Likewise.
7123         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7124         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7125
7126 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7127
7128         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7129         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7130         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7131         (PTRACE_O_MASK): Update value.
7132         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7133         New value in enum __ptrace_setoptions.
7134         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7135         (PTRACE_O_MASK): Update value.
7136         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7137         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7138         (PTRACE_O_MASK): Update value.
7139         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7140         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7141         (PTRACE_O_MASK): Update value.
7142         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7143         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7144         (PTRACE_O_MASK): Update value.
7145         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7146         New value in enum __ptrace_setoptions.
7147         (PTRACE_O_MASK): Update value.
7148         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7149         New value in enum __ptrace_setoptions.
7150         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7151         (PTRACE_O_MASK): Update value.
7152
7153         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7154         New macro.
7155         (PACKET_AUXDATA): Likewise.
7156         (PACKET_ORIGDEV): Likewise.
7157         (PACKET_VERSION): Likewise.
7158         (PACKET_HDRLEN): Likewise.
7159         (PACKET_RESERVE): Likewise.
7160         (PACKET_TX_RING): Likewise.
7161         (PACKET_LOSS): Likewise.
7162         (PACKET_VNET_HDR): Likewise.
7163         (PACKET_TX_TIMESTAMP): Likewise.
7164         (PACKET_TIMESTAMP): Likewise.
7165         (PACKET_FANOUT): Likewise.
7166         (PACKET_TX_HAS_OFF): Likewise.
7167         (PACKET_QDISC_BYPASS): Likewise.
7168         (PACKET_ROLLOVER_STATS): Likewise.
7169         (PACKET_FANOUT_DATA): Likewise.
7170         (PACKET_MR_UNICAST): Likewise.
7171
7172         [BZ #19242]
7173         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7174         (TOUPPER): Likewise.
7175         * stdlib/tst-strtol-locale-main.c: New file.
7176         * stdlib/tst-strtol-locale.c: Likewise.
7177         * stdlib/Makefile (tests): Add tst-strtol-locale.
7178         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7179         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7180         Depend on $(gen-locales).
7181         * wcsmbs/tst-wcstol-locale.c: New file.
7182         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7183         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7184         tr_TR.ISO-8859-9.
7185         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7186         Depend on $(gen-locales).
7187
7188 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7189
7190         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7191         __glibc_likely instead of __builtin_expect.  After falling back to
7192         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7193         system interface to register the code pages as occupied.
7194
7195 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7196
7197         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7198         [!ARM_MATH_PRIVATE_H].
7199         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7200         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7201         [!HPPA_MATH_PRIVATE_H].
7202         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7203         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7204         to [!I386_MATH_PRIVATE_H].
7205         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7206         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7207         Change guard to [!M68K_MATH_PRIVATE_H].
7208         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7209         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7210         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7211         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7212         macro.
7213         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7214         [!MIPS_MATH_PRIVATE_H].
7215         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7216         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7217         [!NIO2_MATH_PRIVATE_H].
7218         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7219         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7220         [!TILE_MATH_PRIVATE_H].
7221         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7222
7223         [BZ #15421]
7224         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7225         initialize with 0 and define as weak alias of __signgam.
7226         * include/math.h [!_ISOMAC] (__signgam): Declare.
7227         * math/Makefile (libm-calls): Add w_lgamma_compat.
7228         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7229         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7230         test-signgam-ullong-init.
7231         (tests-static): Add test-signgam-uchar-static,
7232         test-signgam-uchar-init-static, test-signgam-uint-static,
7233         test-signgam-uint-init-static, test-signgam-ullong-static and
7234         test-signgam-ullong-init-static.
7235         (CFLAGS-test-signgam-uchar.c): New variable.
7236         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7237         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7238         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7239         (CFLAGS-test-signgam-uint.c): Likewise.
7240         (CFLAGS-test-signgam-uint-init.c): Likewise.
7241         (CFLAGS-test-signgam-uint-static.c): Likewise.
7242         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7243         (CFLAGS-test-signgam-ullong.c): Likewise.
7244         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7245         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7246         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7247         * math/Versions (libm): Add GLIBC_2.23.
7248         * math/lgamma-compat.h: New file.
7249         * math/test-signgam-main.c: Likewise.
7250         * math/test-signgam-uchar-init-static.c: Likewise.
7251         * math/test-signgam-uchar-init.c: Likewise.
7252         * math/test-signgam-uchar-static.c: Likewise.
7253         * math/test-signgam-uchar.c: Likewise.
7254         * math/test-signgam-uint-init-static.c: Likewise.
7255         * math/test-signgam-uint-init.c: Likewise.
7256         * math/test-signgam-uint-static.c: Likewise.
7257         * math/test-signgam-uint.c: Likewise.
7258         * math/test-signgam-ullong-init-static.c: Likewise.
7259         * math/test-signgam-ullong-init.c: Likewise.
7260         * math/test-signgam-ullong-static.c: Likewise.
7261         * math/test-signgam-ullong.c: Likewise.
7262         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7263         wrapper of w_lgamma_main.c.
7264         * math/w_lgamma_compat.c: New file.
7265         * math/w_lgamma_compatf.c: Likewise.
7266         * math/w_lgamma_compatl.c: Likewise.
7267         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7268         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7269         defining compatibility symbols.
7270         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7271         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7272         wrapper of w_lgammaf_main.c.
7273         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7274         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7275         defining compatibility symbols.
7276         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7277         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7278         wrapper of w_lgammal_main.c.
7279         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7280         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7281         defining compatibility symbols.
7282         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7283         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7284         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7285         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7286         <lgamma-compat.h>.
7287         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7288         (__ieee754_gamma): Define as alias.
7289         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7290         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7291         <lgamma-compat.h>.
7292         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7293         (__ieee754_gammaf): Define as alias.
7294         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7295         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7296         <lgamma-compat.h>.
7297         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7298         (__ieee754_gammal): Define as alias.
7299         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7300         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7301         <math/w_lgamma_compat.c>.
7302         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7303         Define as alias of __lgamma_compat and use in defining lgammal.
7304         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7305         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7306         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7307         (USE_AS_COMPAT): New macro.
7308         (LGAMMA_OLD_VER): Undefine and redefine.
7309         (lgammal): Do not define here.
7310         (gammal): Only define here if [GAMMA_ALIAS].
7311         * conform/linknamespace.pl (@whitelist): Remove signgam.
7312         * sysdeps/nacl/libm.abilist: Update.
7313         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7314         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7315         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7316         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7317         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7318         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7319         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7320         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7321         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7322         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7323         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7324         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7326         Likewise.
7327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7328         Likewise.
7329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7330         Likewise.
7331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7332         Likewise.
7333         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7334         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7335         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7336         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7337         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7338         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7339         Likewise.
7340         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7341         Likewise.
7342         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7343         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7344         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7345
7346 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7347
7348         [BZ #16364]
7349         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7350         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7351
7352 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7353
7354         * sysdeps/s390/fpu/bits/mathinline.h:
7355         Use __asm__ [__volatile__] instead of asm [volatile].
7356         * sysdeps/s390/abort-instr.h: Likewise.
7357         * sysdeps/s390/atomic-machine.h: Likewise.
7358         * sysdeps/s390/bits/string.h: Likewise.
7359         * sysdeps/s390/dl-tls.h: Likewise.
7360         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7361         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7362         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7363         * sysdeps/s390/fpu/fesetround.c: Likewise.
7364         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7365         * sysdeps/s390/fpu/s_fma.c: Likewise.
7366         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7367         * sysdeps/s390/memusage.h: Likewise.
7368         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7369         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7370         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7371         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7372         * sysdeps/s390/nptl/tls.h: Likewise.
7373         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7374         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7375         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7376         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7377         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7378         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7379         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7380         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7381         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7382         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7383         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7384         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7385         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7386         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7387         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7388         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7389         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7390         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7391         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7392         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7393         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7394         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7395         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7396
7397 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7398             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7399
7400         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7401         Add lwarx hint, and use macro for acquire instruction.
7402         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7403         Likewise.
7404         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7405         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7406         update to use new atomic macros.
7407
7408 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7409
7410         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7411         (__lll_trylock_elision): Fix setting of adapt_count.
7412         * sysdeps/unix/sysv/linux/powerpc/htm.h
7413         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7414         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7415         (_ABORT_SYSCALL): Renumber, and clarify definition.
7416         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7417
7418 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7419
7420         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7421         after system headers to prevent MIN/MAX redefinition.  Define
7422         HAVE_ALLOCA to preserve builtin alloca usage.
7423
7424 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7425
7426         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7427         static and don't set or restore rounding.
7428         (__cos)[IN_SINCOS]: Likewise.
7429         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7430         (__sincos): Set and restore rounding mode.  Remove check for infinite
7431         or NaN input.
7432
7433         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7434
7435         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7436         as used.
7437
7438 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7439
7440         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7441
7442 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7443
7444         * config.make.in (have-glob-dat-reloc): New.
7445         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7446         target supports GLOB_DAT relocaton. AC_SUBST.
7447         * configure: Regenerated.
7448         * elf/Makefile (tests): Add tst-prelink.
7449         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7450         (tst-prelink-ENV): New.
7451         ($(objpfx)tst-prelink-conflict.out): Likewise.
7452         ($(objpfx)tst-prelink-cmp.out): Likewise.
7453         * sysdeps/x86/tst-prelink.c: Moved to ...
7454         * elf/tst-prelink.c: Here.
7455         * sysdeps/x86/tst-prelink.exp: Moved to ...
7456         * elf/tst-prelink.exp: Here.
7457         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7458         (tst-prelink-ENV): Removed.
7459         ($(objpfx)tst-prelink-conflict.out): Likewise.
7460         ($(objpfx)tst-prelink-cmp.out): Likewise.
7461         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7462
7463 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7464
7465         [BZ #14551]
7466         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7467         (__mpn_construct_long_double): If high part overflows to infinity,
7468         set errno and recompute overflowed result of the correct sign.
7469         * sysdeps/ieee754/ldbl-128ibm/Makefile
7470         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7471         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7472         $(libm).
7473         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7474
7475 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7476
7477         [BZ #15479]
7478         [BZ #19238]
7479         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7480         floating-point state after first operation on input.  Restore full
7481         state rather than just rounding mode.
7482         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7483         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7484         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7485
7486         [BZ #19235]
7487         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7488         add 0.5 to integer arguments.
7489         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7490         Likewise.
7491         (.LC2): New object.
7492
7493 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7494
7495         * scripts/pylintrc (reports): Set to no.
7496
7497 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7498
7499         * elf/dl-load.c (open_verify): Take new argument FD.
7500         Skip __open call if passed FD is not -1.
7501         (_dl_map_object, open_path): Update callers.
7502         * elf/dl-sysdep-open.h: New file.
7503         * elf/dl-load.c: Include it.
7504         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7505         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7506         * sysdeps/nacl/dl-sysdep-open.h: New file.
7507         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7508         from libc to rtld.
7509
7510 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7511
7512         [BZ #19228]
7513         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7514         and restore full floating-point state.
7515         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7516         Likewise.
7517         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7518         Likewise.
7519         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7520         Likewise.
7521         * math/test-nearbyint-except-2.c: New file.
7522         * math/Makefile (tests): Add test-nearbyint-except-2.
7523
7524 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7525
7526         [BZ #19178]
7527         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7528         (tst-prelink-ENV): New.
7529         ($(objpfx)tst-prelink-conflict.out): Likewise.
7530         ($(objpfx)tst-prelink-cmp.out): Likewise.
7531         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7532         * sysdeps/x86/tst-prelink.c: New file.
7533         * sysdeps/x86/tst-prelink.exp: Likewise.
7534
7535 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7536
7537         * math/auto-libm-test-in: Add another test of pow.
7538         * math/auto-libm-test-out: Regenerated.
7539         * math/libm-test.inc (pow_test_data): Add another test.
7540
7541 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7542
7543         [BZ #19219]
7544         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7545         weak_alias to nearbyintl.
7546
7547 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7548
7549         * sysdeps/aarch64/bits/string.h: New file.
7550         (_STRING_ARCH_unaligned): Define.
7551
7552 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7553
7554         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7555         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7556         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7557         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7559
7560 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7561
7562         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7563         for original name of the DSO.  Add it to the name list of the DSO
7564         if it is actually given.
7565         (_dl_map_object): Keep track of whether an audit module rewrote
7566         the file name.  If yes, pass the original name to
7567         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7568         debugging is enabled, log the change of the file name.
7569         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7570         _dl_map_object_from_fd.
7571         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7572         * elf/tst-audit11.c: New file
7573         * elf/tst-auditmod11.c: New file.
7574         * elf/tst-audit11mod1.c: New file.
7575         * elf/tst-audit11mod2.c: New file.
7576         * elf/tst-audit11mod2.map: New file.
7577         * elf/tst-audit12.c: New file
7578         * elf/tst-auditmod12.c: New file.
7579         * elf/tst-audit12mod1.c: New file.
7580         * elf/tst-audit12mod2.c: New file.
7581         * elf/tst-audit12mod2.map: New file.
7582         * elf/tst-audit12mod3.c: New file.
7583
7584 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7585
7586         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7587         Don't create weak aliases,
7588         because versioned symbols are created later.
7589         * sysdeps/s390/s390-32/setjmp.S
7590         (setjmp, _setjmp): Remove weak and rename to an unique name
7591         in SHARED case due to existing versioned symbols.
7592         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7593         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7594         (getcontext): Create weak alias only in non SHARED case.
7595         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7596
7597 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7598
7599         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7600         (__ASSUME_*_SYSCALL) Define new macros.
7601         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7602         Remove socketcall syscalls.
7603         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7604         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7605         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7606         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7607         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7608         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7609
7610 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7611
7612         [BZ #12926]
7613         Terminate process on invalid netlink response.
7614         * sysdeps/unix/sysv/linux/netlinkaccess.h
7615         (__netlink_assert_response): Declare.
7616         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7617         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7618         (sysdep_routines): Add netlink_assert_response.
7619         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7620         __netlink_assert_response.
7621         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7622         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7623         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7624         __netlink_assert_response.
7625
7626 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7627
7628         [BZ #19178]
7629         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7630         (RTYPE_CLASS_PLT): Likewise.
7631         (RTYPE_CLASS_COPY): Likewise.
7632         (RTYPE_CLASS_TLS): Likewise.
7633         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7634         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7635         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7636         DL_DEBUG_PRELINK.
7637
7638 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7639
7640         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7641         calls with argument -0.5.
7642         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7643
7644         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7645         (libc_cv_z_nodlopen): Likewise.
7646         (libc_cv_z_initfirst): Likewise.
7647         * configure: Regenerated.
7648
7649 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7650
7651         Simplify abilist format to be line-based.
7652         * scripts/abilist.awk: Collect descriptors in the descs variable.
7653         (emit): Write descs variable and sort it
7654         externally, with sort.
7655         * sysdeps/**/*.abilist: Convert to new format.
7656
7657 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7658
7659         [BZ #11460]
7660         * io/Makefile (routines): Add fts64.
7661         (tests): Add tst-fts and tst-fts-lfs.
7662         (CFLAGS-fts64.c): New.
7663         * io/Versions (GLIBC_2.23): New.
7664         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7665         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7666         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7667         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7668         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7669         (FTSENT64): Likewise.
7670         (fts64_children): Likewise.
7671         (fts64_close): Likewise.
7672         (fts64_open): Likewise.
7673         (fts64_read): Likewise.
7674         (fts64_set): Likewise.
7675         * io/fts64.c: New file.
7676         * io/tst-fts.c: New test.
7677         * io/tst-fts-lfs.c: Likewise.
7678         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7679         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7680         fts64_set.
7681         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7682         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7683         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7684         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7685         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7686         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7687         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7688         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7689         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7690         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7691         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7692         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7693         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7695         Likewise.
7696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7697         Likewise.
7698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7700         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7701         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7702         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7703         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7704         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7706         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7707         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7708         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7709         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7710         * sysdeps/wordsize-64/fts.c: New file.
7711         * sysdeps/wordsize-64/fts64.c: Likewise.
7712         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7713         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7714         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7715         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7716
7717 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7718
7719         * math/libm-test.inc (NON_FINITE): New macro.
7720         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7721         * math/gen-libm-test.pl (show_exceptions): Add argument
7722         $non_finite.
7723         (parse_args): Update call to show_exceptions.
7724         * math/test-math-finite.h: New file.
7725         * math/test-math-no-finite.h: Likewise.
7726         * math/test-double-finite.c: Likewise.
7727         * math/test-float-finite.c: Likewise.
7728         * math/test-ldouble-finite.c: Likewise.
7729         * math/test-double.c: Include "test-math-no-finite.h".
7730         * math/test-float.c: Include "test-math-no-finite.h".
7731         * math/test-ldouble.c: Include "test-math-no-finite.h".
7732         * math/test-math-inline.h (TEST_FINITE): New macro.
7733         * math/test-math-vector.h (TEST_FINITE): Likewise.
7734         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7735         (libm-tests): Add test-float-finite and test-double-finite.
7736         ($(objpfx)test-float-finite.o): New dependency on
7737         $(objpfx)libm-test.stmp.
7738         ($(objpfx)test-double-finite.o): Likewise.
7739         ($(objpfx)test-ldouble-finite.o): Likewise.
7740         (libm-test-no-inline-cflags): New variable.
7741         (libm-test-finite-cflags): Likewise.
7742         (CFLAGS-test-float-finite.c): Likewise.
7743         (CFLAGS-test-double-finite.c): Likewise.
7744         (CFLAGS-test-ldouble-finite.c): Likewise.
7745         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7746         (CFLAGS-test-double.c): Likewise.
7747         (CFLAGS-test-ldouble.c): Likewise.
7748
7749 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7750
7751         * io/fcntl.c (__fcntl): Add ... to prototype.
7752         * misc/ioctl.c (__ioctl): Likewise.
7753         * misc/syscall.c (syscall): Likewise.
7754
7755 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7756
7757         * scripts/list-fixed-bugs.py: New file.
7758
7759         [BZ #19213]
7760         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7761         returned for argument 1.
7762         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7763         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7764         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7765         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7766         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7767         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7768
7769         [BZ #19211]
7770         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7771         __USE_XOPEN], not if [!__USE_ISOC99].
7772         (lgammaf): Likewise.
7773         (lgammal): Likewise.
7774         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7775         (gammaf): Likewise.
7776         (gammal): Likewise.
7777         * math/test-signgam-finite-c11.c: New file.
7778         * math/test-signgam-finite-c99.c: Likewise.
7779         * math/test-signgam-finite.c: Likewise.
7780         * math/Makefile (tests): Add test-signgam-finite,
7781         test-signgam-finite-c99 and test-signgam-finite-c11.
7782         (CFLAGS-test-signgam-finite.c): New variable.
7783         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7784         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7785
7786         [BZ #19212]
7787         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7788         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7789         500].
7790         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7791         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7792         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7793         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7794         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7795         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7796         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7797         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7798         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7799         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7800
7801         [BZ #19209]
7802         * math/bits/math-finite.h (ldexp): Remove declaration.
7803         (ldexpf): Likewise.
7804         (ldexpl): Likewise.
7805
7806         [BZ #19205]
7807         * math/bits/math-finite.h (acosf): Condition declaration on
7808         [__USE_ISOC99].
7809         (acosl): Likewise.
7810         (acoshf): Likewise.
7811         (acoshl): Likewise.
7812         (asinf): Likewise.
7813         (asinl): Likewise.
7814         (atan2f): Likewise.
7815         (atan2l): Likewise.
7816         (atanhf): Likewise.
7817         (atanhl): Likewise.
7818         (coshf): Likewise.
7819         (coshl): Likewise.
7820         (expf): Likewise.
7821         (expl): Likewise.
7822         (fmodf): Likewise.
7823         (fmodl): Likewise.
7824         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7825         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7826         (j0l): Likewise.
7827         (y0f): Likewise.
7828         (y0l): Likewise.
7829         (j1f): Likewise.
7830         (j1l): Likewise.
7831         (y1f): Likewise.
7832         (y1l): Likewise.
7833         (jnf): Likewise.
7834         (jnl): Likewise.
7835         (ynf): Likewise.
7836         (ynl): Likewise.
7837         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7838         (lgammal_r): Likewise.
7839         (__lgamma_r_finite): New declaration.
7840         (__lgammaf_r_finite): Likewise.
7841         (__lgammal_r_finite): Likewise.
7842         (lgamma): Use __lgamma_r_finite.
7843         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7844         __lgammaf_r_finite.
7845         (lgammal): Condition definition on [__USE_ISOC99].  Use
7846         __lgammal_r_finite.
7847         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7848         __lgamma_r_finite.
7849         (gammaf): Condition definition on [__USE_ISOC99].  Use
7850         __lgammaf_r_finite.
7851         (gammal): Condition definition on [__USE_ISOC99].  Use
7852         __lgammal_r_finite.
7853         (logf): Condition declaration on [__USE_ISOC99].
7854         (logl): Likewise.
7855         (log10f): Likewise.
7856         (log10l): Likewise.
7857         (ldexpf): Likewise.
7858         (ldexpl): Likewise.
7859         (powf): Likewise.
7860         (powl): Likewise.
7861         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7862         __USE_ISOC99].
7863         (remainderf): Condition declaration on [__USE_ISOC99].
7864         (remainderl): Likewise.
7865         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7866         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7867         (scalbl): Likewise.
7868         (sinhf): Condition declaration on [__USE_ISOC99].
7869         (sinhl): Likewise.
7870         (sqrtf): Likewise.
7871         (sqrtl): Likewise.
7872
7873 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7874
7875         * sysdeps/arm/atomic-machine.h
7876         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7877         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7878         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7879         Remove conditional code.
7880         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7881         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7882         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7883         Change conditional to [__ASSEMBLER__].
7884         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7885         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7886         [!__ASSEMBLER__].
7887         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7888         code.
7889         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7890         conditional macro definitions.
7891         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7892         (__arch_compare_and_exchange_val_16_acq): Likewise.
7893         (__arch_compare_and_exchange_val_32_acq): Likewise.
7894         (atomic_exchange_and_add): Likewise.
7895         (atomic_add): Likewise.
7896         (atomic_add_negative): Likewise.
7897         (atomic_add_zero): Likewise.
7898         (atomic_bit_set): Likewise.
7899         (atomic_bit_test_set): Likewise.
7900         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7901         code unconditional.
7902         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7903
7904         * math/test-math-errno.h: New file.
7905         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7906         empty.
7907         (TEST_ERRNO): New macro.
7908         (TEST_EXCEPTIONS): Likewise.
7909         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7910         (TEST_EXCEPTIONS): Likewise.
7911         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7912         * math/test-double.c: Include "test-math-errno.h".
7913         * math/test-float.c: Likewise.
7914         * math/test-ldouble.c: Likewise.
7915         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7916         code unconditional.
7917         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7918         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7919         unconditional.
7920         (test_errno): Only run code if TEST_ERRNO.
7921         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7922
7923 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7924
7925         * nptl/tst-once5.cc: Remove attribution.
7926
7927 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7928
7929         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7930         sqrt, tan, tanh, y0, y1 and yn.
7931         * math/auto-libm-test-out: Regenerated.
7932         * math/libm-test.inc (scalb_test_data): Add more tests.
7933         (scalbn_test_data): Likewise.
7934         (scalbln_test_data): Likewise.
7935         (signbit_test_data): Likewise.
7936         (sin_test_data): Likewise.
7937         (sincos_test_data): Likewise.
7938         (sinh_test_data): Likewise.
7939         (sqrt_test_data): Likewise.
7940         (tan_test_data): Likewise.
7941         (tanh_test_data): Likewise.
7942         (tgamma_test_data): Likewise.
7943         (y0_test_data): Likewise.
7944         (y1_test_data): Likewise.
7945         (yn_test_data): Likewise.
7946         (significand_test_data): Likewise.
7947         * sysdeps/i386/fpu/libm-test-ulps: Update.
7948
7949 2015-11-03  David Kastrup  <dak@gnu.org>
7950
7951         [BZ #18604]
7952         * assert/assert.h (assert): Don't macro-expand failed assertion
7953         expression in error message.
7954         * malloc/malloc.c (assert): Likewise.
7955
7956 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7957
7958         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7959         test.
7960         * configure: Regenerated.
7961
7962 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7963
7964         * math/libm-test.inc (modf_test_data): Add more tests.
7965         (nearbyint_test_data): Likewise.
7966         (nextafter_test_data): Likewise.
7967         (nexttoward_test_data): Likewise.
7968         (pow_test_data): Likewise.
7969         (remainder_test_data): Likewise.
7970         (remquo_test_data): Likewise.
7971         (rint_test_data): Likewise.
7972
7973         [BZ #19201]
7974         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7975         Check for zero remainder in case of large exponents and ensure
7976         correct sign of result in that case.
7977         * math/libm-test.inc (remainder_test_data): Add more tests.
7978
7979         [BZ #6799]
7980         * math/s_nextafter.c: Include <errno.h>.
7981         (__nextafter): Set errno on overflow and underflow.
7982         * math/s_nexttowardf.c: Include <errno.h>.
7983         (__nexttowardf): Set errno on overflow and underflow.
7984         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7985         (__nextafterl): Set errno on overflow and underflow.
7986         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7987         (__nexttoward): Set errno on overflow and underflow.
7988         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7989         (__nexttowardf): Set errno on overflow and underflow.
7990         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7991         (__nextafterf): Set errno on overflow and underflow.
7992         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7993         (__nextafterl): Set errno on overflow and underflow.
7994         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7995         (__nexttoward): Set errno on overflow and underflow.
7996         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7997         (__nexttowardf): Set errno on overflow and underflow.
7998         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7999         (__nextafterl): Set errno on overflow and underflow.
8000         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
8001         (__nexttoward): Set errno on overflow and underflow.
8002         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
8003         (__nexttowardf): Set errno on overflow and underflow.
8004         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
8005         (__nexttoward): Set errno on overflow and underflow.
8006         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
8007         (__nexttowardf): Set errno on overflow and underflow.
8008         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
8009         (__nldbl_nexttowardf): Set errno on overflow and underflow.
8010         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
8011         (__nextafterl): Set errno on overflow and underflow.
8012         * math/libm-test.inc (nextafter_test_data): Do not allow errno
8013         setting to be missing on overflow.  Add more tests.
8014         (nexttoward_test_data): Likewise.
8015
8016         * configure.ac (libc_cv_initfini_array): Remove configure test.
8017         * configure: Regenerated.
8018
8019 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
8020
8021         [BZ #19189]
8022         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
8023         non-finite argument handle arguments with negative sign.
8024
8025         * math/libm-test.inc (j0_test_data): Do not test sign of zero
8026         result from infinite argument.
8027         (j1_test_data): Likewise.
8028         (jn_test_data): Likewise.
8029         (y0_test_data): Likewise.
8030         (y1_test_data): Likewise.
8031         (yn_test_data): Likewise.
8032
8033         [BZ #16171]
8034         * math/w_remainder.c (drem): Define as weak alias of __remainder.
8035         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
8036         * math/w_remainderf.c (dremf): Define as weak alias of
8037         __remainderf.
8038         * math/w_remainderl.c (dreml): Define as weak alias of
8039         __remainderl.
8040         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
8041         __remainder.
8042         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
8043         __remainderf.
8044         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
8045         __remainderl.
8046         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
8047         weak alias of remainderl.
8048         * sysdeps/ieee754/ldbl-opt/w_remainder.c
8049         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
8050         alias of __remainder.
8051         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
8052         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
8053         strong alias of __remainderl.
8054         (dreml): Use long_double_symbol.
8055         * math/Makefile (libm-calls): Remove w_drem.
8056         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
8057         (CFLAGS-nldbl-drem.c): Remove variable.
8058         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
8059         * math/w_drem.c: Remove file.
8060         * math/w_dremf.c: Likewise.
8061         * math/w_dreml.c: Likewise.
8062         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
8063         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
8064         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
8065
8066         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
8067         * sysdeps/i386/configure: Regenerated.
8068         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
8069         * sysdeps/x86_64/configure: Regenerated.
8070
8071         * configure.ac (libc_cv_asm_protected_directive): Remove configure
8072         test.
8073         (libc_cv_visibility_attribute): Likewise.
8074         (libc_cv_protected_data): Test unconditionally.
8075         (libc_cv_broken_visibility_attribute): Remove configure test.
8076         (libc_cv_have_sdata_section): Test unconditionally.
8077         * configure: Regenerated.
8078
8079         * include/libc-internal.h (libc_max_align_t): Remove typedef.
8080         * include/scratch_buffer.h: Include <stddef.h> instead of
8081         <libc-internal.h>.
8082         (struct scratch_buffer): Use max_align_t instead of
8083         libc_max_align_t.
8084
8085 2015-10-29  Florian Weimer  <fweimer@redhat.com>
8086
8087         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
8088         instead of extend_alloca.  Change control flow to avoid a goto.
8089         Remove assert which is trivially always true.
8090
8091 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8092
8093         [BZ #16068]
8094         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
8095         (FE_ALL_EXCEPT_X86): New macro.
8096         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8097         FE_ALL_EXCEPT.  Ensure precision control is included in
8098         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8099         handle "denormal operand exception" and clear FZ and DAZ bits.
8100         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
8101         (FE_ALL_EXCEPT_X86): New macro.
8102         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8103         FE_ALL_EXCEPT.  Ensure precision control is included in
8104         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8105         handle "denormal operand exception" and clear FZ and DAZ bits.
8106         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
8107         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
8108         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8109         test-fenv-x87 and test-fenv-sse-2.
8110         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
8111
8112         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
8113         * math/test-double.h (BUILD_COMPLEX): New macro.
8114         * math/test-float.h (BUILD_COMPLEX): Likewise.
8115         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
8116
8117         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
8118         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
8119         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
8120         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
8121         instead of DBL_DENORM_MIN in comment.
8122         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
8123         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8124         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8125         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8126         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8127         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8128
8129 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8130
8131         [BZ# 19048]
8132         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8133         attached_threads member.
8134         (main_arena): Initialize attached_threads.
8135         * malloc/arena.c (list_lock): Update comment.
8136         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8137         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8138         (deattach_arena): New function.
8139         (_int_new_arena): Initialize arena reference count and deattach
8140         replaced arena.
8141         (get_free_list, reused_arena): Update reference count and deattach
8142         replaced arena.
8143         (arena_thread_freeres): Update arena reference count and only put
8144         unreferenced arenas on the free list.
8145
8146 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8147
8148         [BZ #19181]
8149         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8150         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8151         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8152         * math/test-fenv-clear-main.c: New file.
8153         * math/test-fenv-clear.c: Likewise.
8154         * math/Makefile (tests): Add test-fenv-clear.
8155         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8156         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8157         test-fenv-clear-sse.
8158         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8159
8160         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8161         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8162         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8163
8164 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8165
8166         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8167         static libc.
8168
8169 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8170
8171         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8172         test.
8173         * sysdeps/i386/configure: Regenerated.
8174         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8175         test.
8176         * sysdeps/x86_64/configure: Regenerated.
8177         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8178         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8179         memset-avx2 unconditionally instead of conditionally on
8180         [$(config-cflags-avx2) = yes].
8181         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8182         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8183         unconditional.
8184         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8185         * sysdeps/x86_64/multiarch/memset_chk.S
8186         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8187         to [IS_IN (libc) && SHARED].
8188
8189 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8190
8191         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8192         configure test.
8193         * sysdeps/arm/configure: Regenerated.
8194         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8195         Define variable if not already defined.
8196
8197         [BZ #17404]
8198         * sysdeps/mips/atomic-machine.h
8199         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8200         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8201         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8202
8203         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8204         unconditional.
8205         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8206         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8207         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8208         unconditional.
8209         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8210         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8211         unconditional.
8212         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8213         * stdlib/setenv.c
8214         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8215         code unconditional.
8216         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8217         Remove conditional code.
8218         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8219         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8220         unconditional.
8221         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8222         code.
8223         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8224         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8225         unconditional.
8226         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8227         code.
8228         * sysdeps/ieee754/ldbl-128/k_tanl.c
8229         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8230         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8231         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8232         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8233         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8234         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8235         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8236         unconditional.
8237         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8238         code.
8239         * sysdeps/ieee754/ldbl-96/k_tanl.c
8240         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8241         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8242
8243         * nptl/tst-initializers1-c11.c: New file.
8244         * nptl/tst-initializers1-gnu11.c: Likewise.
8245         * nptl/Makefile (tests): Add these new tests.
8246         (CFLAGS-tst-initializers1-c11.c): New variable.
8247         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8248
8249         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8250         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8251         instead of -std=gnu99.
8252         * configure.ac (systemtap): Test with -std=gnu11 instead of
8253         -std=gnu99.
8254         * configure: Regenerated.
8255         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8256         in compilation command in comment.
8257
8258         * sysdeps/nptl/configure.ac: Remove file.
8259         * sysdeps/nptl/configure: Remove generated file.
8260         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8261         * configure: Regenerated.
8262         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8263         * config.make.in (have-forced-unwind): Remove variable.
8264         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8265         unconditional.
8266         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8267         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8268         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8269         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8270         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8271         unconditional.
8272
8273 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8274
8275         [BZ #19174]
8276         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8277         .skip_lock_out_of_tbegin_retries.
8278         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8279         (__lll_lock_elision): Likewise, and respect a value of
8280         try_tbegin <= 0.
8281
8282 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8283
8284         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8285         statement.
8286
8287 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8288
8289         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8290         variable.
8291         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8292         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8293
8294         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8295         of -std=c1x -D_ISOC11_SOURCE.
8296
8297         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8298         * configure: Regenerated.
8299         * manual/install.texi (Tools for Compilation): Document
8300         requirement for GCC 4.7 or later.
8301         * INSTALL: Regenerated.
8302
8303 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8304
8305         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8306         on CNT to a conditional jump to 'puntdata'.
8307
8308 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8309
8310         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8311         (libc_cv_gcc_tls_model_attr): Likewise.
8312         * configure: Regenerated.
8313
8314         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8315         * configure: Regenerated.
8316         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8317
8318 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8319
8320         * configure.ac (old_glibc_headers): Remove configure test.
8321         * configure: Regenerated.
8322         * config.make.in (old-glibc-headers): Remove variable.
8323         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8324         (install): Remove dependency on remove-old-headers.
8325         (headers2_0): Remove variable.
8326         (remove-old-headers): Remove rule.
8327
8328         * configure.ac (libc_cv_dot_text): Remove configure test.
8329         (libc_cv_asm_set_directive): Use .text instead of
8330         ${libc_cv_dot_text} in configure test.
8331         * configure: Regenerated.
8332
8333 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8334
8335         [BZ #19168]
8336         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8337
8338 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8339
8340         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8341         not support static linking.
8342         * configure: Regenerate.
8343
8344 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8345
8346         * math/libm-test.inc (check_float_internal): Do not special-case
8347         errors up to 0.5 ulp.
8348
8349         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8350         log2.
8351         * math/auto-libm-test-out: Regenerated.
8352         * math/libm-test.inc (MAX_EXP): New macro.
8353         (ilogb_test_data): Add more tests.
8354         (isfinite_test_data): Likewise.
8355         (isgreater_test_data): Likewise.
8356         (isgreaterequal_test_data): Likewise.
8357         (isinf_test_data): Likewise.
8358         (isless_test_data): Likewise.
8359         (islessequal_test_data): Likewise.
8360         (islessgreater_test_data): Likewise.
8361         (isnan_test_data): Likewise.
8362         (isnormal_test_data): Likewise.
8363         (issignaling_test_data): Likewise.
8364         (isunordered_test_data): Likewise.
8365         (j0_test_data): Likewise.
8366         (j1_test_data): Likewise.
8367         (jn_test_data): Likewise.
8368         (lgamma_test_data): Likewise.
8369         (log_test_data): Likewise.
8370         (log10_test_data): Likewise.
8371         (log1p_test_data): Likewise.
8372         (log2_test_data): Likewise.
8373         (logb_test_data): Likewise.
8374         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8375
8376         [BZ #18611]
8377         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8378         avoid excess range and precision on underflow.
8379         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8380         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8381         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8382         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8383         underflow.
8384         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8385         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8386         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8387         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8388         * math/auto-libm-test-in: Do not allow missing errno setting for
8389         tests of j1 and jn.
8390         * math/auto-libm-test-out: Regenerated.
8391
8392 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8393
8394         [BZ #15491]
8395         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8396         floating-point environment instead of clearing all exceptions.
8397         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8398         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8399         merging in "invalid" exceptions from frndint.
8400         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8401         * math/test-nearbyint-except.c: New file.
8402         * math/Makefile (tests): Add test-nearbyint-except.
8403
8404 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8405
8406         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8407
8408         * sysdeps/tile/libm-test-ulps: Regenerated.
8409
8410 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8411
8412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8413         (__NR_sync_file_range2): Assume it is always defined.
8414         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8415         (__NR_sync_file_range): Assume it is always defined.
8416
8417 2015-10-22  Andreas Schwab  <schwab@suse.de>
8418
8419         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8420         INTERNAL_SYSCALL_ERRNO.
8421         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8422         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8423         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8424         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8425         Likewise.
8426         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8427
8428 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8429
8430         * io/tst-fcntl.c (fd): New static variable.
8431         (do_prepare): Open temporary file here....
8432         (do_test): ...not here.
8433
8434         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8435
8436 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8437
8438         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8439         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8440         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8441         Moved before "#ifdef __ASSEMBLER__".
8442
8443 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8444
8445         [BZ #19156]
8446         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8447         arguments very close to 0.
8448
8449 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8450
8451         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8452         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8453
8454 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8455
8456         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8457         New.  Defined for GCC 5 and above when not compiling for
8458         profiling.
8459         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8460
8461         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8462         Renamed to ...
8463         (CFLAGS-epoll_pwait.o): This.
8464         (CFLAGS-mmap.c): Renamed to ...
8465         (CFLAGS-mmap.o): This.
8466         (CFLAGS-mmap64.c): Renamed to ...
8467         (CFLAGS-mmap64.o): This.
8468         (CFLAGS-epoll_pwait.os): New.
8469         (CFLAGS-mmap.os): Likewise.
8470         (CFLAGS-mmap64.os): Likewise.
8471         (CFLAGS-semtimedop.os): Likewise.
8472         (CFLAGS-semtimedop.c): Renamed to ...
8473         (CFLAGS-semtimedop.o): This.
8474
8475 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8476
8477         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8478         warning message.
8479
8480 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8481
8482         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8483         * Makefile ($(objpfx)c++-types-check.out): Filter out
8484         $(+gccwarn-c) instead of -Wstrict-prototypes.
8485
8486         * io/fts.c (fts_open): Convert to prototype-style function
8487         definition.
8488         * malloc/mcheck.c (mcheck): Likewise.
8489         (mcheck_pedantic): Likewise.
8490         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8491         internal_function.
8492         (re_search_internal): Likewise.
8493         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8494         prototype-style function definition.
8495         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8496         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8497         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8498         (xdr_utmpptr): Likewise.
8499         (xdr_utmparr): Likewise.
8500         (xdr_utmpidle): Likewise.
8501         (xdr_utmpidleptr): Likewise.
8502         (xdr_utmpidlearr): Likewise.
8503
8504         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8505         log, log10 and log2.
8506         * math/auto-libm-test-out: Regenerated.
8507         * math/libm-test.inc (fmod_test_data): Add more tests.
8508         (fpclassify_test_data): Likewise.
8509         (frexp_test_data): Likewise.
8510         (hypot_test_data): Likewise.
8511         (ilogb_test_data): Likewise.
8512
8513 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8514
8515         * debug/fortify_fail.c (__fortify_fail): Convert to
8516         prototype-style function definition.  Use internal_function.
8517         * libio/genops.c (save_for_backup): Convert to prototype-style
8518         function definition.
8519         * libio/wgenops.c (save_for_wbackup): Likewise.
8520         * login/grantpt.c (grantpt): Likewise.
8521         * login/ptsname.c (ptsname): Likewise.
8522         (__ptsname_r): Likewise.
8523         * login/unlockpt.c (unlockpt): Likewise.
8524         * mach/msgserver.c (__mach_msg_server): Likewise.
8525         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8526         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8527         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8528         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8529         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8530         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8531         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8532         Likewise.
8533         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8534         internal_function.
8535         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8536         prototype-style function definition.
8537         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8538         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8539         (__pthread_create_2_0): Likewise.
8540         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8541         * nptl/register-atfork.c (__register_atfork): Likewise.
8542         * posix/glob.c (glob): Likewise.
8543         * posix/regcomp.c (re_comp): Likewise.
8544         * posix/regexec.c (re_exec): Likewise.
8545         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8546         [!__STDC__]: Remove conditional code.
8547         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8548         [!__STDC__]: Remove conditional code.
8549         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8550         [!__STDC__]: Remove conditional code.
8551         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8552         [!__STDC__]: Remove conditional code.
8553         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8554         [!__STDC__]: Remove conditional code.
8555         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8556         [!__STDC__]: Remove conditional code.
8557         * stdlib/mul.c [__STDC__]: Make code unconditional.
8558         [!__STDC__]: Remove conditional code.
8559         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8560         [!__STDC__]: Remove conditional code.
8561         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8562         [!__STDC__]: Remove conditional code.
8563         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8564         function definition.
8565         (STRTOF): Likewise.
8566         * stdlib/strtod_l.c (__STRTOF): Likewise.
8567         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8568         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8569         (__strtol_l): Likewise.
8570         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8571         [!__STDC__]: Remove conditional code.
8572         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8573         definition.
8574         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8575         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8576         type.
8577         (__strcasecmp): Convert to prototype-style function definition.
8578         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8579         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8580         type.
8581         (__strncasecmp): Convert to prototype-style function definition.
8582         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8583         * sunrpc/xdr.c (xdr_union): Likewise.
8584         * sunrpc/xdr_array.c (xdr_array): Likewise.
8585         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8586         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8587         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8588         Likewise.
8589         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8590         Likewise.
8591         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8592         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8593         Likewise.
8594         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8595         (LOCALE_PARAM_PROTO): Likewise.
8596         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8597         argument type.
8598         (ut_argument_spec): Remove macro.
8599         (ut_argument_spec_iso): Rename to ut_argument_spec.
8600         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8601         prototype-style function definition.
8602         (memcpy_uppcase): Likewise.
8603         (__strftime_internal): Likewise.
8604         (my_strftime): Likewise.
8605         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8606         (LOCALE_PARAM_DECL): Likewise.
8607         [_LIBC] (LOCALE_PARAM): Include argument type.
8608         (__strptime_internal): Convert to prototype-style function
8609         definition.
8610         (strptime): Likewise.
8611         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8612         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8613         type.
8614         (__wcscasecmp): Convert to prototype-style function definition.
8615         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8616         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8617         type.
8618         (__wcsncasecmp): Convert to prototype-style function definition.
8619
8620         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8621         function definition.
8622         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8623         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8624         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8625         * elf/dl-minimal.c (_itoa): Likewise.
8626         * hurd/hurdmalloc.c (malloc): Likewise.
8627         (free): Likewise.
8628         (realloc): Likewise.
8629         * inet/inet6_option.c (inet6_option_space): Likewise.
8630         (inet6_option_init): Likewise.
8631         (inet6_option_append): Likewise.
8632         (inet6_option_alloc): Likewise.
8633         (inet6_option_next): Likewise.
8634         (inet6_option_find): Likewise.
8635         * io/ftw.c (FTW_NAME): Likewise.
8636         (NFTW_NAME): Likewise.
8637         (NFTW_NEW_NAME): Likewise.
8638         (NFTW_OLD_NAME): Likewise.
8639         * libio/iofwide.c (_IO_fwide): Likewise.
8640         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8641         (_IO_str_init_static): Likewise.
8642         (_IO_str_init_readonly): Likewise.
8643         (_IO_str_overflow): Likewise.
8644         (_IO_str_underflow): Likewise.
8645         (_IO_str_count): Likewise.
8646         (_IO_str_seekoff): Likewise.
8647         (_IO_str_pbackfail): Likewise.
8648         (_IO_str_finish): Likewise.
8649         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8650         (_IO_wstr_overflow): Likewise.
8651         (_IO_wstr_underflow): Likewise.
8652         (_IO_wstr_count): Likewise.
8653         (_IO_wstr_seekoff): Likewise.
8654         (_IO_wstr_pbackfail): Likewise.
8655         (_IO_wstr_finish): Likewise.
8656         * locale/programs/localedef.c (normalize_codeset): Likewise.
8657         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8658         (add_locales_to_archive): Likewise.
8659         (delete_locales_from_archive): Likewise.
8660         * malloc/malloc.c (__libc_mallinfo): Likewise.
8661         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8662         * misc/tsearch.c (__tfind): Likewise.
8663         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8664         * nptl/pthread_attr_getdetachstate.c
8665         (__pthread_attr_getdetachstate): Likewise.
8666         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8667         Likewise.
8668         * nptl/pthread_attr_getinheritsched.c
8669         (__pthread_attr_getinheritsched): Likewise.
8670         * nptl/pthread_attr_getschedparam.c
8671         (__pthread_attr_getschedparam): Likewise.
8672         * nptl/pthread_attr_getschedpolicy.c
8673         (__pthread_attr_getschedpolicy): Likewise.
8674         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8675         Likewise.
8676         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8677         Likewise.
8678         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8679         Likewise.
8680         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8681         Likewise.
8682         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8683         (__pthread_attr_init_2_0): Likewise.
8684         * nptl/pthread_attr_setdetachstate.c
8685         (__pthread_attr_setdetachstate): Likewise.
8686         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8687         Likewise.
8688         * nptl/pthread_attr_setinheritsched.c
8689         (__pthread_attr_setinheritsched): Likewise.
8690         * nptl/pthread_attr_setschedparam.c
8691         (__pthread_attr_setschedparam): Likewise.
8692         * nptl/pthread_attr_setschedpolicy.c
8693         (__pthread_attr_setschedpolicy): Likewise.
8694         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8695         Likewise.
8696         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8697         Likewise.
8698         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8699         Likewise.
8700         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8701         Likewise.
8702         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8703         Likewise.
8704         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8705         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8706         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8707         use internal_function.
8708         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8709         prototype-style function definition.
8710         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8711         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8712         internal_function.
8713         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8714         Convert to prototype-style function definition.
8715         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8716         Likewise.
8717         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8718         Likewise.
8719         (__pthread_mutex_unlock): Likewise.
8720         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8721         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8722         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8723         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8724         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8725         * nss/makedb.c (process_input): Likewise.
8726         * posix/fnmatch.c (__strchrnul): Likewise.
8727         (__wcschrnul): Likewise.
8728         (fnmatch): Likewise.
8729         * posix/fnmatch_loop.c (FCT): Likewise.
8730         * posix/glob.c (globfree): Likewise.
8731         (__glob_pattern_type): Likewise.
8732         (__glob_pattern_p): Likewise.
8733         * posix/regcomp.c (re_compile_pattern): Likewise.
8734         (re_set_syntax): Likewise.
8735         (re_compile_fastmap): Likewise.
8736         (regcomp): Likewise.
8737         (regerror): Likewise.
8738         (regfree): Likewise.
8739         * posix/regexec.c (regexec): Likewise.
8740         (re_match): Likewise.
8741         (re_search): Likewise.
8742         (re_match_2): Likewise.
8743         (re_search_2): Likewise.
8744         (re_search_stub): Likewise.  Use internal_function
8745         (re_copy_regs): Likewise.
8746         (re_set_registers): Convert to prototype-style function
8747         definition.
8748         (prune_impossible_nodes): Likewise.  Use internal_function.
8749         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8750         prototype-style function definition.
8751         (inet_net_pton_ipv4): Likewise.
8752         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8753         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8754         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8755         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8756         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8757         Make variadic.
8758         * time/strptime_l.c (localtime_r): Convert to prototype-style
8759         function definition.
8760         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8761         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8762         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8763         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8764
8765         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8766         definition.
8767         (_ufc_doit_r): Likewise.
8768         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8769         (_ufc_output_conversion_r): Likewise.
8770         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8771         * inet/rcmd.c (rcmd_af): Likewise.
8772         (rcmd): Likewise.
8773         (ruserok_af): Likewise.
8774         (ruserok): Likewise.
8775         (ruserok2_sa): Likewise.
8776         (ruserok_sa): Likewise.
8777         (iruserok_af): Likewise.
8778         (iruserok): Likewise.
8779         (__ivaliduser): Likewise.
8780         (__validuser2_sa): Likewise.
8781         * inet/rexec.c (rexec_af): Likewise.
8782         (rexec): Likewise.
8783         * inet/ruserpass.c (ruserpass): Likewise.
8784         * locale/programs/xmalloc.c (xcalloc): Likewise.
8785         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8786         * math/w_drem.c (__drem): Likewise.
8787         * math/w_dremf.c (__dremf): Likewise.
8788         * math/w_dreml.c (__dreml): Likewise.
8789         * misc/daemon.c (daemon): Likewise.
8790         * resolv/res_debug.c (p_fqnname): Likewise.
8791         * stdlib/div.c (div): Likewise.
8792         * string/memcmp.c (memcmp_bytes): Likewise.
8793         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8794         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8795
8796         * crypt/cert.c (main): Convert to prototype-style function
8797         definition.
8798         * io/pipe.c (__pipe): Likewise.
8799         * io/pipe2.c (__pipe2): Likewise.
8800         * misc/futimesat.c (futimesat): Likewise.
8801         * misc/utimes.c (__utimes): Likewise.
8802         * posix/execve.c (__execve): Likewise.
8803         * posix/execvp.c (execvp): Likewise.
8804         * posix/execvpe.c (__execvpe): Likewise.
8805         * posix/fexecve.c (fexecve): Likewise.
8806         * socket/socketpair.c (socketpair): Likewise.
8807         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8808         * stdlib/erand48.c (erand48): Likewise.
8809         * stdlib/erand48_r.c (__erand48_r): Likewise.
8810         * stdlib/jrand48.c (jrand48): Likewise.
8811         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8812         * stdlib/lcong48.c (lcong48): Likewise.
8813         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8814         * stdlib/nrand48.c (nrand48): Likewise.
8815         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8816         * stdlib/seed48.c (seed48): Likewise.
8817         * stdlib/seed48_r.c (__seed48_r): Likewise.
8818         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8819         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8820         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8821
8822 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8823
8824         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8825         * configure: Regenerated.
8826         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8827         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8828         unconditional.
8829         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8830         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8831         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8832         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8833         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8834         unconditional.
8835         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8836
8837         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8838         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8839
8840         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8841         function definition.
8842         * crypt/crypt_util.c (__encrypt_r): Likewise.
8843         * libio/genops.c (_IO_no_init): Likewise.
8844         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8845         (_IO_old_fopencookie): Likewise.
8846         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8847         * libio/iogetline.c (_IO_getline): Likewise.
8848         (_IO_getline_info): Likewise.
8849         * libio/iogetwline.c (_IO_getwline): Likewise.
8850         (_IO_getwline_info): Likewise.
8851         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8852         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8853         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8854         (find_entry): Likewise.
8855         (iterate_table): Likewise.
8856         (lookup): Likewise.
8857         * login/forkpty.c (forkpty): Likewise.
8858         * misc/hsearch_r.c (__hsearch_r): Likewise.
8859         * misc/select.c (__select): Likewise.
8860         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8861         Likewise.
8862         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8863         Likewise.
8864         * nptl/old_pthread_cond_timedwait.c
8865         (__pthread_cond_timedwait_2_0): Likewise.
8866         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8867         * nptl/pthread_barrierattr_getpshared.c
8868         (pthread_barrierattr_getpshared): Likewise.
8869         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8870         Likewise.
8871         * nptl/pthread_mutex_setprioceiling.c
8872         (pthread_mutex_setprioceiling): Likewise.
8873         * nptl/pthread_mutexattr_getprioceiling.c
8874         (pthread_mutexattr_getprioceiling): Likewise.
8875         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8876         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8877         Likewise.
8878         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8879         Likewise.
8880         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8881         Likewise.
8882         * socket/recvfrom.c (__recvfrom): Likewise.
8883         * socket/sendto.c (__sendto): Likewise.
8884         * socket/setsockopt.c (__setsockopt): Likewise.
8885         * stdio-common/_itoa.c (_itoa): Likewise.
8886         * stdio-common/_itowa.c (_itowa): Likewise.
8887         * stdio-common/reg-printf.c (__register_printf_specifier):
8888         Likewise.
8889         (__register_printf_function): Likewise.
8890         * stdio-common/tempname.c (__path_search): Likewise.
8891         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8892         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8893         * stdlib/random_r.c (__initstate_r): Likewise.
8894         * stdlib/setenv.c (__add_to_environ): Likewise.
8895         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8896         * streams/getpmsg.c (getpmsg): Likewise.
8897         * streams/putmsg.c (putmsg): Likewise.
8898         * streams/putpmsg.c (putpmsg): Likewise.
8899         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8900         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8901         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8902         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8903         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8904         * sunrpc/svc_udp.c (cache_get): Likewise.
8905         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8906         * sysdeps/mach/hurd/getcwd.c
8907         (__canonicalize_directory_name_internal): Likewise.
8908         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8909         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8910         * sysdeps/mach/hurd/select.c (__select): Likewise.
8911         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8912         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8913         * sysdeps/sparc/nptl/pthread_barrier_init.c
8914         (__pthread_barrier_init): Likewise.
8915         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8916         (__pthread_cond_timedwait): Likewise.
8917         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8918         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8919         Likewise.
8920         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8921         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8922         Likewise.
8923         * sysvipc/semtimedop.c (semtimedop): Likewise.
8924         * time/setitimer.c (__setitimer): Likewise.
8925         * time/strftime_l.c (emacs_strftime): Likewise.
8926
8927 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8928
8929         * config.make.in (have-ssp): Delete.
8930         (stack-protector): New variable.
8931         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8932         cache test for -fstack-protector-strong.  Export stack_protector to
8933         the best ssp flag.
8934         * configure: Regenerated.
8935         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8936         * nscd/Makefile (CFLAGS-nscd): Likewise.
8937         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8938
8939 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8940
8941         [BZ #19122]
8942         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8943         attribute_hidden.
8944
8945 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8946
8947         [BZ #18743]
8948         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8949         code to...
8950         (ELIDE_LOCK): ...here.
8951         (__get_new_count): New function with part of the code from
8952         __elide_lock that updates the value of adapt_count after a
8953         transaction abort.
8954         (__elided_trylock): Moved this code to...
8955         (ELIDE_TRYLOCK): ...here.
8956
8957 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8958
8959         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8960         * configure: Regenerate.
8961         * INSTALL: Regenerate.
8962         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8963         and tweak grammar.
8964
8965 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8966
8967         * login/programs/pt_chown.c: Include signal.h
8968         (main): Clear any signal mask from the parent process.
8969
8970 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8971
8972         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8973         * configure: Regenerated.
8974         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8975         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8976         $(gnu89-inline-CFLAGS).
8977
8978         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8979         test.
8980         (libc_cv_asm_weakext_directive): Likewise.
8981         * configure: Regenerated.
8982         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8983         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8984         * include/libc-symbols.h
8985         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8986         #error.
8987         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8988         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8989
8990         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8991         prototype-style function definition.
8992         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8993         * sysdeps/i386/ffs.c (__ffs): Likewise.
8994         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8995         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8996         Likewise.
8997         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8998         Likewise.
8999         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
9000         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
9001         Likewise.
9002         * sysdeps/m68k/ffs.c (__ffs): Likewise.
9003         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
9004         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
9005         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
9006         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
9007         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
9008         * sysdeps/mach/hurd/access.c (__access): Likewise.
9009         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
9010         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
9011         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
9012         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
9013         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
9014         (cthread_getspecific): Likewise.
9015         (cthread_setspecific): Likewise.
9016         (__libc_getspecific): Likewise.
9017         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
9018         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
9019         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
9020         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
9021         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
9022         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
9023         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
9024         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
9025         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
9026         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
9027         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
9028         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9029         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
9030         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
9031         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
9032         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
9033         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
9034         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
9035         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
9036         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
9037         * sysdeps/mach/hurd/link.c (__link): Likewise.
9038         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
9039         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
9040         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9041         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
9042         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
9043         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
9044         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
9045         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
9046         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
9047         * sysdeps/mach/hurd/rename.c (rename): Likewise.
9048         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
9049         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
9050         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
9051         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
9052         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
9053         * sysdeps/mach/hurd/send.c (__send): Likewise.
9054         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
9055         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
9056         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
9057         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
9058         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
9059         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
9060         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
9061         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
9062         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
9063         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
9064         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
9065         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
9066         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
9067         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
9068         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
9069         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9070         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
9071         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9072         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
9073         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
9074         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
9075         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
9076         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
9077         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
9078         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
9079         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
9080         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
9081         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9082         * sysdeps/posix/alarm.c (alarm): Likewise.
9083         * sysdeps/posix/cuserid.c (cuserid): Likewise.
9084         * sysdeps/posix/dirfd.c (dirfd): Likewise.
9085         * sysdeps/posix/dup.c (__dup): Likewise.
9086         * sysdeps/posix/dup2.c (__dup2): Likewise.
9087         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
9088         (main): Likewise.
9089         * sysdeps/posix/flock.c (__flock): Likewise.
9090         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
9091         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9092         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
9093         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
9094         * sysdeps/posix/isatty.c (__isatty): Likewise.
9095         * sysdeps/posix/killpg.c (killpg): Likewise.
9096         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9097         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
9098         * sysdeps/posix/raise.c (raise): Likewise.
9099         * sysdeps/posix/remove.c (remove): Likewise.
9100         * sysdeps/posix/rename.c (rename): Likewise.
9101         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
9102         * sysdeps/posix/seekdir.c (seekdir): Likewise.
9103         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9104         * sysdeps/posix/sigignore.c (sigignore): Likewise.
9105         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
9106         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9107         * sysdeps/posix/sigset.c (sigset): Likewise.
9108         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
9109         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
9110         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
9111         * sysdeps/posix/time.c (time): Likewise.
9112         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9113         (ttyname): Likewise.
9114         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
9115         * sysdeps/posix/utime.c (utime): Likewise.
9116         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
9117         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
9118         Likewise.
9119         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
9120         (pthread_spin_trylock): Likewise.
9121         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
9122         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
9123         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
9124         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9125         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9126         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9127         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9128         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9129         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9130         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9131         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9132         * sysdeps/s390/ffs.c (__ffs): Likewise.
9133         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9134         Likewise.
9135         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9136         Likewise.
9137         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9138         Likewise.
9139         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9140         (pthread_barrier_destroy): Likewise.
9141         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9142         (__pthread_barrier_wait): Likewise.
9143         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9144         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9145         (__pthread_barrier_wait): Likewise.
9146         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9147         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9148         (memcmp_not_common_alignment): Likewise.
9149         (MEMCMP): Likewise.
9150         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9151         (_wordcopy_fwd_dest_aligned): Likewise.
9152         (_wordcopy_bwd_aligned): Likewise.
9153         (_wordcopy_bwd_dest_aligned): Likewise.
9154         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9155         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9156         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9157         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9158         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9159         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9160         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9161         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9162         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9163         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9164         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9165         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9166         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9167         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9168         * sysdeps/unix/stime.c (stime): Likewise.
9169         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9170         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9171         Likewise.  Use internal_function.
9172         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9173         Convert to prototype-style function definition.
9174         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9175         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9176         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9177         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9178         Likewise.  Use internal_function.
9179         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9180         prototype-style function definition
9181         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9182         Likewise.
9183         (__getlogin_r): Likewise.
9184         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9185         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9186         (__pthread_cond_broadcast): Likewise.
9187         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9188         (__pthread_cond_destroy): Likewise.
9189         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9190         (__pthread_cond_init): Likewise.
9191         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9192         (__pthread_cond_signal): Likewise.
9193         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9194         (__pthread_cond_wait): Likewise.
9195         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9196         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9197         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9198         Likewise.
9199         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9200         Likewise.
9201         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9202         Likewise.
9203         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9204         Likewise.
9205         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9207         (__ftruncate64): Likewise.
9208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9209         (truncate64): Likewise.
9210         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9211         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9212         (pthread_getcpuclockid): Likewise.
9213         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9214         Likewise.
9215         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9216         Likewise.
9217         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9218         Likewise.
9219         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9220         Likewise.
9221         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9222         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9223         (__libc_sigaction): Likewise.
9224         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9225         Likewise.
9226         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9227         (__sigprocmask): Likewise.
9228         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9229         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9230         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9231         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9232         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9233         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9234         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9235         Likewise.
9236         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9237         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9238         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9239         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9240         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9241         Likewise.
9242         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9243         (__sigprocmask): Likewise.
9244         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9245         (cfgetispeed): Likewise.
9246         (cfsetospeed): Likewise.
9247         (cfsetispeed): Likewise.
9248         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9249         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9250         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9251         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9252         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9253         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9254         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9255         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9256         Likewise.
9257         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9258         Likewise.
9259         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9260         Likewise.
9261         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9262         Likewise.
9263         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9264
9265 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9266
9267         sunrpc: Rewrite with explicit TLS access using __thread.
9268         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9269         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9270         directly.
9271         (__rpc_thread_variables): Access thread_rpc_vars directly.
9272         Eliminate redundant assignment of the tvp variable.
9273
9274 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9275
9276         malloc: Rewrite with explicit TLS access using __thread.
9277         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9278         (tsd_setspecific, tsd_getspecific): Remove.
9279         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9280         (tsd_setspecific, tsd_getspecific): Likewise.
9281         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9282         (tsd_setspecific, tsd_getspecific): Likewise.
9283         * malloc/arena.c (thread_arena): New TLS variable.
9284         (arena_key): Remove variable.
9285         (arena_get): Use thread_arena.
9286         (arena_lookup): Remove macro.
9287         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9288         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9289         (_int_new_arena, get_free_list, reused_arena)
9290         (arena_thread_freeres): Use thread_arena.
9291         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9292         tsd_getspecific, tsd_setspecific from safety annotations.
9293         (Allocating Cleared Space): Remove arena_lookup from safety
9294         annotations.
9295
9296 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9297
9298         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9299         struct scratch_buffer instead of extend_alloca.
9300
9301 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9302
9303         * sysdeps/unix/sysv/linux/kernel-features.h
9304         (__ASSUME_SOCK_CLOEXEC): Remove.
9305         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9306         (__have_paccept): Remove unused macro.
9307         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9308         * misc/syslog.c (openlog_internal): Remove fallback code for
9309         !__ASSUME_SOCK_CLOEXEC.
9310         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9311         missing SOCK_CLOEXEC.
9312         * nscd/connections.c (have_sock_cloexec): Remove definition.
9313         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9314         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9315         !__ASSUME_SOCK_CLOEXEC.
9316         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9317         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9318         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9319         definition.
9320         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9321         code for !__ASSUME_SOCK_CLOEXEC.
9322
9323 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9324
9325         [BZ #18982]
9326         * manual/stdio.texi (Variable Arguments Output): Add portability
9327         note, explaining that vfprintf clobbers the va_list pointer.
9328
9329 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9330
9331         * math/libm-test.inc (fabs_test_data): Add more tests.
9332         (fdim_test_data): Likewise.
9333         (fma_test_data): Likewise.
9334         (fmax_test_data): Likewise.
9335         (fmin_test_data): Likewise.
9336         (fmod_test_data): Likewise.
9337
9338 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9339
9340         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9341         data.
9342
9343 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9344
9345         * math/libm-test.inc (ceil_test_data): Add more tests and more
9346         expectations for "inexact".
9347         (floor_test_data): Add more tests.
9348         (round_test_data): Likewise.
9349         (trunc_test_data): Likewise.
9350
9351         * crypt/cert.c (good_bye): Convert to prototype-style function
9352         definition.
9353         (get8): Likewise.
9354         (put8): Likewise.
9355         * crypt/crypt-entry.c (crypt): Likewise.
9356         (__fcrypt): Likewise.
9357         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9358         (_ufc_set_bits): Likewise.
9359         (_ufc_clearmem): Likewise.
9360         (__init_des_r): Likewise.
9361         (shuffle_sb): Likewise.
9362         (shuffle_sb): Likewise.
9363         (_ufc_setup_salt_r): Likewise.
9364         (_ufc_mk_keytab_r): Likewise.
9365         (_ufc_dofinalperm_r): Likewise.
9366         (encrypt): Likewise.
9367         (__setkey_r): Likewise.
9368         (setkey): Likewise.
9369         * crypt/md5.c (md5_init_ctx): Likewise.
9370         (md5_read_ctx): Likewise.
9371         (md5_finish_ctx): Likewise.
9372         (md5_stream): Likewise.
9373         (md5_buffer): Likewise.
9374         (md5_process_bytes): Likewise.
9375         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9376         (__sha256_finish_ctx): Likewise.
9377         (__sha256_process_bytes): Likewise.
9378         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9379         (__sha512_finish_ctx): Likewise.
9380         (__sha512_process_bytes): Likewise.
9381         * ctype/isctype.c (__isctype): Likewise.
9382         * debug/backtrace.c (__backtrace): Likewise.
9383         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9384         * debug/fgets_chk.c (__fgets_chk): Likewise.
9385         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9386         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9387         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9388         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9389         * debug/memset_chk.c (__memset_chk): Likewise.
9390         * debug/strcat_chk.c (__strcat_chk): Likewise.
9391         * debug/strncat_chk.c (__strncat_chk): Likewise.
9392         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9393         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9394         * dirent/dirfd.c (dirfd): Likewise.
9395         * dirent/getdents.c (__getdirentries): Likewise.
9396         * dirent/getdents64.c (getdirentries64): Likewise.
9397         * dirent/rewinddir.c (__rewinddir): Likewise.
9398         * dirent/seekdir.c (seekdir): Likewise.
9399         * dirent/telldir.c (telldir): Likewise.
9400         * elf/sln.c (makesymlinks): Likewise.
9401         (makesymlink): Likewise.
9402         * gmon/gmon.c (__moncontrol): Likewise.
9403         (__monstartup): Likewise.
9404         (write_hist): Likewise.
9405         (write_call_graph): Likewise.
9406         (write_bb_counts): Likewise.
9407         * grp/setgroups.c (setgroups): Likewise.
9408         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9409         * inet/inet_net.c (inet_network): Likewise.
9410         * inet/inet_netof.c (inet_netof): Likewise.
9411         * inet/rcmd.c (rresvport_af): Likewise.
9412         (rresvport): Likewise.
9413         * io/access.c (__access): Likewise.
9414         * io/chdir.c (__chdir): Likewise.
9415         * io/chmod.c (__chmod): Likewise.
9416         * io/chown.c (__chown): Likewise.
9417         * io/close.c (__close): Likewise.
9418         * io/creat.c (creat): Likewise.
9419         * io/creat64.c (creat64): Likewise.
9420         * io/dup.c (__dup): Likewise.
9421         * io/dup2.c (__dup2): Likewise.
9422         * io/dup3.c (__dup3): Likewise.
9423         * io/euidaccess.c (__euidaccess): Likewise.
9424         * io/faccessat.c (faccessat): Likewise.
9425         * io/fchmod.c (__fchmod): Likewise.
9426         * io/fchmodat.c (fchmodat): Likewise.
9427         * io/fchown.c (__fchown): Likewise.
9428         * io/fchownat.c (fchownat): Likewise.
9429         * io/fcntl.c (__fcntl): Likewise.
9430         * io/flock.c (__flock): Likewise.
9431         * io/fts.c (fts_load): Likewise.
9432         (fts_close): Likewise.
9433         (fts_read): Likewise.
9434         (fts_set): Likewise.
9435         (fts_children): Likewise.
9436         (fts_build): Likewise.
9437         (fts_stat): Likewise.
9438         (fts_sort): Likewise.
9439         (fts_alloc): Likewise.
9440         (fts_lfree): Likewise.
9441         (fts_palloc): Likewise.
9442         (fts_padjust): Likewise.
9443         (fts_maxarglen): Likewise.
9444         (fts_safe_changedir): Likewise.
9445         * io/getwd.c (getwd): Likewise.
9446         * io/isatty.c (__isatty): Likewise.
9447         * io/lchown.c (__lchown): Likewise.
9448         * io/link.c (__link): Likewise.
9449         * io/linkat.c (linkat): Likewise.
9450         * io/lseek.c (__libc_lseek): Likewise.
9451         * io/mkdir.c (__mkdir): Likewise.
9452         * io/mkdirat.c (mkdirat): Likewise.
9453         * io/mkfifo.c (mkfifo): Likewise.
9454         * io/mkfifoat.c (mkfifoat): Likewise.
9455         * io/open.c (__libc_open): Likewise.
9456         * io/open64.c (__libc_open64): Likewise.
9457         * io/readlink.c (__readlink): Likewise.
9458         * io/readlinkat.c (readlinkat): Likewise.
9459         * io/rmdir.c (__rmdir): Likewise.
9460         * io/symlink.c (__symlink): Likewise.
9461         * io/symlinkat.c (symlinkat): Likewise.
9462         * io/ttyname.c (ttyname): Likewise.
9463         * io/ttyname_r.c (__ttyname_r): Likewise.
9464         * io/umask.c (__umask): Likewise.
9465         * io/unlink.c (__unlink): Likewise.
9466         * io/unlinkat.c (unlinkat): Likewise.
9467         * io/utime.c (utime): Likewise.
9468         * libio/clearerr.c (clearerr): Likewise.
9469         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9470         * libio/feof.c (_IO_feof): Likewise.
9471         * libio/feof_u.c (feof_unlocked): Likewise.
9472         * libio/ferror.c (_IO_ferror): Likewise.
9473         * libio/ferror_u.c (ferror_unlocked): Likewise.
9474         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9475         * libio/fileno.c (__fileno): Likewise.
9476         * libio/fputc.c (fputc): Likewise.
9477         * libio/fputc_u.c (fputc_unlocked): Likewise.
9478         * libio/fputwc.c (fputwc): Likewise.
9479         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9480         * libio/freopen.c (freopen): Likewise.
9481         * libio/freopen64.c (freopen64): Likewise.
9482         * libio/fseek.c (fseek): Likewise.
9483         * libio/fseeko.c (fseeko): Likewise.
9484         * libio/fseeko64.c (fseeko64): Likewise.
9485         * libio/ftello.c (__ftello): Likewise.
9486         * libio/ftello64.c (ftello64): Likewise.
9487         * libio/fwide.c (fwide): Likewise.
9488         * libio/genops.c (_IO_un_link): Likewise.
9489         (_IO_link_in): Likewise.
9490         (_IO_least_marker): Likewise.
9491         (_IO_switch_to_main_get_area): Likewise.
9492         (_IO_switch_to_backup_area): Likewise.
9493         (_IO_switch_to_get_mode): Likewise.
9494         (_IO_free_backup_area): Likewise.
9495         (_IO_switch_to_put_mode): Likewise.
9496         (__overflow): Likewise.
9497         (__underflow): Likewise.
9498         (__uflow): Likewise.
9499         (_IO_setb): Likewise.
9500         (_IO_doallocbuf): Likewise.
9501         (_IO_default_underflow): Likewise.
9502         (_IO_default_uflow): Likewise.
9503         (_IO_default_xsputn): Likewise.
9504         (_IO_sgetn): Likewise.
9505         (_IO_default_xsgetn): Likewise.
9506         (_IO_sync): Likewise.
9507         (_IO_default_setbuf): Likewise.
9508         (_IO_default_seekpos): Likewise.
9509         (_IO_default_doallocate): Likewise.
9510         (_IO_init): Likewise.
9511         (_IO_old_init): Likewise.
9512         (_IO_default_sync): Likewise.
9513         (_IO_default_finish): Likewise.
9514         (_IO_default_seekoff): Likewise.
9515         (_IO_sputbackc): Likewise.
9516         (_IO_sungetc): Likewise.
9517         (_IO_set_column): Likewise.
9518         (_IO_set_column): Likewise.
9519         (_IO_adjust_column): Likewise.
9520         (_IO_get_column): Likewise.
9521         (_IO_init_marker): Likewise.
9522         (_IO_remove_marker): Likewise.
9523         (_IO_marker_difference): Likewise.
9524         (_IO_marker_delta): Likewise.
9525         (_IO_seekmark): Likewise.
9526         (_IO_unsave_markers): Likewise.
9527         (_IO_nobackup_pbackfail): Likewise.
9528         (_IO_default_pbackfail): Likewise.
9529         (_IO_default_seek): Likewise.
9530         (_IO_default_stat): Likewise.
9531         (_IO_default_read): Likewise.
9532         (_IO_default_write): Likewise.
9533         (_IO_default_showmanyc): Likewise.
9534         (_IO_default_imbue): Likewise.
9535         (_IO_iter_next): Likewise.
9536         (_IO_iter_file): Likewise.
9537         * libio/getc.c (_IO_getc): Likewise.
9538         * libio/getwc.c (_IO_getwc): Likewise.
9539         * libio/iofclose.c (_IO_new_fclose): Likewise.
9540         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9541         * libio/iofflush.c (_IO_fflush): Likewise.
9542         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9543         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9544         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9545         * libio/iofgets.c (_IO_fgets): Likewise.
9546         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9547         * libio/iofgetws.c (fgetws): Likewise.
9548         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9549         * libio/iofopen64.c (_IO_fopen64): Likewise.
9550         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9551         (_IO_cookie_write): Likewise.
9552         (_IO_cookie_seek): Likewise.
9553         (_IO_cookie_close): Likewise.
9554         (_IO_cookie_seekoff): Likewise.
9555         (_IO_old_cookie_seek): Likewise.
9556         * libio/iofputs.c (_IO_fputs): Likewise.
9557         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9558         * libio/iofputws.c (fputws): Likewise.
9559         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9560         * libio/iofread.c (_IO_fread): Likewise.
9561         * libio/iofread_u.c (__fread_unlocked): Likewise.
9562         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9563         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9564         * libio/ioftell.c (_IO_ftell): Likewise.
9565         * libio/iofwrite.c (_IO_fwrite): Likewise.
9566         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9567         * libio/iogets.c (_IO_gets): Likewise.
9568         * libio/iopadn.c (_IO_padn): Likewise.
9569         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9570         (_IO_new_popen): Likewise.
9571         (_IO_new_proc_close): Likewise.
9572         * libio/ioputs.c (_IO_puts): Likewise.
9573         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9574         (_IO_seekoff): Likewise.
9575         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9576         (_IO_seekpos): Likewise.
9577         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9578         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9579         * libio/ioungetc.c (_IO_ungetc): Likewise.
9580         * libio/ioungetwc.c (ungetwc): Likewise.
9581         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9582         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9583         * libio/iowpadn.c (_IO_wpadn): Likewise.
9584         * libio/libc_fatal.c (__libc_fatal): Likewise.
9585         * libio/memstream.c (__open_memstream): Likewise.
9586         (_IO_mem_sync): Likewise.
9587         (_IO_mem_finish): Likewise.
9588         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9589         (_IO_old_file_close_it): Likewise.
9590         (_IO_old_file_finish): Likewise.
9591         (_IO_old_file_fopen): Likewise.
9592         (_IO_old_file_attach): Likewise.
9593         (_IO_old_file_setbuf): Likewise.
9594         (_IO_old_do_write): Likewise.
9595         (old_do_write): Likewise.
9596         (_IO_old_file_underflow): Likewise.
9597         (_IO_old_file_overflow): Likewise.
9598         (_IO_old_file_sync): Likewise.
9599         (_IO_old_file_seekoff): Likewise.
9600         (_IO_old_file_write): Likewise.
9601         (_IO_old_file_xsputn): Likewise.
9602         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9603         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9604         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9605         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9606         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9607         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9608         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9609         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9610         (_IO_old_popen): Likewise.
9611         (_IO_old_proc_close): Likewise.
9612         * libio/oldpclose.c (__old_pclose): Likewise.
9613         * libio/pclose.c (__new_pclose): Likewise.
9614         * libio/peekc.c (_IO_peekc_locked): Likewise.
9615         * libio/putc.c (_IO_putc): Likewise.
9616         * libio/putc_u.c (putc_unlocked): Likewise.
9617         * libio/putchar.c (putchar): Likewise.
9618         * libio/putchar_u.c (putchar_unlocked): Likewise.
9619         * libio/putwc.c (putwc): Likewise.
9620         * libio/putwc_u.c (putwc_unlocked): Likewise.
9621         * libio/putwchar.c (putwchar): Likewise.
9622         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9623         * libio/rewind.c (rewind): Likewise.
9624         * libio/setbuf.c (setbuf): Likewise.
9625         * libio/setlinebuf.c (setlinebuf): Likewise.
9626         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9627         * libio/vscanf.c (_IO_vscanf): Likewise.
9628         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9629         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9630         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9631         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9632         (_IO_switch_to_main_wget_area): Likewise.
9633         (_IO_switch_to_wbackup_area): Likewise.
9634         (_IO_wsetb): Likewise.
9635         (_IO_wdefault_pbackfail): Likewise.
9636         (_IO_wdefault_finish): Likewise.
9637         (_IO_wdefault_uflow): Likewise.
9638         (__woverflow): Likewise.
9639         (__wuflow): Likewise.
9640         (__wunderflow): Likewise.
9641         (_IO_wdefault_xsputn): Likewise.
9642         (_IO_wdefault_xsgetn): Likewise.
9643         (_IO_wdoallocbuf): Likewise.
9644         (_IO_wdefault_doallocate): Likewise.
9645         (_IO_switch_to_wget_mode): Likewise.
9646         (_IO_free_wbackup_area): Likewise.
9647         (_IO_switch_to_wput_mode): Likewise.
9648         (_IO_sputbackwc): Likewise.
9649         (_IO_sungetwc): Likewise.
9650         (_IO_adjust_wcolumn): Likewise.
9651         (_IO_init_wmarker): Likewise.
9652         (_IO_wmarker_delta): Likewise.
9653         (_IO_seekwmark): Likewise.
9654         (_IO_unsave_wmarkers): Likewise.
9655         * libio/wmemstream.c (open_wmemstream): Likewise.
9656         (_IO_wmem_sync): Likewise.
9657         (_IO_wmem_finish): Likewise.
9658         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9659         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9660         * locale/programs/simple-hash.c (init_hash): Likewise.
9661         (delete_hash): Likewise.
9662         (insert_entry): Likewise.
9663         (set_entry): Likewise.
9664         (next_prime): Likewise.
9665         (is_prime): Likewise.
9666         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9667         (xmalloc): Likewise.
9668         (xrealloc): Likewise.
9669         * locale/programs/xstrdup.c (xstrdup): Likewise.
9670         * localedata/collate-test.c (xstrcoll): Likewise.
9671         * localedata/xfrm-test.c (xstrcmp): Likewise.
9672         * login/getlogin_r.c (__getlogin_r): Likewise.
9673         * login/getpt.c (__posix_openpt): Likewise.
9674         * login/login_tty.c (login_tty): Likewise.
9675         * login/setlogin.c (setlogin): Likewise.
9676         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9677         (mach_msg_destroy_port): Likewise.
9678         (mach_msg_destroy_memory): Likewise.
9679         * malloc/mcheck.c (flood): Likewise.
9680         * misc/acct.c (acct): Likewise.
9681         * misc/brk.c (__brk): Likewise.
9682         * misc/chflags.c (chflags): Likewise.
9683         * misc/chroot.c (chroot): Likewise.
9684         * misc/fchflags.c (fchflags): Likewise.
9685         * misc/fstab.c (getfsspec): Likewise.
9686         (getfsfile): Likewise.
9687         * misc/fsync.c (fsync): Likewise.
9688         * misc/ftruncate.c (__ftruncate): Likewise.
9689         * misc/ftruncate64.c (__ftruncate64): Likewise.
9690         * misc/getdomain.c (getdomainname): Likewise.
9691         (getdomainname): Likewise.
9692         * misc/gethostname.c (__gethostname): Likewise.
9693         * misc/getpass.c (getpass): Likewise.
9694         * misc/getttyent.c (skip): Likewise.
9695         (value): Likewise.
9696         * misc/gtty.c (gtty): Likewise.
9697         * misc/hsearch.c (hsearch): Likewise.
9698         (hcreate): Likewise.
9699         * misc/hsearch_r.c (__hcreate_r): Likewise.
9700         (__hdestroy_r): Likewise.
9701         * misc/ioctl.c (__ioctl): Likewise.
9702         * misc/mkdtemp.c (mkdtemp): Likewise.
9703         * misc/mkostemp.c (mkostemp): Likewise.
9704         * misc/mkostemp64.c (mkostemp64): Likewise.
9705         * misc/mkostemps.c (mkostemps): Likewise.
9706         * misc/mkostemps64.c (mkostemps64): Likewise.
9707         * misc/mkstemp.c (mkstemp): Likewise.
9708         * misc/mkstemp64.c (mkstemp64): Likewise.
9709         * misc/mkstemps.c (mkstemps): Likewise.
9710         * misc/mkstemps64.c (mkstemps64): Likewise.
9711         * misc/mktemp.c (__mktemp): Likewise.
9712         * misc/preadv.c (preadv): Likewise.
9713         * misc/preadv64.c (preadv64): Likewise.
9714         * misc/pwritev.c (pwritev): Likewise.
9715         * misc/pwritev64.c (pwritev64): Likewise.
9716         * misc/readv.c (__readv): Likewise.
9717         * misc/revoke.c (revoke): Likewise.
9718         * misc/setdomain.c (setdomainname): Likewise.
9719         * misc/setegid.c (setegid): Likewise.
9720         * misc/seteuid.c (seteuid): Likewise.
9721         * misc/sethostid.c (sethostid): Likewise.
9722         * misc/sethostname.c (sethostname): Likewise.
9723         * misc/setregid.c (__setregid): Likewise.
9724         * misc/setreuid.c (__setreuid): Likewise.
9725         * misc/sstk.c (sstk): Likewise.
9726         * misc/stty.c (stty): Likewise.
9727         * misc/syscall.c (syscall): Likewise.
9728         * misc/syslog.c (setlogmask): Likewise.
9729         * misc/truncate.c (__truncate): Likewise.
9730         * misc/truncate64.c (truncate64): Likewise.
9731         * misc/ualarm.c (ualarm): Likewise.
9732         * misc/usleep.c (usleep): Likewise.
9733         * misc/ustat.c (ustat): Likewise.
9734         * misc/writev.c (__writev): Likewise.
9735         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9736         * nptl/old_pthread_cond_broadcast.c
9737         (__pthread_cond_broadcast_2_0): Likewise.
9738         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9739         Likewise.
9740         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9741         Likewise.
9742         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9743         Likewise.
9744         * nptl/pt-raise.c (raise): Likewise.
9745         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9746         Likewise.
9747         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9748         * nptl/pthread_barrierattr_destroy.c
9749         (pthread_barrierattr_destroy): Likewise.
9750         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9751         Likewise.
9752         * nptl/pthread_barrierattr_setpshared.c
9753         (pthread_barrierattr_setpshared): Likewise.
9754         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9755         Likewise.
9756         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9757         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9758         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9759         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9760         Likewise.
9761         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9762         Likewise.
9763         * nptl/pthread_condattr_getpshared.c
9764         (pthread_condattr_getpshared): Likewise.
9765         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9766         Likewise.
9767         * nptl/pthread_condattr_setpshared.c
9768         (pthread_condattr_setpshared): Likewise.
9769         * nptl/pthread_detach.c (pthread_detach): Likewise.
9770         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9771         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9772         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9773         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9774         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9775         Likewise.
9776         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9777         Likewise.
9778         * nptl/pthread_mutex_getprioceiling.c
9779         (pthread_mutex_getprioceiling): Likewise.
9780         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9781         Likewise.
9782         * nptl/pthread_mutexattr_getprotocol.c
9783         (pthread_mutexattr_getprotocol): Likewise.
9784         * nptl/pthread_mutexattr_getpshared.c
9785         (pthread_mutexattr_getpshared): Likewise.
9786         * nptl/pthread_mutexattr_getrobust.c
9787         (pthread_mutexattr_getrobust): Likewise.
9788         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9789         Likewise.
9790         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9791         Likewise.
9792         * nptl/pthread_mutexattr_setprioceiling.c
9793         (pthread_mutexattr_setprioceiling): Likewise.
9794         * nptl/pthread_mutexattr_setprotocol.c
9795         (pthread_mutexattr_setprotocol): Likewise.
9796         * nptl/pthread_mutexattr_setpshared.c
9797         (pthread_mutexattr_setpshared): Likewise.
9798         * nptl/pthread_mutexattr_setrobust.c
9799         (pthread_mutexattr_setrobust): Likewise.
9800         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9801         Likewise.
9802         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9803         Likewise.
9804         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9805         Likewise.
9806         * nptl/pthread_rwlockattr_getkind_np.c
9807         (pthread_rwlockattr_getkind_np): Likewise.
9808         * nptl/pthread_rwlockattr_getpshared.c
9809         (pthread_rwlockattr_getpshared): Likewise.
9810         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9811         Likewise.
9812         * nptl/pthread_rwlockattr_setkind_np.c
9813         (pthread_rwlockattr_setkind_np): Likewise.
9814         * nptl/pthread_rwlockattr_setpshared.c
9815         (pthread_rwlockattr_setpshared): Likewise.
9816         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9817         Likewise.
9818         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9819         Likewise.
9820         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9821         Likewise.
9822         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9823         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9824         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9825         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9826         * nptl/sem_close.c (sem_close): Likewise.
9827         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9828         * nptl/sem_init.c (__old_sem_init): Likewise.
9829         * nptl/sigaction.c (__sigaction): Likewise.
9830         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9831         * posix/_exit.c (_exit): Likewise.
9832         * posix/alarm.c (alarm): Likewise.
9833         * posix/confstr.c (confstr): Likewise.
9834         * posix/fpathconf.c (__fpathconf): Likewise.
9835         * posix/getgroups.c (__getgroups): Likewise.
9836         * posix/getpgid.c (__getpgid): Likewise.
9837         * posix/group_member.c (__group_member): Likewise.
9838         * posix/pathconf.c (__pathconf): Likewise.
9839         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9840         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9841         * posix/setgid.c (__setgid): Likewise.
9842         * posix/setpgid.c (__setpgid): Likewise.
9843         * posix/setuid.c (__setuid): Likewise.
9844         * posix/sleep.c (__sleep): Likewise.
9845         * posix/sysconf.c (__sysconf): Likewise.
9846         * posix/times.c (__times): Likewise.
9847         * posix/uname.c (__uname): Likewise.
9848         * posix/waitid.c (__waitid): Likewise.
9849         * pwd/getpw.c (__getpw): Likewise.
9850         * resolv/base64.c (b64_pton): Likewise.
9851         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9852         * resolv/gethnamaddr.c (Dprintf): Likewise.
9853         (gethostbyname): Likewise.
9854         (gethostbyname2): Likewise.
9855         (gethostbyaddr): Likewise.
9856         (_sethtent): Likewise.
9857         (_gethtbyname): Likewise.
9858         (_gethtbyname2): Likewise.
9859         (_gethtbyaddr): Likewise.
9860         (map_v4v6_address): Likewise.
9861         (map_v4v6_hostent): Likewise.
9862         (addrsort): Likewise.
9863         (ht_sethostent): Likewise.
9864         (ht_gethostbyname): Likewise.
9865         (ht_gethostbyaddr): Likewise.
9866         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9867         (inet_net_ntop_ipv4): Likewise.
9868         * resolv/inet_neta.c (inet_neta): Likewise.
9869         * resolv/inet_ntop.c (inet_ntop): Likewise.
9870         (inet_ntop4): Likewise.
9871         (inet_ntop6): Likewise.
9872         * resolv/inet_pton.c (__inet_pton): Likewise.
9873         (inet_pton4): Likewise.
9874         (inet_pton6): Likewise.
9875         * resolv/res_debug.c (loc_aton): Likewise.
9876         (loc_ntoa): Likewise.
9877         * resource/getpriority.c (__getpriority): Likewise.
9878         * resource/getrusage.c (__getrusage): Likewise.
9879         * resource/nice.c (nice): Likewise.
9880         * resource/setpriority.c (__setpriority): Likewise.
9881         * resource/setrlimit64.c (setrlimit64): Likewise.
9882         * resource/vlimit.c (vlimit): Likewise.
9883         * resource/vtimes.c (vtimes): Likewise.
9884         * rt/aio_error.c (aio_error): Likewise.
9885         * rt/aio_return.c (aio_return): Likewise.
9886         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9887         * signal/kill.c (__kill): Likewise.
9888         * signal/killpg.c (killpg): Likewise.
9889         * signal/raise.c (raise): Likewise.
9890         * signal/sigaction.c (__sigaction): Likewise.
9891         * signal/sigaddset.c (sigaddset): Likewise.
9892         * signal/sigaltstack.c (sigaltstack): Likewise.
9893         * signal/sigandset.c (sigandset): Likewise.
9894         * signal/sigblock.c (__sigblock): Likewise.
9895         * signal/sigdelset.c (sigdelset): Likewise.
9896         * signal/sigempty.c (sigemptyset): Likewise.
9897         * signal/sigfillset.c (sigfillset): Likewise.
9898         * signal/sighold.c (sighold): Likewise.
9899         * signal/sigignore.c (sigignore): Likewise.
9900         * signal/sigintr.c (siginterrupt): Likewise.
9901         * signal/sigisempty.c (sigisemptyset): Likewise.
9902         * signal/sigismem.c (sigismember): Likewise.
9903         * signal/signal.c (signal): Likewise.
9904         * signal/sigorset.c (sigorset): Likewise.
9905         * signal/sigpause.c (__sigpause): Likewise.
9906         * signal/sigpending.c (sigpending): Likewise.
9907         * signal/sigprocmask.c (__sigprocmask): Likewise.
9908         * signal/sigrelse.c (sigrelse): Likewise.
9909         * signal/sigreturn.c (__sigreturn): Likewise.
9910         * signal/sigset.c (sigset): Likewise.
9911         * signal/sigsetmask.c (__sigsetmask): Likewise.
9912         * signal/sigstack.c (sigstack): Likewise.
9913         * signal/sigsuspend.c (__sigsuspend): Likewise.
9914         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9915         * signal/sysv_signal.c (__sysv_signal): Likewise.
9916         * socket/accept.c (accept): Likewise.
9917         * socket/accept4.c (__libc_accept4): Likewise.
9918         * socket/bind.c (__bind): Likewise.
9919         * socket/connect.c (__connect): Likewise.
9920         * socket/getpeername.c (getpeername): Likewise.
9921         * socket/getsockname.c (__getsockname): Likewise.
9922         * socket/getsockopt.c (getsockopt): Likewise.
9923         * socket/listen.c (__listen): Likewise.
9924         * socket/recv.c (__recv): Likewise.
9925         * socket/recvmsg.c (__recvmsg): Likewise.
9926         * socket/send.c (__send): Likewise.
9927         * socket/sendmsg.c (__sendmsg): Likewise.
9928         * socket/shutdown.c (shutdown): Likewise.
9929         * socket/sockatmark.c (sockatmark): Likewise.
9930         * socket/socket.c (__socket): Likewise.
9931         * stdio-common/ctermid.c (ctermid): Likewise.
9932         * stdio-common/cuserid.c (cuserid): Likewise.
9933         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9934         * stdio-common/remove.c (remove): Likewise.
9935         * stdio-common/rename.c (rename): Likewise.
9936         * stdio-common/renameat.c (renameat): Likewise.
9937         * stdio-common/tempname.c (__gen_tempname): Likewise.
9938         * stdio-common/xbug.c (InitBuffer): Likewise.
9939         (AppendToBuffer): Likewise.
9940         (ReadFile): Likewise.
9941         * stdlib/a64l.c (a64l): Likewise.
9942         * stdlib/drand48_r.c (drand48_r): Likewise.
9943         * stdlib/getcontext.c (getcontext): Likewise.
9944         * stdlib/getenv.c (getenv): Likewise.
9945         * stdlib/l64a.c (l64a): Likewise.
9946         * stdlib/llabs.c (llabs): Likewise.
9947         * stdlib/lldiv.c (lldiv): Likewise.
9948         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9949         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9950         * stdlib/putenv.c (putenv): Likewise.
9951         * stdlib/random.c (__srandom): Likewise.
9952         (__initstate): Likewise.
9953         (__setstate): Likewise.
9954         * stdlib/random_r.c (__srandom_r): Likewise.
9955         (__setstate_r): Likewise.
9956         (__random_r): Likewise.
9957         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9958         * stdlib/setcontext.c (setcontext): Likewise.
9959         * stdlib/setenv.c (setenv): Likewise.
9960         (unsetenv): Likewise.
9961         * stdlib/srand48.c (srand48): Likewise.
9962         * stdlib/srand48_r.c (__srand48_r): Likewise.
9963         * stdlib/swapcontext.c (swapcontext): Likewise.
9964         * stdlib/system.c (__libc_system): Likewise.
9965         * stdlib/tst-strtod.c (expand): Likewise.
9966         * stdlib/tst-strtol.c (expand): Likewise.
9967         * stdlib/tst-strtoll.c (expand): Likewise.
9968         * streams/fattach.c (fattach): Likewise.
9969         * streams/fdetach.c (fdetach): Likewise.
9970         * streams/getmsg.c (getmsg): Likewise.
9971         * streams/isastream.c (isastream): Likewise.
9972         * string/ffs.c (__ffs): Likewise.
9973         * string/ffsll.c (ffsll): Likewise.
9974         * string/memcmp.c (memcmp_common_alignment): Likewise.
9975         (memcmp_not_common_alignment): Likewise.
9976         (MEMCMP): Likewise.
9977         * string/memcpy.c (memcpy): Likewise.
9978         * string/memmove.c (MEMMOVE): Likewise.
9979         * string/memset.c (memset): Likewise.
9980         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9981         * string/strchrnul.c (STRCHRNUL): Likewise.
9982         * string/strerror.c (strerror): Likewise.
9983         * string/strndup.c (__strndup): Likewise.
9984         * string/strverscmp.c (__strverscmp): Likewise.
9985         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9986         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9987         (clnttcp_freeres): Likewise.
9988         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9989         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9990         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9991         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9992         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9993         (xdr_callhdr): Likewise.
9994         * sunrpc/rpcinfo.c (udpping): Likewise.
9995         (tcpping): Likewise.
9996         (pstatus): Likewise.
9997         (pmapdump): Likewise.
9998         (brdcst): Likewise.
9999         (deletereg): Likewise.
10000         (getprognum): Likewise.
10001         (getvers): Likewise.
10002         (get_inet_address): Likewise.
10003         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
10004         * sunrpc/svc_udp.c (svcudp_create): Likewise.
10005         (svcudp_stat): Likewise.
10006         (svcudp_recv): Likewise.
10007         (svcudp_reply): Likewise.
10008         (svcudp_getargs): Likewise.
10009         (svcudp_freeargs): Likewise.
10010         (svcudp_destroy): Likewise.
10011         * sunrpc/xdr.c (xdr_bytes): Likewise.
10012         (xdr_netobj): Likewise.
10013         (xdr_string): Likewise.
10014         (xdr_wrapstring): Likewise.
10015         * sunrpc/xdr_float.c (xdr_float): Likewise.
10016         (xdr_double): Likewise.
10017         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
10018         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
10019         * sysvipc/ftok.c (ftok): Likewise.
10020         * sysvipc/msgctl.c (msgctl): Likewise.
10021         * sysvipc/msgget.c (msgget): Likewise.
10022         * sysvipc/msgrcv.c (msgrcv): Likewise.
10023         * sysvipc/msgsnd.c (msgsnd): Likewise.
10024         * sysvipc/semget.c (semget): Likewise.
10025         * sysvipc/semop.c (semop): Likewise.
10026         * sysvipc/shmat.c (shmat): Likewise.
10027         * sysvipc/shmctl.c (shmctl): Likewise.
10028         * sysvipc/shmdt.c (shmdt): Likewise.
10029         * sysvipc/shmget.c (shmget): Likewise.
10030         * termios/cfmakeraw.c (cfmakeraw): Likewise.
10031         * termios/speed.c (cfgetospeed): Likewise.
10032         (cfgetispeed): Likewise.
10033         (cfsetospeed): Likewise.
10034         (cfsetispeed): Likewise.
10035         * termios/tcflow.c (tcflow): Likewise.
10036         * termios/tcflush.c (tcflush): Likewise.
10037         * termios/tcgetattr.c (__tcgetattr): Likewise.
10038         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
10039         * termios/tcgetsid.c (tcgetsid): Likewise.
10040         * termios/tcsendbrk.c (tcsendbreak): Likewise.
10041         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
10042         * time/adjtime.c (__adjtime): Likewise.
10043         * time/dysize.c (dysize): Likewise.
10044         * time/ftime.c (ftime): Likewise.
10045         * time/getitimer.c (__getitimer): Likewise.
10046         * time/gettimeofday.c (__gettimeofday): Likewise.
10047         * time/gmtime.c (__gmtime_r): Likewise.
10048         (gmtime): Likewise.
10049         * time/localtime.c (__localtime_r): Likewise.
10050         (localtime): Likewise.
10051         * time/offtime.c (__offtime): Likewise.
10052         * time/settimeofday.c (__settimeofday): Likewise.
10053         * time/stime.c (stime): Likewise.
10054         * time/strftime_l.c (tm_diff): Likewise.
10055         (iso_week_days): Likewise.
10056         * time/strptime.c (strptime): Likewise.
10057         * time/time.c (time): Likewise.
10058         * time/timespec_get.c (timespec_get): Likewise.
10059         * time/tzset.c (tzset_internal): Likewise.
10060         (compute_change): Likewise.
10061         (__tz_compute): Likewise.
10062         * wcsmbs/btowc.c (__btowc): Likewise.
10063         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
10064         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
10065         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
10066         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
10067         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
10068         * wcsmbs/wcscat.c (__wcscat): Likewise.
10069         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
10070         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
10071         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
10072         * wcsmbs/wcscspn.c (wcscspn): Likewise.
10073         * wcsmbs/wcsdup.c (wcsdup): Likewise.
10074         * wcsmbs/wcslen.c (__wcslen): Likewise.
10075         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
10076         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
10077         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
10078         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
10079         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
10080         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
10081         * wcsmbs/wcsspn.c (wcsspn): Likewise.
10082         * wcsmbs/wcsstr.c (wcsstr): Likewise.
10083         * wcsmbs/wcstok.c (wcstok): Likewise.
10084         * wcsmbs/wctob.c (wctob): Likewise.
10085         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
10086         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10087         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
10088         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
10089         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
10090         * wcsmbs/wmemset.c (__wmemset): Likewise.
10091         * wctype/wcfuncs.c (__towlower): Likewise.
10092         (__towupper): Likewise.
10093
10094         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
10095         (lll_unlock_elision): Add adapt_count parameter.
10096
10097 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10098
10099         * sysdeps/nptl/configure.ac: Do not give errors based on the
10100         results of top-level configure tests.
10101         * sysdeps/nptl/configure: Regenerated.
10102
10103         * configure.ac (libc_cv_Bgroup): Remove configure test.
10104         * configure: Regenerated.
10105         * config.make.in (have-Bgroup): Remove variable.
10106
10107         * configure.ac (sizeof_long_double): Remove configure test.
10108         * configure: Regenerated.
10109         * config.make.in (sizeof-long-double): Remove variable.
10110
10111         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
10112         * configure: Regenerated.
10113         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
10114         variable.
10115         (exceptions): Likewise.
10116         * sysdeps/arm/configure: Regenerated.
10117         * config.make.in (exceptions): Remove variable.
10118         * Makeconfig (uses-callbacks): Use -fexceptions instead of
10119         $(exceptions).
10120         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
10121         (CFLAGS-vdprintf_chk.c): Likewise.
10122         (CFLAGS-printf_chk.c): Likewise.
10123         (CFLAGS-fprintf_chk.c): Likewise.
10124         (CFLAGS-vprintf_chk.c): Likewise.
10125         (CFLAGS-vfprintf_chk.c): Likewise.
10126         (CFLAGS-gets_chk.c): Likewise.
10127         (CFLAGS-fgets_chk.c): Likewise.
10128         (CFLAGS-fgets_u_chk.c): Likewise.
10129         (CFLAGS-fread_chk.c): Likewise.
10130         (CFLAGS-fread_u_chk.c): Likewise.
10131         (CFLAGS-wprintf_chk.c): Likewise.
10132         (CFLAGS-fwprintf_chk.c): Likewise.
10133         (CFLAGS-vwprintf_chk.c): Likewise.
10134         (CFLAGS-vfwprintf_chk.c): Likewise.
10135         (CFLAGS-fgetws_chk.c): Likewise.
10136         (CFLAGS-fgetws_u_chk.c): Likewise.
10137         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10138         (CFLAGS-fputc.c): Likewise.
10139         (CFLAGS-fputwc.c): Likewise.
10140         (CFLAGS-freopen64.c): Likewise.
10141         (CFLAGS-freopen.c): Likewise.
10142         (CFLAGS-fseek.c): Likewise.
10143         (CFLAGS-fseeko64.c): Likewise.
10144         (CFLAGS-fseeko.c): Likewise.
10145         (CFLAGS-ftello64.c): Likewise.
10146         (CFLAGS-ftello.c): Likewise.
10147         (CFLAGS-fwide.c): Likewise.
10148         (CFLAGS-genops.c): Likewise.
10149         (CFLAGS-getc.c): Likewise.
10150         (CFLAGS-getchar.c): Likewise.
10151         (CFLAGS-getwc.c): Likewise.
10152         (CFLAGS-getwchar.c): Likewise.
10153         (CFLAGS-iofclose.c): Likewise.
10154         (CFLAGS-iofflush.c): Likewise.
10155         (CFLAGS-iofgetpos64.c): Likewise.
10156         (CFLAGS-iofgetpos.c): Likewise.
10157         (CFLAGS-iofgets.c): Likewise.
10158         (CFLAGS-iofgetws.c): Likewise.
10159         (CFLAGS-iofputs.c): Likewise.
10160         (CFLAGS-iofputws.c): Likewise.
10161         (CFLAGS-iofread.c): Likewise.
10162         (CFLAGS-iofsetpos64.c): Likewise.
10163         (CFLAGS-iofsetpos.c): Likewise.
10164         (CFLAGS-ioftell.c): Likewise.
10165         (CFLAGS-iofwrite.c): Likewise.
10166         (CFLAGS-iogetdelim.c): Likewise.
10167         (CFLAGS-iogetline.c): Likewise.
10168         (CFLAGS-iogets.c): Likewise.
10169         (CFLAGS-iogetwline.c): Likewise.
10170         (CFLAGS-ioputs.c): Likewise.
10171         (CFLAGS-ioseekoff.c): Likewise.
10172         (CFLAGS-ioseekpos.c): Likewise.
10173         (CFLAGS-iosetbuffer.c): Likewise.
10174         (CFLAGS-iosetvbuf.c): Likewise.
10175         (CFLAGS-ioungetc.c): Likewise.
10176         (CFLAGS-ioungetwc.c): Likewise.
10177         (CFLAGS-oldfileops.c): Likewise.
10178         (CFLAGS-oldiofclose.c): Likewise.
10179         (CFLAGS-oldiofgetpos64.c): Likewise.
10180         (CFLAGS-oldiofgetpos.c): Likewise.
10181         (CFLAGS-oldiofsetpos64.c): Likewise.
10182         (CFLAGS-oldiofsetpos.c): Likewise.
10183         (CFLAGS-peekc.c): Likewise.
10184         (CFLAGS-putc.c): Likewise.
10185         (CFLAGS-putchar.c): Likewise.
10186         (CFLAGS-putwc.c): Likewise.
10187         (CFLAGS-putwchar.c): Likewise.
10188         (CFLAGS-rewind.c): Likewise.
10189         (CFLAGS-wfileops.c): Likewise.
10190         (CFLAGS-wgenops.c): Likewise.
10191         (CFLAGS-oldiofopen.c): Likewise.
10192         (CFLAGS-iofopen.c): Likewise.
10193         (CFLAGS-iofopen64.c): Likewise.
10194         (CFLAGS-oldtmpfile.c): Likewise.
10195         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10196         (CFLAGS-fprintf.c): Likewise.
10197         (CFLAGS-printf.c): Likewise.
10198         (CFLAGS-vfwprintf.c): Likewise.
10199         (CFLAGS-vfscanf.c): Likewise.
10200         (CFLAGS-vfwscanf.c): Likewise.
10201         (CFLAGS-fscanf.c): Likewise.
10202         (CFLAGS-scanf.c): Likewise.
10203         (CFLAGS-isoc99_vfscanf.c): Likewise.
10204         (CFLAGS-isoc99_vscanf.c): Likewise.
10205         (CFLAGS-isoc99_fscanf.c): Likewise.
10206         (CFLAGS-isoc99_scanf.c): Likewise.
10207         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10208         (CFLAGS-isoc99_fwscanf.c): Likewise.
10209         (CFLAGS-isoc99_vwscanf.c): Likewise.
10210         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10211
10212         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10213         after mkstemp64.
10214         * login/tst-utmp.c (do_prepare): Likewise.
10215         * rt/tst-aio.c (do_prepare): Likewise.
10216         * rt/tst-aio64.c (do_prepare): Likewise.
10217
10218 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10219
10220         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10221         (__lll_lock_elision): Remove adapt_count decrement...
10222         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10223         (__lll_trylock_elision): Likewise.
10224         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10225         (__lll_unlock_elision): ... to here. And utilize
10226         new adapt_count parameter.
10227         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10228         (__lll_unlock_elision): Update to include adapt_count
10229         parameter.
10230         (lll_unlock_elision): Pass pointer to adapt_count
10231         variable.
10232
10233 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10234
10235         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10236         Add elision adapt_count parameter to list of arguments.
10237         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10238         (lll_unlock_elision): Update with new parameter list
10239         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10240         (lll_unlock_elision): Likewise.
10241         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10242         (lll_unlock_elision): Likewise.
10243
10244 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10245
10246         [BZ #19122]
10247         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10248         attribute_hidden.
10249
10250         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10251         attribute_hidden.
10252         [IS_IN (rtld)] (__strdup): Likewise.
10253         [IS_IN (rtld)] (__strerror_r): Likewise.
10254         [IS_IN (rtld)] (__strsep_g): Likewise.
10255         [IS_IN (rtld)] (memchr): Likewise.
10256         [IS_IN (rtld)] (memcmp): Likewise.
10257         [IS_IN (rtld)] (memcpy): Likewise.
10258         [IS_IN (rtld)] (memmove): Likewise.
10259         [IS_IN (rtld)] (memset): Likewise.
10260         [IS_IN (rtld)] (rawmemchr): Likewise.
10261         [IS_IN (rtld)] (stpcpy): Likewise.
10262         [IS_IN (rtld)] (strchr): Likewise.
10263         [IS_IN (rtld)] (strcmp): Likewise.
10264         [IS_IN (rtld)] (strlen): Likewise.
10265         [IS_IN (rtld)] (strnlen): Likewise.
10266         [IS_IN (rtld)] (strsep): Likewise.
10267
10268         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10269         attribute_hidden.
10270         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10271
10272         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10273         attribute_hidden.
10274         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10275
10276         * include/setjmp.h (__longjmp): Add attribute_hidden.
10277         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10278
10279         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10280         Add attribute_hidden.
10281
10282         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10283         [IS_IN (rtld)] (__open): Likewise.
10284         [IS_IN (rtld)] (__fcntl): Likewise.
10285
10286         * include/dirent.h (__opendirat): Add attribute_hidden.
10287         (__getdents): Likewise.
10288         (__getdents64): Likewise.
10289         (__alloc_dir): Likewise.
10290         [IS_IN (rtld)] (__closedir): Likewise.
10291         [IS_IN (rtld)] (__fdopendir): Likewise.
10292         [IS_IN (rtld)] (__readdir): Likewise.
10293         [IS_IN (rtld)] (__readdir64): Likewise.
10294         [IS_IN (rtld)] (__rewinddir): Likewise.
10295
10296         * include/dlfcn.h (_dl_catch_error): Moved to ...
10297         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10298         attribute_hidden.
10299
10300         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10301         (_itoa_word): Likewise.
10302
10303         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10304         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10305         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10306         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10307         (_dl_higher_prime_number): Likewise.
10308         (_dl_debug_printf_c): Likewise.
10309         (_dl_signal_cerror): Likewise.
10310         (_dl_receive_error): Likewise.
10311         (_dl_reloc_bad_type): Likewise.
10312         (_dl_resolve_conflicts): Likewise.
10313         (_dl_check_all_versions): Likewise.
10314         (_dl_check_map_versions): Likewise.
10315         (_dl_sort_fini): Likewise.
10316         (_dl_debug_initialize): Likewise.
10317         (_dl_init_paths): Likewise.
10318         (_dl_show_auxv): Likewise.
10319         (_dl_next_ld_env_entry): Likewise.
10320         (_dl_important_hwcaps): Likewise.
10321         (_dl_load_cache_lookup): Likewise.
10322         (_dl_update_slotinfo): Likewise.
10323         (_dl_show_scope): Likewise.
10324
10325         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10326         attribute_hidden.
10327         (_wordcopy_fwd_dest_aligned): Likewise.
10328         (_wordcopy_bwd_aligned): Likewise.
10329         (_wordcopy_bwd_dest_aligned): Likewise.
10330
10331         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10332         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10333         Likewise.
10334         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10335         Likewise.
10336         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10337
10338 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10339
10340         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10341         GCC 5 requirement.
10342
10343 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10344
10345         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10346         test.
10347         * sysdeps/i386/configure: Regenerated.
10348         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10349         code unconditional.
10350
10351         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10352         test.
10353         (libc_cv_asm_popsection_directive): Likewise.
10354         * configure: Regenerated.
10355         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10356         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10357         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10358         (__make_section_unallocated): Make definition unconditional.
10359         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10360         Remove conditional definition.
10361         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10362         (__make_section_unallocated): Likewise.
10363
10364         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10365         * configure: Regenerated.
10366         * config.make.in (static-libgcc): Remove variable.
10367         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10368         $(static-libgcc).
10369         (build-module-helper): Likewise.
10370
10371         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10372         * configure: Regenerated.
10373
10374 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10375
10376         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10377         (struct char_buffer): New type.
10378         (char_buffer_start, char_buffer_size, char_buffer_error)
10379         (char_buffer_rewind, char_buffer_add): New functions.
10380         (ADDW): Remove macro, replaced by the char_buffer_add function.
10381         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10382         of extend_alloca.  Make control flow more explicit.
10383
10384 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10385
10386         [BZ #19137]
10387         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10388         Add -fomit-frame-pointer.
10389         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10390
10391 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10392
10393         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10394         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10395         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10396         only if !__GNUC_PREREQ (5,0).
10397         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10398         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10399         (INTERNAL_SYSCALL_NCS): Likewise.
10400         (LOADREGS_0): New macro for GCC 5.
10401         (ASMARGS_0): Likewise.
10402         (LOADREGS_1): Likewise.
10403         (ASMARGS_1): Likewise.
10404         (LOADREGS_2): Likewise.
10405         (ASMARGS_2): Likewise.
10406         (LOADREGS_3): Likewise.
10407         (ASMARGS_3): Likewise.
10408         (LOADREGS_4): Likewise.
10409         (ASMARGS_4): Likewise.
10410         (LOADREGS_5): Likewise.
10411         (ASMARGS_5): Likewise.
10412         (LOADREGS_6): Likewise.
10413         (ASMARGS_6): Likewise.
10414
10415 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10416
10417         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10418         -fomit-frame-pointer.
10419         (CFLAGS-mmap64.c): Likewise.
10420         (CFLAGS-semtimedop.c): Likewise.
10421         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10422         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10423         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10424         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10425
10426 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10427
10428         [BZ #18928]
10429         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10430         _dl_pointer_guard member.
10431         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10432         initializer.
10433         (security_init): Always set up pointer guard.
10434         (process_envvars): Do not process LD_POINTER_GUARD.
10435
10436 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10437
10438         [BZ #19134]
10439         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10440         (.LC2): Likewise.
10441         (.LC3): Likewise.
10442         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10443
10444 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10445
10446         [BZ #19129]
10447         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10448         r0 and r1.
10449
10450 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10451
10452         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10453
10454 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10455
10456         * include/stap-probe.h: Fix macro definition formatting.
10457
10458 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10459
10460         [BZ #19074]
10461         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10462         load and store num_ifs.
10463
10464 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10465
10466         [BZ #18822]
10467         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10468         (__sched_getaffinity_new): Add libc_hidden_proto and
10469         libc_hidden_def.
10470
10471 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10472
10473         [BZ #19007]
10474         * scripts/localplt.awk: Also allow GOT references.
10475         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10476         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10477         with "+ REL R_386_GLOB_DAT".
10478         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10479         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10480
10481 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10482
10483         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10484         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10485         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10486         Likewise.
10487         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10488         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10489         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10490         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10491         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10492         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10493         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10494         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10495         Likewise.
10496         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10497
10498 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10499
10500         [BZ #19125]
10501         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10502         <math_private.h> and <stdint.h>.
10503         (__llround): Avoid conversions to and from long long int, and
10504         subtractions, where those might raise spurious exceptions.
10505         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10506         <math_private.h> and <stdint.h>.
10507         (__llroundf): Avoid conversions to and from long long int, and
10508         subtractions, where those might raise spurious exceptions.
10509
10510 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10511
10512         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10513         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10514         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10515         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10516         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10517         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10518         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10519         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10520         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10521         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10522         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10523         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10524         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10525         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10526         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10527         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10528         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10529         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10530         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10531         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10532         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10533         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10534         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10535         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10536         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10537         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10538         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10539         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10540         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10541         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10542         (__xstat64_conv): Likewise.
10543         (__xstat32_conv): Likewise.
10544
10545 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10546
10547         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10548         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10549         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10550         <sysdeps/unix/sysv/linux/sysdep.h>.
10551         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10552         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10553         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10554         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10555         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10556         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10557         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10558         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10559         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10562         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10563         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10564         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10565         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10566         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10567         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10568         (sysdep-dl-routines): Add sysdep.
10569         [$(subdir) == nptl] (libpthread-routines): Likewise.
10570         [$(subdir) == rt] (librt-routines): Likewise.
10571         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10572         PIC when branching to SYSCALL_ERROR_LABEL.
10573         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10574         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10575         <sysdeps/unix/sysv/linux/sysdep.h>.
10576         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10577         (SYSCALL_ERROR_ERRNO): Removed.
10578         (SYSCALL_ERROR_HANDLER): Changed to empty.
10579         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10580         (__syscall_error): New prototype.
10581         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10582         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10583
10584 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10585
10586         [BZ #19124]
10587         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10588         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10589         _dl_runtime_resolve_avx.
10590         (_dl_runtime_profile_avx512): Make it a hidden alias of
10591         _dl_runtime_profile_avx.
10592
10593 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10594
10595         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10596         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10597         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10598         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10599
10600         [BZ #16422]
10601         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10602         New configure test.
10603         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10604         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10605         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10606         <math_private.h> and <stdint.h>.
10607         (__llrint): Avoid conversions to long long int where those might
10608         raise spurious exceptions.
10609         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10610         <math_private.h> and <stdint.h>.
10611         (__llrintf): Avoid conversions to long long int where those might
10612         raise spurious exceptions.
10613
10614 2015-10-12  Andreas Schwab  <schwab@suse.de>
10615
10616         [BZ #18969]
10617         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10618         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10619         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10620         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10621         $(gen-locales).
10622         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10623         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10624         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10625         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10626         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10627         $(gen-locales).
10628         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10629         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10630         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10631         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10632         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10633         ($(objpfx)tst-ftell-active-handler.out)
10634         ($(objpfx)tst-ftell-append.out)
10635         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10636         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10637         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10638         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10639         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10640         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10641         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10642         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10643         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10644         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10645         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10646         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10647         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10648         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10649         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10650         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10651         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10652         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10653         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10654         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10655         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10656         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10657         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10658         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10659         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10660         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10661         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10662         $(gen-locales).
10663         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10664         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10665         $(gen-locales).
10666         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10667         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10668         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10669         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10670         $(gen-locales).
10671         * libio/tst_wprintf2.c (main): Use explicit locale.
10672         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10673
10674 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10675
10676         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10677         __msg_sig_post.
10678         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10679
10680 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10681
10682         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10683         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10684
10685         * sysdeps/arm/libm-test-ulps: Regenerated.
10686
10687         [BZ #15470]
10688         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10689
10690         [BZ #16399]
10691         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10692         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10693         and <fix-fp-int-convert-overflow.h>.
10694         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10695         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10696         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10697         and <fix-fp-int-convert-overflow.h>.
10698         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10699         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10700         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10701         <fix-fp-int-convert-overflow.h>.
10702         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10703         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10704         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10705         <fix-fp-int-convert-overflow.h>.
10706         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10707         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10708         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10709         and <fix-fp-int-convert-overflow.h>.
10710         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10711         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10712         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10713         <limits.h> and <fix-fp-int-convert-overflow.h>.
10714         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10715         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10716         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10717         and <fix-fp-int-convert-overflow.h>.
10718         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10719         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10720         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10721         and <fix-fp-int-convert-overflow.h>.
10722         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10723         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10724         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10725
10726 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10727
10728         [BZ #18589]
10729         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10730         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10731         $(gen-locales).
10732
10733 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10734             Phil Blundell <pb@pbcl.net>
10735
10736         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10737         * nptl/tst-cancel26.c: New file.
10738         * nptl/tst-cancel27.c: Likewise.
10739
10740 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10741
10742         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10743         __ILP32__ isn't defined.
10744         (lrint): Likewise.
10745         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10746         (lrintf): Likewise.
10747         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10748         (lrintl): Likewise.
10749         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10750         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10751         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10752
10753 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10754
10755         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10756         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10757
10758         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10759         file.
10760         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10761         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10762
10763 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10764
10765         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10766         configure test.
10767         * sysdeps/i386/configure: Regenerated.
10768         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10769         configure test.
10770         * sysdeps/x86_64/configure: Regenerated.
10771         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10772         Make code unconditional.
10773
10774         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10775         test.
10776         * sysdeps/i386/configure: Regenerated.
10777         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10778         test.
10779         * sysdeps/x86_64/configure: Regenerated.
10780         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10781         Make code unconditional.
10782         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10783         Likewise.
10784         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10785         Likewise.
10786         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10787         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10788         code unconditional.
10789         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10790         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10791         code unconditional.
10792         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10793         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10794         code unconditional.
10795         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10796         code unconditional.
10797         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10798         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10799         code unconditional.
10800         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10801         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10802         code unconditional.
10803         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10804         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10805         code unconditional.
10806         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10807         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10808         code unconditional.
10809         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10810         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10811
10812         [BZ #19095]
10813         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10814         mantissa to long int before shifting left.
10815
10816 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10817
10818         [BZ #19094]
10819         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10820         <limits.h>.
10821         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10822         when result overflows but exception would not result from cast.
10823         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10824         <limits.h>.
10825         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10826         when result overflows but exception would not result from cast.
10827         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10828         <limits.h>.
10829         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10830         when result overflows but exception would not result from cast.
10831         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10832         <limits.h>.
10833         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10834         when result overflows but exception would not result from cast.
10835         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10836         <limits.h>.
10837         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10838         when result overflows but exception would not result from cast.
10839         * math/libm-test.inc (lrint_test_data): Add more tests.
10840         (llrint_test_data): Likewise.
10841
10842 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10843
10844         [BZ #18872]
10845         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10846         Move out from under [$(run-built-tests) = yes] conditional.
10847         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10848         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10849
10850 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10851
10852         [BZ #18589]
10853         * string/Makefile (tests): Add bug-strcoll2.
10854         (LOCALES): Add cs_CZ.UTF-8.
10855         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10856
10857         [BZ #18589]
10858         * string/bug-strcoll2.c: New file.
10859         * locale/categories.def: Revert commit
10860         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10861         * locale/langinfo.h: Likewise.
10862         * locale/localeinfo.h: Likewise.
10863         * locale/C-collate.c: Likewise.
10864         * locale/programs/ld-collate.c (collate_output): Likewise.
10865         * string/strcoll_l.c (STRDIFF): Likewise.
10866         (STRCOLL): Likewise.
10867         * wcsmbs/wcscoll_l.c: Likewise.
10868
10869 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10870
10871         * math/libm-test.inc (lround_test_data): Do not expect the absence
10872         of "inexact" for some tests with non-integer arguments.
10873         (llround_test_data): Likewise.
10874
10875         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10876         test.
10877         (libc_cv_cc_sse2avx): Likewise.
10878         * sysdeps/i386/configure: Regenerated.
10879         * sysdeps/i386/i686/multiarch/Makefile
10880         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10881         [$(subdir) = math].
10882         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10883         code unconditional.
10884         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10885         Likewise.
10886         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10887         Likewise.
10888         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10889         Likewise.
10890         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10891         test.
10892         (libc_cv_cc_sse2avx): Likewise.
10893         * sysdeps/x86_64/configure: Regenerated.
10894         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10895         unconditional.
10896         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10897         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10898         unconditional.
10899         (_dl_runtime_profile)
10900         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10901         conditional code.
10902         * sysdeps/x86_64/fpu/multiarch/Makefile
10903         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10904         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10905         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10906         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10907         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10908         * sysdeps/x86_64/fpu/multiarch/e_log.c
10909         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10910         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10911         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10912         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10913         Likewise.
10914         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10915         Likewise.
10916         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10917         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10918         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10919         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10920         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10921         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10922         (HAVE_SSE2AVX_SUPPORT): Likewise.
10923
10924 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10925
10926         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10927         instead of #pragma optimize.
10928
10929 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10930
10931         [BZ #17195]
10932         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10933         as is similarly done in systrim and _int_free already.
10934
10935 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10936
10937         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10938
10939 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10940
10941         [BZ #19088]
10942         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10943         <limits.h>.
10944         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10945         overflows but exception would not result from cast.
10946         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10947         and <limits.h>.
10948         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10949         overflows but exception would not result from cast.
10950         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10951         <limits.h>.
10952         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10953         overflows but exception would not result from cast.
10954         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10955         <limits.h>.
10956         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10957         overflows but exception would not result from cast.
10958         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10959         <limits.h>.
10960         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10961         overflows but exception would not result from cast.
10962         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10963         <limits.h>.
10964         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10965         overflows but exception would not result from cast.
10966         * math/libm-test.inc (lround_test_data): Add more tests.
10967         (llround_test_data): Likewise.
10968
10969 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10970
10971         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10972         (CFLAGS-ialloc.c): Ditto.
10973         (CFLAGS-scheck.c): Ditto.
10974
10975 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10976
10977         [BZ #19086]
10978         * manual/filesys.texi (Storage Allocation): Fix argument order for
10979         posix_fallocate64.
10980
10981 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10982
10983         [BZ #19085]
10984         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10985         exponent below 48 inside case for non-overflowing exponent.
10986         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10987
10988 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10989
10990         * iconvdata/cp737.h (from_idx): Add const.
10991         * iconvdata/cp775.h (from_idx): Likewise.
10992
10993 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10994
10995         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10996         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10997         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10998
10999         [BZ #19079]
11000         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
11001         file, conditioned on [!_LP64].
11002         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
11003         [!_LP64] (__lround): Do not define as function or alias.
11004         [!_LP64] (lround): Likewise.
11005         [!_LP64] (__lroundl): Likewise.
11006         [!_LP64] (lroundl): Likewise.
11007         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
11008         macro.
11009         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
11010         Likewise.
11011
11012 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11013
11014         * math/libm-test.inc (lrint_test_data): Add more tests.
11015         (llrint_test_data): Likewise.
11016         (lround_test_data): Likewise.
11017         (llround_test_data): Likewise.
11018
11019         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
11020         (llrint_test_data): Add tests used for lrint.
11021
11022         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
11023         test.
11024         * sysdeps/i386/configure: Regenerated.
11025         * sysdeps/i386/i686/multiarch/Makefile
11026         [$(config-cflags-sse4) = yes]: Make code unconditional.
11027         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11028         Likewise.
11029         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
11030         Likewise.
11031         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
11032         test.
11033         * sysdeps/x86_64/configure: Regenerated.
11034         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
11035         Make code unconditional.
11036         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11037         Likewise.
11038         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
11039         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
11040
11041         * scripts/rpm2dynsym.sh: Remove file.
11042
11043 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11044
11045         * configure.ac (libc_cv_cxx_thread_local): Define.
11046         * configure: Regenerate.
11047         * config.make.in (have-cxx-thread_local): Define.
11048         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
11049         (LDLIBS-tst-thread_local1): Define.
11050         (tests): Add tst-thread_local1.
11051         [have-cxx-thread_local != yes] (tests-unsupported): Add
11052         tst-thread_local1.
11053         * nptl/tst-thread_local1.cc: New file.
11054
11055 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11056
11057         [BZ #19078]
11058         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
11059         (u_thres): Likewise.
11060         (__expl): Determine whether to call __kernel_standard_l based on
11061         value of result, not argument.
11062
11063         * math/libm-test.inc (scalb_test_data): Add more expectations for
11064         the "inexact" exception.
11065
11066         [BZ #19077]
11067         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
11068         0.0L for argument 1.0L.
11069
11070         [BZ #19076]
11071         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
11072         constant 0.0L when computing infinite result.
11073
11074 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11075
11076         [BZ #10432]
11077         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
11078         malloc_usable_size.
11079
11080 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11081
11082         [BZ #19018]
11083         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
11084         Mangle function pointer before storing it.
11085         (__call_tls_dtors): Demangle function pointer before calling it.
11086
11087 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11088
11089         [BZ #19012]
11090         * iconv/gconv_db.c (gen_steps): Check for additional errors.
11091         Clean up on failure.
11092
11093 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
11094
11095         [BZ #19071]
11096         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
11097         long int variable to store possibly incremented high part of
11098         mantissa.
11099         * math/libm-test.inc (lround_test_data): Add tests used for
11100         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
11101         for tests requiring 64-bit long.  Do not condition tests on
11102         [TEST_FLOAT] unnecessarily.
11103         (llround_test_data): Add tests used for lround.  Add another
11104         expectation for the "inexact" exception.  Do not condition tests
11105         on [TEST_FLOAT] unnecessarily.
11106
11107         [BZ #887]
11108         [BZ #19049]
11109         [BZ #19050]
11110         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
11111         * sysdeps/ieee754/dbl-64/e_log10.c: Include
11112         <fix-int-fp-convert-zero.h>.
11113         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11114         * sysdeps/ieee754/dbl-64/e_log2.c: Include
11115         <fix-int-fp-convert-zero.h>.
11116         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11117         * sysdeps/ieee754/dbl-64/s_erf.c: Include
11118         <fix-int-fp-convert-zero.h>.
11119         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11120         * sysdeps/ieee754/dbl-64/s_logb.c: Include
11121         <fix-int-fp-convert-zero.h>.
11122         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11123         * sysdeps/ieee754/flt-32/e_log10f.c: Include
11124         <fix-int-fp-convert-zero.h>.
11125         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11126         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11127         <fix-int-fp-convert-zero.h>.
11128         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11129         * sysdeps/ieee754/flt-32/s_erff.c: Include
11130         <fix-int-fp-convert-zero.h>.
11131         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11132         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11133         <fix-int-fp-convert-zero.h>.
11134         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11135         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11136         <fix-int-fp-convert-zero.h>.
11137         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11138         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11139         <fix-int-fp-convert-zero.h>.
11140         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11141         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11142         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11143         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11144         file.
11145         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11146
11147 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11148
11149         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11150
11151 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11152
11153         [BZ #19059]
11154         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11155         overflowing computation.
11156         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11157         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11158         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11159         Likewise.
11160         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11161         Likewise.
11162         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11163         Likewise.
11164         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11165         Likewise.
11166         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11167         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11168         Likewise.
11169         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11170         Likewise.
11171         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11172
11173         * nss/rewrite_field.c (__nss_rewrite_field): Use
11174         internal_function.
11175         * nss/valid_field.c (__nss_valid_field): Likewise.
11176         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11177
11178 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11179
11180         [BZ #18724]
11181         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11182         (__nss_invalid_field_characters, __nss_valid_field)
11183         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11184         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11185         tst-field.c: New file.
11186         * nss/Makefile (routines): Add valid_field, rewrite_field.
11187         (tests-static): Define unconditionally.
11188         (tests): Include tests-static.
11189         [build-static-nss] (tests-static): Use append.
11190         [build-static-nss] (tests): Remove modification.
11191         * nss/getent.c (print_group): Call putgrent.  Report error.
11192         (print_gshadow): Call putsgent.  Report error.
11193         (print_passwd): Call putpwent.  Report error.
11194         (print_shadow): Call putspent.  Report error.
11195         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11196         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11197         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11198         name, password, directory, shell fields for valid syntax.  Rewrite
11199         GECOS field to match syntax.
11200         * pwd/Makefile (tests): Add tst-putpwent.
11201         * pwd/tst-putpwent.c: New file.
11202         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11203         Check grName, grpasswd, gr_mem fields for valid syntax.
11204         Change loop variable i to size_t.
11205         * grp/Makefile (tests): Add tst-putgrent.
11206         * grp/tst-putgrent.c: New file.
11207         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11208         valid syntax.
11209         * shadow/Makefile (tests): Add tst-putspent.
11210         * shadow/tst-putspent.c: New file.
11211         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11212         sg_mem fields for valid syntax.
11213         * gshadow/Makefile (tests): Add tst-putsgent.
11214         * gshadow/tst-putsgent.c: New file.
11215
11216 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11217
11218         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11219         assembly instructions.
11220
11221 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11222
11223         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11224         prefix from operands.
11225
11226 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11227
11228         [BZ #16347]
11229         [BZ #19046]
11230         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11231         <libc-internal.h>.
11232         (MAXLGM): Do not use diagnostic control macros.
11233         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11234         threshold for ldbl-128ibm.
11235         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11236         instead of multiplying by log then subtracting.
11237         * math/auto-libm-test-in: Add more tests of lgamma.
11238         * math/auto-libm-test-out: Regenerated.
11239
11240         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11241         (TYPE_HEX_DIG): Likewise.
11242         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11243         precisions when printing floating-point numbers.
11244         (check_float_internal): Likewise.
11245
11246 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11247
11248         [BZ #16620]
11249         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11250         of log (10) rounded downward to 48 bits.
11251         (log10_low): Use corresponding low part of log (10).
11252
11253         [BZ #19032]
11254         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11255         compute result as (x - x) / (x - x) not as 0 / 0.
11256         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11257         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11258
11259         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11260         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11261         and expm1.
11262         * math/auto-libm-test-out: Regenerated.
11263         * math/libm-test.inc (acos_test_data): Add more tests.
11264         (asin_test_data): Likewise.
11265         (asinh_test_data): Likewise.
11266         (atan_test_data): Likewise.
11267         (atanh_test_data): Likewise.
11268         (atan2_test_data): Likewise.
11269         (cbrt_test_data): Likewise.
11270         (ceil_test_data): Likewise.
11271         (copysign_test_data): Likewise.
11272         (cos_test_data): Likewise.
11273         (cosh_test_data): Likewise.
11274         (erf_test_data): Likewise.
11275         (erfc_test_data): Likewise.
11276         (exp_test_data): Likewise.
11277         (exp10_test_data): Likewise.
11278         (exp2_test_data): Likewise.
11279         (expm1_test_data): Likewise.
11280         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11281
11282 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11283
11284         [BZ #19006]
11285         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11286         to ...
11287         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11288         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11289         to ...
11290         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11291         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11292         to ...
11293         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11294         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11295         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11296         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11297         to ...
11298         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11299         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11300         Moved to ...
11301         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11302         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11303         Moved to ...
11304         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11305         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11306         to ...
11307         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11308         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11309         Moved to ...
11310         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11311         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11312         to ...
11313         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11314         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11315         Removed.
11316         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11317         Likewise.
11318         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11319         Likewise.
11320         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11321         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11322         Likewise.
11323         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11324         Likewise.
11325         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11326         Likewise.
11327         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11328         Likewise.
11329         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11330         Likewise.
11331         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11332         Likewise.
11333         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11334         Likewise.
11335         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11336         Likewise.
11337         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11338         Likewise.
11339         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11340         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11341         Likewise.
11342         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11343         Likewise.
11344         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11345         Likewise.
11346         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11347         Likewise.
11348         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11349         Likewise.
11350         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11351         Replace ../i486/pthread_cond_timedwait.S with
11352         ../pthread_cond_timedwait.S.
11353
11354 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11355
11356         * math/libm-test.inc (acos_test_data): Refine expectations for
11357         errno and "inexact" exceptions.
11358         (acosh_test_data): Likewise.
11359         (asin_test_data): Likewise.
11360         (asinh_test_data): Likewise.
11361         (atan_test_data): Likewise.
11362         (atanh_test_data): Likewise.
11363         (atan2_test_data): Likewise.
11364         (cbrt_test_data): Likewise.
11365         (ceil_test_data): Likewise.
11366         (copysign_test_data): Likewise.
11367         (cosh_test_data): Likewise.
11368         (erf_test_data): Likewise.
11369         (erfc_test_data): Likewise.
11370         (exp_test_data): Likewise.
11371         (exp10_test_data): Likewise.
11372         (exp2_test_data): Likewise.
11373         (expm1_test_data): Likewise.
11374         (fabs_test_data): Likewise.
11375         (floor_test_data): Likewise.
11376         (fma_test_data): Likewise.
11377         (fmax_test_data): Likewise.
11378         (fmin_test_data): Likewise.
11379         (fmod_test_data): Likewise.
11380         (fpclassify_test_data): Likewise.
11381         (frexp_test_data): Likewise.
11382         (hypot_test_data): Likewise.
11383         (ilogb_test_data): Likewise.
11384         (isgreater_test_data): Likewise.
11385         (isgreaterequal_test_data): Likewise.
11386         (isinf_test_data): Likewise.
11387         (isless_test_data): Likewise.
11388         (islessequal_test_data): Likewise.
11389         (islessgreater_test_data): Likewise.
11390         (isnan_test_data): Likewise.
11391         (isnormal_test_data): Likewise.
11392         (issignaling_test_data): Likewise.
11393         (isunordered_test_data): Likewise.
11394         (j0_test_data): Likewise.
11395         (j1_test_data): Likewise.
11396         (jn_test_data): Likewise.
11397         (lgamma_test_data): Likewise.
11398         (lrint_test_data): Likewise.
11399         (llrint_test_data): Likewise.
11400         (log_test_data): Likewise.
11401         (log10_test_data): Likewise.
11402         (log1p_test_data): Likewise.
11403         (log2_test_data): Likewise.
11404         (logb_test_data): Likewise.
11405         (lround_test_data): Likewise.
11406         (llround_test_data): Likewise.
11407         (modf_test_data): Likewise.
11408         (nearbyint_test_data): Likewise.
11409         (nextafter_test_data): Likewise.
11410         (nexttoward_test_data): Likewise.
11411         (pow_test_data): Likewise.
11412         (remainder_test_data): Likewise.
11413         (remquo_test_data): Likewise.
11414         (rint_test_data): Likewise.
11415         (round_test_data): Likewise.
11416         (signbit_test_data): Likewise.
11417         (sinh_test_data): Likewise.
11418         (sqrt_test_data): Likewise.
11419         (tanh_test_data): Likewise.
11420         (tgamma_test_data): Likewise.
11421         (trunc_test_data): Likewise.
11422         (y0_test_data): Likewise.
11423         (y1_test_data): Likewise.
11424         (yn_test_data): Likewise.
11425         (significand_test_data): Likewise.
11426
11427 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11428
11429         * manual/filesys.texi (Storage Allocation): Document that
11430         posix_fallocate emulation fails when fd is open with O_WRONLY.
11431
11432 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11433
11434         [BZ #19016]
11435         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11436         allow more cases with X^2 + Y^2 >= 0.5.
11437         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11438         normal element in sum instead of special-casing based on values of
11439         arguments.
11440         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11441         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11442         -1 as normal element in sum instead of special-casing based on
11443         values of arguments.
11444         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11445         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11446         (__x2y2m1): Update comment.
11447         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11448         as normal element in sum instead of special-casing based on values
11449         of arguments.
11450         * math/s_clog.c (__clog): Handle more cases using log1p without
11451         hypot.
11452         * math/s_clog10.c (__clog10): Likewise.
11453         * math/s_clog10f.c (__clog10f): Likewise.
11454         * math/s_clog10l.c (__clog10l): Likewise.
11455         * math/s_clogf.c (__clogf): Likewise.
11456         * math/s_clogl.c (__clogl): Likewise.
11457         * math/auto-libm-test-in: Add more tests of clog and clog10.
11458         * math/auto-libm-test-out: Regenerated.
11459         * sysdeps/i386/fpu/libm-test-ulps: Update.
11460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11461
11462 2015-09-28  Martin Sebor  <msebor@redhat.com>
11463
11464         [BZ #18969]
11465         * string/Makefile (LOCALES): Define.
11466         (gen-locales.mk): Include.
11467         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11468         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11469         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11470         on setlocale failure.
11471
11472 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11473
11474         [BZ #18985]
11475         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11476         (__strftime_internal): Likewise.
11477         * time/tst-strftime.c (do_bz18985): New test.
11478         (do_test): Call it.
11479
11480 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11481
11482         [BZ #18956]
11483         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11484         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11485         extracting high part.
11486         * math/auto-libm-test-in: Add another test of pow.
11487         * math/auto-libm-test-out: Regenerated.
11488         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11489
11490 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11491
11492         [BZ #18825]
11493         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11494         New macro.
11495         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11496         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11497         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11498         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11499         DBL_NARROW_EVAL, reloading the PIC register as needed.
11500         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11501         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11502         FLT_NARROW_EVAL.  Use separate return path for case when first
11503         argument is NaN.
11504         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11505         DEFINE_LDBL_MIN.
11506         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11507         PIC register.
11508         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11509         math_check_force_underflow_nonneg.
11510         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11511         underflow for subnormal result.
11512         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11513         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11514         math_check_force_underflow_nonneg.
11515         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11516         math_check_force_underflow.
11517         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11518         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11519         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11520         DEFINE_LDBL_MIN.
11521         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11522         * math/auto-libm-test-in: Add more tests of pow.
11523         * math/auto-libm-test-out: Regenerated.
11524
11525 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11526
11527         * nss/bug17079.c (init_test_items): Add diagnostic for
11528         inconsistent entries.
11529         (test_buffer_size): Skip inconsistent entries.
11530
11531 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11532
11533         [BZ #13304]
11534         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11535         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11536         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11537
11538         [BZ #13304]
11539         * sysdeps/microblaze/s_fma.c: New file.
11540         * sysdeps/microblaze/s_fmaf.c: Likewise.
11541         * sysdeps/microblaze/sfp-machine.h: Likewise.
11542
11543 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11544
11545         [BZ #17250]
11546         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11547         member.
11548
11549 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11550
11551         [BZ #18803]
11552         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11553         (MO): New macro.
11554         (__ieee754_hypot) [PIC]: Load PIC register.
11555         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11556         DBL_NARROW_EVAL.
11557         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11558         math_check_force_underflow_nonneg in case where result might be
11559         tiny.
11560         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11561         Likewise.
11562         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11563         Likewise.
11564         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11565         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11566         * math/auto-libm-test-in: Add more tests of hypot.
11567         * math/auto-libm-test-out: Regenerated.
11568
11569 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11570
11571         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11572
11573 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11574
11575         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11576         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11577         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11578         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11579         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11580         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11581         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11582
11583         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11584         LOAD_PIC_REG.
11585
11586         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11587         (FLT_CHECK_FORCE_UFLOW): Likewise.
11588         (DBL_CHECK_FORCE_UFLOW): Likewise.
11589         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11590         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11591         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11592         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11593         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11594         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11595         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11596         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11597         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11598         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11599         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11600         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11601         (flt_min): Replace with use of DEFINE_FLT_MIN.
11602         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11603         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11604         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11605         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11606         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11607         (flt_min): Replace with use of DEFINE_FLT_MIN.
11608         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11609         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11610         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11611         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11612         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11613         (flt_min): Replace with use of DEFINE_FLT_MIN.
11614         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11615         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11616         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11617         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11618         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11619         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11620         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11621         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11622         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11623         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11624         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11625         (flt_min): Replace with use of DEFINE_FLT_MIN.
11626         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11627         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11628         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11629         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11630         main computation.
11631         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11632         (flt_min): Replace with use of DEFINE_FLT_MIN.
11633         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11634         main computation.
11635         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11636         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11637         (MO): New macro.
11638         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11639         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11640         (flt_min): Replace with use of DEFINE_FLT_MIN.
11641         (MO): New macro.
11642         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11643         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11644         (__log1pl): Use MO.
11645
11646         [BZ #19003]
11647         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11648         $(config-cflags-nofma).
11649
11650 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11651
11652         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11653
11654 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11655
11656         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11657         (TWO127): Likewise.
11658
11659         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11660         (min_of_type): Likewise.
11661         (math_check_force_underflow): Likewise.
11662         (math_check_force_underflow_nonneg): Likewise.
11663         (math_check_force_underflow_complex): Likewise.
11664         * math/e_exp2l.c (__ieee754_exp2l): Use
11665         math_check_force_underflow_nonneg.
11666         * math/k_casinh.c (__kernel_casinh): Likewise.
11667         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11668         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11669         * math/s_catan.c (__catan): Use
11670         math_check_force_underflow_complex.
11671         * math/s_catanf.c (__catanf): Likewise.
11672         * math/s_catanh.c (__catanh): Likewise.
11673         * math/s_catanhf.c (__catanhf): Likewise.
11674         * math/s_catanhl.c (__catanhl): Likewise.
11675         * math/s_catanl.c (__catanl): Likewise.
11676         * math/s_ccosh.c (__ccosh): Likewise.
11677         * math/s_ccoshf.c (__ccoshf): Likewise.
11678         * math/s_ccoshl.c (__ccoshl): Likewise.
11679         * math/s_cexp.c (__cexp): Likewise.
11680         * math/s_cexpf.c (__cexpf): Likewise.
11681         * math/s_cexpl.c (__cexpl): Likewise.
11682         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11683         * math/s_clog10.c (__clog10): Likewise.
11684         * math/s_clog10f.c (__clog10f): Likewise.
11685         * math/s_clog10l.c (__clog10l): Likewise.
11686         * math/s_clogf.c (__clogf): Likewise.
11687         * math/s_clogl.c (__clogl): Likewise.
11688         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11689         * math/s_csinf.c (__csinf): Likewise.
11690         * math/s_csinh.c (__csinh): Likewise.
11691         * math/s_csinhf.c (__csinhf): Likewise.
11692         * math/s_csinhl.c (__csinhl): Likewise.
11693         * math/s_csinl.c (__csinl): Likewise.
11694         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11695         * math/s_csqrtf.c (__csqrtf): Likewise.
11696         * math/s_csqrtl.c (__csqrtl): Likewise.
11697         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11698         * math/s_ctanf.c (__ctanf): Likewise.
11699         * math/s_ctanh.c (__ctanh): Likewise.
11700         * math/s_ctanhf.c (__ctanhf): Likewise.
11701         * math/s_ctanhl.c (__ctanhl): Likewise.
11702         * math/s_ctanl.c (__ctanl): Likewise.
11703         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11704         instead of volatile.
11705         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11706         math_check_force_underflow.
11707         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11708         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11709         volatile when forcing underflow.
11710         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11711         math_check_force_underflow_nonneg.
11712         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11713         Likewise.
11714         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11715         math_check_force_underflow.
11716         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11717         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11718         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11719         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11720         math_check_force_underflow_nonneg.
11721         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11722         math_check_force_underflow.
11723         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11724         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11725         instead of volatile.
11726         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11727         math_check_force_underflow.
11728         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11729         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11730         math_check_force_underflow_nonneg.
11731         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11732         math_check_force_underflow.
11733         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11734         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11735         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11736         math_check_force_underflow_nonneg.
11737         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11738         Likewise.
11739         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11740         math_check_force_underflow.
11741         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11742         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11743         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11744         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11745         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11746         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11747         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11748         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11749         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11750         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11751         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11752         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11753         Likewise.
11754         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11755         math_check_force_underflow_nonneg.
11756         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11757         Likewise.
11758         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11759         math_check_force_underflow.
11760         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11761         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11762         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11763         Likewise.
11764         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11765         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11766         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11767         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11768         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11769         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11770         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11771         instead of volatile.
11772         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11773         math_check_force_underflow.
11774         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11775         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11776         math_check_force_underflow.
11777         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11778         Likewise.
11779         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11780         Use math_check_force_underflow_nonneg.
11781         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11782         math_check_force_underflow.
11783         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11784         Likewise.
11785         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11786         Likewise.
11787         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11788         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11789         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11790         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11791         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11792         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11793         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11794         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11795         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11796         math_check_force_underflow_nonneg.
11797         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11798         math_check_force_underflow.
11799         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11800         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11801         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11802         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11803         math_check_force_underflow_nonneg.
11804         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11805         math_check_force_underflow.
11806         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11807         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11808         instead of volatile.
11809         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11810         math_check_force_underflow.
11811
11812         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11813         * stdlib/strtod_l.c: Include <math_private.h>.
11814         (overflow_value): Use math_narrow_eval.
11815         (underflow_value): Likewise.
11816         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11817         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11818         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11819         (__ieee754_gamma_r): Likewise.
11820         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11821         Likewise.
11822         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11823         Likewise.
11824         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11825         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11826         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11827         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11828         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11829         (__ieee754_gammaf_r): Likewise.
11830         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11831         Likewise.
11832         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11833         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11834         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11835         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11836         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11837         volatile.
11838         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11839         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11840         math_narrow_eval.
11841         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11842         Likewise.
11843         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11844         Likewise.
11845         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11846         Likewise.
11847         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11848         volatile.
11849         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11850         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11851         math_narrow_eval.
11852         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11853         Likewise.
11854         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11855         Likewise.
11856
11857 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11858
11859         * nptl/Versions: Remove ignored symbols.
11860
11861 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11862
11863         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11864         * nss/Makefile (tests): Update.
11865
11866 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11867
11868         * nss/bug18287.c: New file.
11869         * nss/Makefile (tests): Add bug18287.
11870
11871 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11872
11873         * mach/Versions (__mach_host_self_): Add symbol.
11874
11875 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11876
11877         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11878         vm_page_size.
11879
11880 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11881
11882         Really fix sysdeps/i386/fpu/s_scalbn.S build
11883
11884         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11885         (libc: GLIBC_2_22): Remove unused version set.
11886
11887 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11888
11889         * config.make.in (enable-timezone-tools): New variable.
11890         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11891         (enable_timezone_tools): Export to generated files.
11892         * configure: Regenerate.
11893         * INSTALL: Regenerate.
11894         * manual/install.texi (--disable-timezone-tools): Document new flag.
11895         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11896         ifeq ($(enable-timezone-tools),yes) check.
11897
11898 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11899
11900         * timezone/Makefile: Revert previous change.
11901
11902         [BZ #18980]
11903         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11904         (DEFINE_DBL_MIN): Likewise.
11905         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11906         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11907         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11908         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11909         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11910         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11911         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11912         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11913         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11914         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11915         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11916         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11917         (flt_min): Replace with use of DEFINE_FLT_MIN.
11918         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11919         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11920         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11921         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11922         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11923         (flt_min): Replace with use of DEFINE_FLT_MIN.
11924         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11925         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11926         (flt_min): Replace with use of DEFINE_FLT_MIN.
11927         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11928         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11929         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11930         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11931         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11932         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11933         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11934         (__ieee754_pow): Use DBL_NARROW_EVAL.
11935         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11936         (__ieee754_powf): Use FLT_NARROW_EVAL.
11937         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11938         (__ieee754_expf_sse2): Convert double-precision result to single
11939         precision.
11940         * sysdeps/i386/fpu/libm-test-ulps: Update.
11941
11942 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11943
11944         * timezone/Makefile: Ignore unused variable errors due to private.h
11945         (time_t_min) and (time_t_max).
11946         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11947         Likewise.
11948
11949 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11950
11951         [BZ #18981]
11952         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11953         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11954         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11955         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11956         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11957         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11958         (__scalbn): Use DBL_NARROW_EVAL.
11959         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11960         (__scalbnf): Use FLT_NARROW_EVAL.
11961
11962 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11963
11964         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11965         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11966         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11967         * stdio-common/printf_fp.c (___printf_fp):
11968         Use signbit to get the sign. Use isinf macro to allow inlining.
11969         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11970         * stdio-common/printf_size.c (__printf_size): Likewise.
11971
11972 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11973
11974         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11975
11976 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11977
11978         [BZ #18980]
11979         * sysdeps/generic/math_private.h: Include <float.h>.
11980         (math_narrow_eval): New macro.
11981         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11982         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11983         math_narrow_eval on overflowing return value.
11984         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11985         Likewise.
11986         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11987         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11988         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11989         Likewise.
11990         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11991
11992 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11993
11994         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11995         * math/Makefile: Remove isinf_ns.c.
11996         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11997         * math/multc3.c (__multc3): Likewise.
11998         * math/s_casin.c (__casin): Likewise.
11999         * math/s_casinf.c (__casinf): Likewise.
12000         * math/s_casinl.c (__casinl): Likewise.
12001         * math/s_cproj.c (__cproj): Likewise.
12002         * math/s_cprojf.c (__cprojf): Likewise.
12003         * math/s_cprojl.c (__cprofl): Likewise.
12004         * math/s_ctan.c (__ctan): Likewise.
12005         * math/s_ctanf.c (__ctanf): Likewise.
12006         * math/s_ctanh.c (__ctanh): Likewise.
12007         * math/s_ctanhf.c (__ctanhf): Likewise.
12008         * math/s_ctanhl.c (__ctanhl): Likewise.
12009         * math/s_ctanl.c (__ctanl): Likewise.
12010         * math/w_fmod.c (__fmod): Likewise.
12011         * math/w_fmodf.c (__fmodf): Likewise.
12012         * math/w_fmodl.c (_fmodl): Likewise.
12013         * math/w_remainder.c (__remainder): Likewise.
12014         * math/w_remainderf.c (__remainderf): Likewise.
12015         * math/w_remainderl.c (__remainderl): Likewise.
12016         * math/w_scalb.c (__scalb): Likewise.
12017         * math/w_scalbf.c (__scalbf): Likewise.
12018         * math/w_scalbl.c (__scalbl): Likewise.
12019         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
12020         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
12021         with isinf.
12022         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
12023         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
12024         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
12025         __isinf_nsf with isinf.
12026         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
12027         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
12028         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
12029         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
12030         with isinf.
12031         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
12032         __isinf_nsl with isinf.
12033         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
12034         with isinf.
12035         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
12036         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
12037         __isinf_nsl with isinf.
12038         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
12039         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
12040         with isinf.
12041
12042 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12043
12044         * resolv/base64.c (rcsid): Remove unused static.
12045         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
12046         static.  (tqpi1): Likewise.
12047         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
12048         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
12049         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
12050         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
12051         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
12052         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
12053         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
12054         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
12055         Likewise.
12056
12057 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12058
12059         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
12060         <nptl/pthreadP.h>.
12061         (_longjmp_unwind): Use __libc_ptf_call.
12062         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
12063
12064 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
12065
12066         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
12067         * sysdeps/arm/__longjmp.S: Likewise.
12068
12069 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12070
12071         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
12072         Use __builtin_signbit.
12073         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
12074         Use __builtin_signbitf.
12075         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
12076         Use __builtin_signbitl.
12077         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12078         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
12079
12080 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12081
12082         [BZ #15367]
12083         [BZ #17441]
12084
12085         * math/Makefile: Build test-snan.c with -fsignaling-nans.
12086         * math/math.h (fpclassify): Use __builtin_fpclassify when
12087         available.  (signbit): Use __builtin_signbit(f/l).
12088         (isfinite): Use__builtin_isfinite.  (isnormal): Use
12089         __builtin_isnormal.  (isnan): Use __builtin_isnan.
12090         (isinf): Use __builtin_isinf_sign.
12091
12092 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12093
12094         * benchtests/Makefile: Add bench-math-inlines, link with libm.
12095         * benchtests/bench-math-inlines.c: New benchmark.
12096         * benchtests/bench-util.h: New file.
12097         * benchtests/bench-util.c: New file.
12098         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
12099
12100 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
12101
12102         * elf/tst-dlmopen1.c: Define TEST_SO.
12103         (do_test): Use TEST_SO.
12104
12105         * elf/dl-load.c: Include libc-internal.h.
12106         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
12107
12108 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12109
12110         [BZ #17887]
12111         * time/strptime_l.c (__strptime_internal): Make %z accept
12112         [+-]HH:MM time zones.
12113
12114 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12115
12116         [BZ #17886]
12117         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
12118         valid time zone.
12119
12120 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
12121
12122         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
12123         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
12124         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12125         (__ASSUME_FDATASYNC): Delete.
12126
12127 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12128
12129         * conform/linknamespace.pl: Require weak undefined symbols to be
12130         in the standard namespace.
12131         (%strong_syms): Rename to %seen_syms.
12132         (%strong_seen): Rename to %seen_where.
12133
12134 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12135
12136         [BZ #18970]
12137         * misc/error.c (error): Replace pthread_setcancelstate with
12138         __pthread_setcancelstate.
12139         (error_at_line): Likewise.
12140         * posix/wordexp.c (parse_comm): Likewise.
12141         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12142         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12143         (__pthread_setcancelstate): This.
12144         (pthread_setcancelstate): Add an alias.
12145         * nptl/nptl-init.c (pthread_functions): Replace
12146         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12147         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12148         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12149         hidden_proto.
12150         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12151         it with hidden_def.
12152         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12153         (pthread_setcancelstate): Renamed to ...
12154         (__pthread_setcancelstate): This.
12155         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12156         __libc_ptf_call with __pthread_setcancelstate.
12157
12158 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12159             Andreas Schwab  <schwab@suse.de>
12160
12161         [BZ #17118]
12162         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12163         result when imaginary part of argument is infinite using sine and
12164         cosine.
12165         * math/s_ctanf.c (__ctanf): Likewise.
12166         * math/s_ctanl.c (__ctanl): Likewise.
12167         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12168         of result when real part of argument is infinite using sine and
12169         cosine.
12170         * math/s_ctanhf.c (__ctanhf): Likewise.
12171         * math/s_ctanhl.c (__ctanhl): Likewise.
12172         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12173         (ctanh_test_data): Add more tests of ctanh.
12174
12175 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12176
12177         [BZ #15384]
12178         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12179         bit-mask as in subtraction.
12180         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12181         Likewise.
12182         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12184         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12185
12186         [BZ #18951]
12187         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12188         underflow exception for small results.
12189         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12190         Likewise.
12191         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12192         Likewise.
12193         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12194         Likewise.
12195         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12196         Likewise.
12197         * math/auto-libm-test-in: Add more tests of tgamma.
12198         * math/auto-libm-test-out: Regenerated.
12199
12200 2015-09-17  Andreas Schwab  <schwab@suse.de>
12201
12202         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12203
12204 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12205
12206         [BZ #18977]
12207         * math/bits/mathcalls.h
12208         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12209         not declare.
12210         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12211         Likewise.
12212         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12213         Likewise.
12214         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12215         Likewise.
12216         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12217         Likewise.
12218         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12219         Likewise.
12220         * conform/data/math.h-data
12221         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12222         function.
12223         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12224         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12225         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12226         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12227         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12228         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12229         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12230         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12231         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12232         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12233         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12234
12235         [BZ #6803]
12236         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12237         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12238         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12239         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12240         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12241         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12242         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12243         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12244         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12245         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12246         Likewise.
12247         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12248         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12249         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12250         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12251         long_double_symbol calls.
12252         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12253         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12254         strong alias of __ldexpl.
12255         (scalbnl): Define using long_double_symbol.
12256         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12257         Remove alias.
12258         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12259         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12260         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12261         (scalbln_test_data): Add more errno expectations.
12262
12263 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12264
12265         Cache the host port like we cache the task port.  This way we do not
12266         need to call the kernel just to get the port.  Furthermore, we no
12267         longer increase the reference count on every invocation of
12268         `mach_host_self'.
12269
12270         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12271         Protect declarations against the macro expansion.
12272         * mach/mach_init.c (__mach_host_self_): New variable.
12273         (mach_init): Initialize `__mach_host_self_'.
12274         * mach/mach_init.h (__mach_host_self_): New declaration.
12275         (__mach_host_self, mach_host_self): New macros.
12276         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12277         Release reference.
12278
12279 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12280
12281         [BZ #4404]
12282         * po/de.po: Update from Translation Project.
12283
12284         [BZ #16415]
12285         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12286         (__expm1l): Remove code to handle positive infinity and overflow.
12287         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12288         variable.
12289         (__expm1l): Remove code to handle positive infinity and overflow.
12290
12291 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12292             Paul Pluzhnikov  <ppluzhnikov@google.com>
12293
12294         [BZ #18872]
12295         * stdio-common/Makefile (tst-printf-bz18872): New test.
12296         (tst-printf-bz18872-mem.out): Likewise.
12297         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12298         * stdio-common/vfprintf.c: Fix memory leaks.
12299
12300 2015-09-16  Andreas Schwab  <schwab@suse.de>
12301
12302         [BZ #17244]
12303         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12304         Remove extra va_start/va_end calls.
12305
12306         [BZ #17243]
12307         * posix/execl.c (execl): Add missing va_end.
12308         * posix/execle.c (execle): Likewise.
12309         * posix/execlp.c (execlp): Likewise.
12310
12311 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12312
12313         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12314         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12315
12316 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12317
12318         [BZ #18967]
12319         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12320         undefine around includes of <bits/mathcalls.h>.
12321         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12322         not declare function.
12323         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12324         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12325         (scalb): Likewise.
12326         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12327         not define macro.
12328         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12329         variable.
12330         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12331         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12332         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12333
12334         [BZ #18857]
12335         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12336         return non-finite argument without doing ordered comparisons on
12337         it.
12338
12339         [BZ #16296]
12340         * math/fenv.h (fegetround): Use __attribute_pure__.
12341         * include/fenv.h (__fegetround): Likewise.
12342
12343         [BZ #18595]
12344         * math/s_ctan.c (__ctan): Force underflow exception for results
12345         whose real or imaginary part has small absolute value.
12346         * math/s_ctanf.c (__ctanf): Likewise.
12347         * math/s_ctanh.c (__ctanh): Likewise.
12348         * math/s_ctanhf.c (__ctanhf): Likewise.
12349         * math/s_ctanhl.c (__ctanhl): Likewise.
12350         * math/s_ctanl.c (__ctanl): Likewise.
12351         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12352         and ctanh.  Add more tests of ctan and ctanh.
12353
12354         [BZ #15918]
12355         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12356         handling of cases where one argument is an infinity.
12357
12358         [BZ #18875]
12359         [BZ #18966]
12360         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12361         (MO): New macro.
12362         (__ieee754_exp10): For small results, force underflow exception
12363         and remove excess range and precision from return value.
12364         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12365         (MO): New macro.
12366         (__ieee754_exp10f): For small results, force underflow exception
12367         and remove excess range and precision from return value.
12368         * math/auto-libm-test-in: Add more tests of exp10.
12369         * math/auto-libm-test-out: Regenerated.
12370
12371 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12372
12373         [BZ #18875]
12374         [BZ #18961]
12375         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12376         (MO): New macro.
12377         (__ieee754_exp): For small results, force underflow exception and
12378         remove excess range and precision from return value.
12379         (__exp_finite): Likewise.
12380         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12381         (MO): New macro.
12382         (__ieee754_expf): For small results, force underflow exception and
12383         remove excess range and precision from return value.
12384         (__expf_finite): Likewise.
12385         * math/auto-libm-test-in: Add more tests of exp.
12386         * math/auto-libm-test-out: Regenerated.
12387
12388         [BZ #16521]
12389         [BZ #18875]
12390         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12391         small results.
12392         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12393         (MO): New macro.
12394         (__ieee754_exp2): For small results, force underflow exception and
12395         remove excess range and precision from return value.
12396         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12397         (MO): New macro.
12398         (__ieee754_exp2f): For small results, force underflow exception
12399         and remove excess range and precision from return value.
12400         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12401         (MO): New macro.
12402         (__ieee754_exp2l): Force underflow exception for small results.
12403         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12404         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12405         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12406         (MO): New macro.
12407         (__ieee754_exp2l): Force underflow exception for small results.
12408         * math/auto-libm-test-in: Add more tests or exp2.
12409         * math/auto-libm-test-out: Regenerated.
12410
12411 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12412
12413         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12414
12415         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12416         /dev/null.
12417
12418 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12419
12420         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12421         io fs process)): Drop spurious backslash.
12422
12423 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12424
12425         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12426         Use sysinfo system call instead of parsing /proc/meminfo.
12427         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12428         Likewise.
12429
12430 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12431
12432         [BZ #16985]
12433         * programs/localedef.c (main): Display argv[remaining] when
12434         output_path is NULL.
12435
12436 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12437
12438         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12439         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12440         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12441         tanh.
12442         * math/auto-libm-test-out: Regenerated.
12443         * sysdeps/i386/fpu/libm-test-ulps: Update.
12444         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12445         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12447
12448 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12449
12450         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12451         Use 'override' keyword to freeze the value here, preventing
12452         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12453
12454 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12455
12456         [BZ #14912]
12457         * sysdeps/aarch64/bits/atomic.h: Move to ...
12458         * sysdeps/aarch64/atomic-machine.h: ...here.
12459         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12460         _AARCH64_ATOMIC_MACHINE_H.
12461         * sysdeps/alpha/bits/atomic.h: Move to ...
12462         * sysdeps/alpha/atomic-machine.h: ...here.
12463         * sysdeps/arm/bits/atomic.h: Move to ...
12464         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12465         * bits/atomic.h: Move to ...
12466         * sysdeps/generic/atomic-machine.h: ...here.
12467         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12468         * sysdeps/i386/bits/atomic.h: Move to ...
12469         * sysdeps/i386/atomic-machine.h: ...here.
12470         * sysdeps/ia64/bits/atomic.h: Move to ...
12471         * sysdeps/ia64/atomic-machine.h: ...here.
12472         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12473         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12474         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12475         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12476         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12477         * sysdeps/microblaze/bits/atomic.h: Move to ...
12478         * sysdeps/microblaze/atomic-machine.h: ...here.
12479         * sysdeps/mips/bits/atomic.h: Move to ...
12480         * sysdeps/mips/atomic-machine.h: ...here.
12481         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12482         * sysdeps/powerpc/bits/atomic.h: Move to ...
12483         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12484         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12485         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12486         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12487         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12488         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12489         <atomic-machine.h> instead of <bits/atomic.h>.
12490         * sysdeps/s390/bits/atomic.h: Move to ...
12491         * sysdeps/s390/atomic-machine.h: ...here.
12492         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12493         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12494         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12495         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12496         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12497         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12498         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12499         * sysdeps/tile/bits/atomic.h: Move to ...
12500         * sysdeps/tile/atomic-machine.h: ...here.
12501         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12502         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12503         <sysdeps/tile/atomic-machine.h> instead of
12504         <sysdeps/tile/bits/atomic.h>.
12505         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12506         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12507         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12508         <sysdeps/tile/atomic-machine.h> instead of
12509         <sysdeps/tile/bits/atomic.h>.
12510         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12511         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12512         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12513         <sysdeps/arm/atomic-machine.h> instead of
12514         <sysdeps/arm/bits/atomic.h>.
12515         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12516         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12517         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12518         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12519         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12520         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12521         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12522         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12523         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12524         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12525         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12526         * sysdeps/x86_64/bits/atomic.h: Move to ...
12527         * sysdeps/x86_64/atomic-machine.h: ...here.
12528         * include/atomic.h: Include <atomic-machine.h> instead of
12529         <bits/atomic.h>.
12530
12531         * sysdeps/mips/mips32/libm-test-ulps: Update.
12532         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12533
12534         [BZ #18952]
12535         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12536         not convert non-integer negative arguments to int to determine the
12537         value of signgam.
12538         * math/auto-libm-test-in: Add more tests of lgamma.
12539         * math/auto-libm-test-out: Regenerated.
12540
12541         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12542         cosh, csqrt, erfc, expm1 and lgamma.
12543         * math/auto-libm-test-out: Regenerated.
12544         * sysdeps/i386/fpu/libm-test-ulps: Update.
12545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12546
12547 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12548
12549         [BZ #2542]
12550         [BZ #2543]
12551         [BZ #2558]
12552         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12553         __lgamma_neg for arguments from -28.0 to -2.0.
12554         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12555         __lgamma_negf for arguments from -15.0 to -2.0.
12556         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12557         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12558         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12559         Call __lgamma_negl for arguments from -33.0 to -2.0.
12560         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12561         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12562         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12563         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12564         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12565         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12566         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12567         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12568         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12569         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12570         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12571         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12572         (__lgamma_neg): Likewise.
12573         (__lgamma_negl): Likewise.
12574         (__lgamma_product): Likewise.
12575         (__lgamma_productl): Likewise.
12576         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12577         * math/auto-libm-test-in: Add more tests of lgamma.
12578         * math/auto-libm-test-out: Regenerated.
12579         * sysdeps/i386/fpu/libm-test-ulps: Update.
12580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12581
12582 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12583
12584         [BZ #18675]
12585         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12586
12587 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12588
12589         [BZ #14912]
12590         * bits/libc-lock.h: Move to ...
12591         * sysdeps/generic/libc-lock.h: ...here.
12592         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12593         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12594         * sysdeps/mach/hurd/libc-lock.h: ...here.
12595         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12596         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12597         * sysdeps/mach/bits/libc-lock.h: Move to ...
12598         * sysdeps/mach/libc-lock.h: ...here.
12599         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12600         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12601         * sysdeps/nptl/libc-lock.h: ...here.
12602         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12603         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12604         * sysdeps/nptl/libc-lockP.h: ...here.
12605         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12606         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12607         <bits/libc-lock.h>.
12608         * dirent/scandir-tail.c: Likewise.
12609         * dlfcn/dlerror.c: Likewise.
12610         * elf/dl-close.c: Likewise.
12611         * elf/dl-iteratephdr.c: Likewise.
12612         * elf/dl-lookup.c: Likewise.
12613         * elf/dl-open.c: Likewise.
12614         * elf/dl-support.c: Likewise.
12615         * elf/dl-writev.h: Likewise.
12616         * elf/rtld.c: Likewise.
12617         * grp/fgetgrent.c: Likewise.
12618         * gshadow/fgetsgent.c: Likewise.
12619         * gshadow/sgetsgent.c: Likewise.
12620         * iconv/gconv_conf.c: Likewise.
12621         * iconv/gconv_db.c: Likewise.
12622         * iconv/gconv_dl.c: Likewise.
12623         * iconv/gconv_int.h: Likewise.
12624         * iconv/gconv_trans.c: Likewise.
12625         * include/link.h: Likewise.
12626         * inet/getnameinfo.c: Likewise.
12627         * inet/getnetgrent.c: Likewise.
12628         * inet/getnetgrent_r.c: Likewise.
12629         * intl/bindtextdom.c: Likewise.
12630         * intl/dcigettext.c: Likewise.
12631         * intl/finddomain.c: Likewise.
12632         * intl/gettextP.h: Likewise.
12633         * intl/loadmsgcat.c: Likewise.
12634         * intl/localealias.c: Likewise.
12635         * intl/textdomain.c: Likewise.
12636         * libidn/idn-stub.c: Likewise.
12637         * libio/libioP.h: Likewise.
12638         * locale/duplocale.c: Likewise.
12639         * locale/freelocale.c: Likewise.
12640         * locale/newlocale.c: Likewise.
12641         * locale/setlocale.c: Likewise.
12642         * login/getutent_r.c: Likewise.
12643         * login/getutid_r.c: Likewise.
12644         * login/getutline_r.c: Likewise.
12645         * login/utmp-private.h: Likewise.
12646         * login/utmpname.c: Likewise.
12647         * malloc/mtrace.c: Likewise.
12648         * misc/efgcvt.c: Likewise.
12649         * misc/error.c: Likewise.
12650         * misc/fstab.c: Likewise.
12651         * misc/getpass.c: Likewise.
12652         * misc/mntent.c: Likewise.
12653         * misc/syslog.c: Likewise.
12654         * nis/nis_call.c: Likewise.
12655         * nis/nis_callback.c: Likewise.
12656         * nis/nss-default.c: Likewise.
12657         * nis/nss_compat/compat-grp.c: Likewise.
12658         * nis/nss_compat/compat-initgroups.c: Likewise.
12659         * nis/nss_compat/compat-pwd.c: Likewise.
12660         * nis/nss_compat/compat-spwd.c: Likewise.
12661         * nis/nss_nis/nis-alias.c: Likewise.
12662         * nis/nss_nis/nis-ethers.c: Likewise.
12663         * nis/nss_nis/nis-grp.c: Likewise.
12664         * nis/nss_nis/nis-hosts.c: Likewise.
12665         * nis/nss_nis/nis-network.c: Likewise.
12666         * nis/nss_nis/nis-proto.c: Likewise.
12667         * nis/nss_nis/nis-pwd.c: Likewise.
12668         * nis/nss_nis/nis-rpc.c: Likewise.
12669         * nis/nss_nis/nis-service.c: Likewise.
12670         * nis/nss_nis/nis-spwd.c: Likewise.
12671         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12672         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12673         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12674         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12675         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12676         * nis/nss_nisplus/nisplus-network.c: Likewise.
12677         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12678         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12679         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12680         * nis/nss_nisplus/nisplus-service.c: Likewise.
12681         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12682         * nis/ypclnt.c: Likewise.
12683         * nptl/libc_pthread_init.c: Likewise.
12684         * nss/getXXbyYY.c: Likewise.
12685         * nss/getXXent.c: Likewise.
12686         * nss/getXXent_r.c: Likewise.
12687         * nss/nss_db/db-XXX.c: Likewise.
12688         * nss/nss_db/db-netgrp.c: Likewise.
12689         * nss/nss_db/nss_db.h: Likewise.
12690         * nss/nss_files/files-XXX.c: Likewise.
12691         * nss/nss_files/files-alias.c: Likewise.
12692         * nss/nsswitch.c: Likewise.
12693         * posix/regex_internal.h: Likewise.
12694         * posix/wordexp.c: Likewise.
12695         * pwd/fgetpwent.c: Likewise.
12696         * resolv/res_hconf.c: Likewise.
12697         * resolv/res_libc.c: Likewise.
12698         * shadow/fgetspent.c: Likewise.
12699         * shadow/lckpwdf.c: Likewise.
12700         * shadow/sgetspent.c: Likewise.
12701         * socket/opensock.c: Likewise.
12702         * stdio-common/reg-modifier.c: Likewise.
12703         * stdio-common/reg-printf.c: Likewise.
12704         * stdio-common/reg-type.c: Likewise.
12705         * stdio-common/vfprintf.c: Likewise.
12706         * stdio-common/vfscanf.c: Likewise.
12707         * stdlib/abort.c: Likewise.
12708         * stdlib/cxa_atexit.c: Likewise.
12709         * stdlib/fmtmsg.c: Likewise.
12710         * stdlib/random.c: Likewise.
12711         * stdlib/setenv.c: Likewise.
12712         * string/strsignal.c: Likewise.
12713         * sunrpc/auth_none.c: Likewise.
12714         * sunrpc/bindrsvprt.c: Likewise.
12715         * sunrpc/create_xid.c: Likewise.
12716         * sunrpc/key_call.c: Likewise.
12717         * sunrpc/rpc_thread.c: Likewise.
12718         * sysdeps/arm/backtrace.c: Likewise.
12719         * sysdeps/generic/ldsodefs.h: Likewise.
12720         * sysdeps/generic/stdio-lock.h: Likewise.
12721         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12722         * sysdeps/i386/backtrace.c: Likewise.
12723         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12724         * sysdeps/m68k/backtrace.c: Likewise.
12725         * sysdeps/mach/hurd/cthreads.c: Likewise.
12726         * sysdeps/mach/hurd/dirstream.h: Likewise.
12727         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12728         * sysdeps/nptl/malloc-machine.h: Likewise.
12729         * sysdeps/nptl/stdio-lock.h: Likewise.
12730         * sysdeps/posix/dirstream.h: Likewise.
12731         * sysdeps/posix/getaddrinfo.c: Likewise.
12732         * sysdeps/posix/system.c: Likewise.
12733         * sysdeps/pthread/aio_suspend.c: Likewise.
12734         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12735         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12736         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12737         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12738         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12739         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12740         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12741         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12742         * sysdeps/unix/sysv/linux/system.c: Likewise.
12743         * sysdeps/x86_64/backtrace.c: Likewise.
12744         * time/alt_digit.c: Likewise.
12745         * time/era.c: Likewise.
12746         * time/tzset.c: Likewise.
12747         * wcsmbs/wcsmbsload.c: Likewise.
12748         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12749         instead of <bits/libc-lock.h> in comment.
12750
12751 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12752
12753         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12754         Only use .set mips2 if the current ISA is below mips2.
12755         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12756         Likewise.
12757         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12758         mips32r2 if the current ISA is below mips32r2.
12759         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12760         (TLS_IE): Updated to use the TLD_RDHWR macro.
12761         (TLS_LE): Likewise.
12762         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12763         __ASSEMBLER__ condition.
12764
12765 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12766
12767         Fix parallel build of before-compile targets.
12768
12769         * sysdeps/mach/Makefile ($(patsubst
12770         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12771         mach-before-compile target.
12772         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12773         io fs process)): Move rule to dedicated hurd-before-compile target.
12774
12775 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12776
12777         Fix rules generating headers in hurd/ and mach/ when initial make call
12778         has subdir= explicitly set.
12779
12780         * sysdeps/mach/Makefile ($(patsubst
12781         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12782         calling $(MAKE).
12783         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12784         io fs process)): Force subdir to hurd when calling $(MAKE).
12785         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12786         subdir to mach when calling $(MAKE).
12787
12788 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12789
12790         Check sysheaders when looking for Mach and Hurd headers
12791
12792         * sysdeps/mach/configure.ac: Add sysheaders check.
12793         * sysdeps/mach/configure: Regenerate.
12794         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12795         * sysdeps/mach/hurd/configure: Regenerate.
12796
12797 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12798
12799         [BZ #18921]
12800         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12801         Fix inverted sense of test of 'o_directory_works' value.
12802         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12803         Bernhard Voelker <mail@bernhard-voelker.de>.
12804
12805 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12806
12807         [BZ #14912]
12808         * bits/linkmap.h: Move to ...
12809         * sysdeps/generic/linkmap.h: ...here.
12810         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12811         * sysdeps/aarch64/linkmap.h: ...here.
12812         * sysdeps/arm/bits/linkmap.h: Move to ...
12813         * sysdeps/arm/linkmap.h: ...here.
12814         * sysdeps/hppa/bits/linkmap.h: Move to ...
12815         * sysdeps/hppa/linkmap.h: ...here.
12816         * sysdeps/ia64/bits/linkmap.h: Move to ...
12817         * sysdeps/ia64/linkmap.h: ...here.
12818         * sysdeps/mips/bits/linkmap.h: Move to ...
12819         * sysdeps/mips/linkmap.h: ...here.
12820         * sysdeps/s390/bits/linkmap.h: Move to ...
12821         * sysdeps/s390/linkmap.h: ...here.
12822         * sysdeps/sh/bits/linkmap.h: Move to ...
12823         * sysdeps/sh/linkmap.h: ...here.
12824         * sysdeps/x86/bits/linkmap.h: Move to ...
12825         * sysdeps/x86/linkmap.h: ...here.
12826         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12827
12828 2015-09-04  Andreas Schwab  <schwab@suse.de>
12829
12830         [BZ #18635]
12831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12832         (__makecontext): Terminate FDE before return label.
12833         (__novec_makecontext): Likewise.
12834
12835 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12836
12837         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12838         first member of struct sv in syscall macro.
12839
12840 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12841
12842         [BZ #14912]
12843         * bits/stdio-lock.h: Move to ...
12844         * sysdeps/generic/stdio-lock.h: ...here.
12845         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12846         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12847         * sysdeps/nptl/stdio-lock.h: ...here.
12848         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12849         * include/libio.h: Include <stdio-lock.h> instead of
12850         <bits/stdio-lock.h>.
12851         * sysdeps/nptl/fork.c: Likewise.
12852         * sysdeps/pthread/flockfile.c: Likewise.
12853         * sysdeps/pthread/ftrylockfile.c: Likewise.
12854         * sysdeps/pthread/funlockfile.c: Likewise.
12855
12856         [BZ #14912]
12857         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12858         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12859         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12860         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12861         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12862         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12863         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12864
12865 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12866
12867         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12868         (test-xfail-tst-protected1b): New variable.
12869
12870 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12871
12872         [BZ #14912]
12873         * bits/libc-tsd.h: Move to ...
12874         * sysdeps/generic/libc-tsd.h: ...here.
12875         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12876         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12877         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12878         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12879         * include/ctype.h: Include <libc-tsd.h> instead of
12880         <bits/libc-tsd.h>.
12881         * include/rpc/rpc.h: Likewise.
12882         * locale/localeinfo.h: Likewise.
12883         * sunrpc/rpc_thread.c: Likewise.
12884         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12885         * sysdeps/nptl/malloc-machine.h: Likewise.
12886
12887         * Makefile (headers): Remove bits/libc-lock.h.
12888         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12889
12890         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12891         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12892         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12893         <bits/stdio-lock.h>.
12894         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12895         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12896
12897 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12898
12899         [BZ #18757]
12900         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12901         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12902         BZ #18757.
12903
12904 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12905
12906         * malloc/mtrace.pl: Filter out NULL entries.
12907
12908 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12911         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12912         macro.
12913
12914         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12915         (TCP_CC_INFO): Likewise.
12916         (TCP_SAVE_SYN): Likewise.
12917         (TCP_SAVED_SYN): Likewise.
12918
12919 2015-08-31  Brett Neumeier <brett@neumeier.us>
12920
12921         [BZ #18870]
12922         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12923
12924 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12925
12926         [BZ #18873]
12927         Fix broken overflow check in posix_fallocate
12928         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12929         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12930         Fix parenthesization typo.
12931
12932 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12933
12934         [BZ #18887]
12935         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12936         tst-mntent-blank-passno.
12937         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12938         * misc/tst-mntent-blank-corrupt.c: New test.
12939         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12940         * misc/tst-mntent.c (do_test): ... here.
12941
12942 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12943
12944         [BZ #4404]
12945         * po/de.po: Fix SIGALRM typo.
12946
12947 2015-08-28  James Perkins  <james@loowit.net>
12948
12949         * time/tst-strptime2.c (tests): Replace short list of test
12950         strings for strptime %z specifier with code which exhaustively
12951         tests every combination of sign and 0 to 5 digits. Tests for
12952         rejection of invalid strings.
12953
12954 2015-08-28  James Perkins  <james@loowit.net>
12955
12956         [BZ #16141]
12957         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12958         calculation, removing incorrect decimal time rounding, so that
12959         all minute values result in a valid seconds value.
12960         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12961         offset range limits to UTC-99:59 through UTC+99:59 to parse
12962         current and historical use cases.
12963         * time/tst-strptime2.c (tests): Modify and add tests for the
12964         strptime %z input field descriptor, specifically conversion of
12965         minutes to seconds and validating an offset range of -9959 to
12966         +9959.
12967
12968 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12969             Dmitry V. Levin  <ldv@altlinux.org>
12970
12971         [BZ #18877]
12972         * posix/Makefile (tests): Add tst-mmap-offset.
12973         * posix/tst-mmap.c: New file.
12974         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12975         offset calculation for negative values.
12976
12977 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12978
12979         * sysdeps/i386/init-arch.h: New file.
12980         * sysdeps/i386/i586/init-arch.h: Likewise.
12981         * sysdeps/i386/i686/init-arch.h: Likewise.
12982         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12983         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12984         * sysdeps/x86/cpu-features.h (bit_I586): New.
12985         (bit_I686): Likewise.
12986         (bit_CX8): Likewise.
12987         (bit_CMOV): Likewise.
12988         (index_CX8): Likewise.
12989         (index_CMOV): Likewise.
12990         (index_I586): Likewise.
12991         (index_I686): Likewise.
12992         (reg_CX8): Likewise.
12993         (reg_CMOV): Likewise.
12994         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12995         available at compile-time.
12996         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12997         available at compile-time.
12998         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12999         (USE_I686): Likewise.
13000
13001 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13002
13003         * sysdeps/i386/bcopy.S: New file.
13004         * sysdeps/i386/bzero.S: Likewise.
13005         * sysdeps/i386/memcpy.S: Likewise.
13006         * sysdeps/i386/memmove.S: Likewise.
13007         * sysdeps/i386/mempcpy.S: Likewise.
13008         * sysdeps/i386/memset.S: Likewise.
13009         * sysdeps/i386/bzero.c: Removed.
13010         * sysdeps/i386/memset.c: Likewise.
13011         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
13012         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
13013         * sysdeps/i386/i586/memset_chk.S: Likewise.
13014         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
13015         * sysdeps/i386/memcpy_chk.S: Here.
13016         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
13017         * sysdeps/i386/memmove_chk.S: Here.
13018         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
13019         * sysdeps/i386/mempcpy_chk.S: Likewise.
13020         * sysdeps/i386/i686/memset_chk.S: Moved to ...
13021         * sysdeps/i386/memset_chk.S: Likewise.
13022
13023 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
13024
13025         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
13026         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
13027         file, move DIAG_POP_NEEDS_COMMENT to end of file.
13028         * soft-fp/fmadf4.c: Ditto.
13029         * soft-fp/fmatf4.c: Ditto.
13030
13031 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13032
13033         * sysdeps/i386/i586/Implies: Removed.
13034         * sysdeps/i386/i686/Implies: Likewise.
13035
13036 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13037
13038         * sysdeps/i386/i486/strlen.S: Moved to ...
13039         * sysdeps/i386/strlen.S: Here.
13040
13041 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13042
13043         * sysdeps/i386/i486/strcat.S: Moved to ...
13044         * sysdeps/i386/strcat.S: Here.
13045
13046 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13047
13048         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
13049         * sysdeps/i386/pthread_spin_trylock.S: Here.
13050         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
13051         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
13052
13053 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13054
13055         * sysdeps/i386/i486/string-inlines.c: Moved to ...
13056         * sysdeps/i386/string-inlines.c: Here.
13057
13058 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13059
13060         * sysdeps/i386/i486/htonl.S: Moved ...
13061         * sysdeps/i386/htonl.S: here.
13062
13063 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13064
13065         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
13066         * sysdeps/i386/bits/atomic.h: Here.
13067
13068 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13069
13070         * sysdeps/i386/i486/Versions: Removed.
13071
13072 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13073
13074         [BZ #2898]
13075         * misc/mktemp.c: Add mkdtemp to the link_warning message.
13076         Based on patch by Aurelien Jarno.
13077
13078 2015-08-26  Stan Shebs  <stanshebs@google.com>
13079
13080         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
13081         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
13082
13083 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13084
13085         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
13086         * sysdeps/powerpc/dl-procinfo.c:
13087         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
13088         feature so it shows when LD_SHOW_AUXV=1.
13089
13090 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13091
13092         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13093         (__arch_compare_and_exchange_val_32_acq): Remove and use common
13094         definition.  ISA 2.07B no longer requires full sync.
13095
13096 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
13097
13098         [BZ #18863]
13099         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
13100         (si_call_addr): Define.
13101         (si_syscall): Define.
13102         (si_arch): Define.
13103
13104 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13105
13106         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
13107         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
13108         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
13109         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13110         (__memset_zero_constant_len_parameter): New.
13111         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
13112         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13113         (__memset_zero_constant_len_parameter): Don't define if
13114         __memset_chk or USE_AS_BZERO are defined.
13115
13116         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
13117         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
13118         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
13119
13120         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
13121         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
13122         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
13123         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
13124         comments.
13125         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13126         -mno-mmx for $(all-rtld-routines).
13127         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13128         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13129         i386.
13130
13131 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13132
13133         * sysdeps/generic/unwind.h
13134         (_Unwind_Word): Use __mode__(__unwind_word__)
13135         instead of __mode__(__word__).
13136         (_Unwind_Sword): Likewise.
13137
13138         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13139         (MAX_NEEDED_INPUT): New define.
13140         (MAX_NEEDED_OUTPUT): New define.
13141
13142         * NEWS: New item for IBM z13 string optimizations.
13143
13144         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13145         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13146         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13147         * sysdeps/s390/multiarch/Makefile
13148         (sysdep_routines): Add memrchr functions.
13149         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13150         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13151
13152         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13153         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13154         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13155         * sysdeps/s390/multiarch/Makefile
13156         (sysdep_routines): Add wmemcmp functions.
13157         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13158         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13159         * benchtests/bench-wmemcmp.c: New File.
13160         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13161
13162         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13163         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13164         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13165         * sysdeps/s390/multiarch/Makefile
13166         (sysdep_routines): Add wmemset functions.
13167         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13168         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13169         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13170         * string/test-memset.c: Add wmemset support.
13171         * wcsmbs/test-wmemset.c: New File.
13172         * wcsmbs/Makefile (strop-tests): Add wmemset.
13173         * benchtests/bench-memset.c: Add wmemset support.
13174         * benchtests/bench-wmemset.c: New File.
13175         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13176
13177         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13178         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13179         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13180         * sysdeps/s390/multiarch/Makefile
13181         (sysdep_routines): Add memccpy functions.
13182         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13183         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13184         * string/memccpy.c: Use MEMCCPY if defined.
13185
13186         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13187         * sysdeps/s390/multiarch/memchr.c: Likewise.
13188         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13189         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13190         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13191         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13192         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13193         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13194         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13195         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13196         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13197         and rawmemchr functions.
13198         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13199         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13200         and wmemchr.
13201         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13202         * string/test-memchr.c: Add wmemchr support.
13203         * wcsmbs/test-wmemchr.c: New File.
13204         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13205         * benchtests/bench-memchr.c: Add wmemchr support.
13206         * benchtests/bench-wmemchr.c: New File.
13207         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13208
13209         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13210         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13211         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13212         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13213         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13214         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13215         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13216         wcscspn functions.
13217         * sysdeps/s390/multiarch/ifunc-impl-list.c
13218         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13219         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13220         * string/test-strcspn.c: Add wcscspn support.
13221         * wcsmbs/test-wcscspn.c: New File.
13222         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13223         * benchtests/bench-strcspn.c: Add wcscspn support.
13224         * benchtests/bench-wcscspn.c: New File.
13225         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13226
13227         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13228         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13229         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13230         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13231         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13232         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13233         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13234         wcspbrk functions.
13235         * sysdeps/s390/multiarch/ifunc-impl-list.c
13236         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13237         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13238         * string/test-strpbrk.c: Add wcspbrk support.
13239         * wcsmbs/test-wcspbrk.c: New File.
13240         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13241         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13242         * benchtests/bench-wcspbrk.c: New File.
13243         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13244
13245         * sysdeps/s390/multiarch/strspn-c.c: New File.
13246         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13247         * sysdeps/s390/multiarch/strspn.c: Likewise.
13248         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13249         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13250         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13251         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13252         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13253         wcsspn functions.
13254         * sysdeps/s390/multiarch/ifunc-impl-list.c
13255         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13256         * string/test-strspn.c: Add wcsspn support.
13257         * wcsmbs/test-wcsspn.c: New File.
13258         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13259         * benchtests/bench-strspn.c: Add wcsspn support.
13260         * benchtests/bench-wcsspn.c: New File.
13261         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13262
13263         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13264         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13265         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13266         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13267         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13268         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13269         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13270         wcsrchr functions.
13271         * sysdeps/s390/multiarch/ifunc-impl-list.c
13272         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13273         * benchtests/bench-wcsrchr.c: New File.
13274         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13275
13276         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13277         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13278         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13279         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13280         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13281         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13282         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13283         wcschrnul functions.
13284         * sysdeps/s390/multiarch/ifunc-impl-list.c
13285         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13286         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13287         * string/test-strchr.c: Add wcschrnul support.
13288         * wcsmbs/test-wcschrnul.c: New File.
13289         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13290         * benchtests/bench-strchr.c: Add wcschrnul support.
13291         * benchtests/bench-wcschrnul.c: New File.
13292         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13293
13294         * sysdeps/s390/multiarch/strchr-c.c: New File.
13295         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13296         * sysdeps/s390/multiarch/strchr.c: Likewise.
13297         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13298         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13299         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13300         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13301         wcschr functions.
13302         * sysdeps/s390/multiarch/ifunc-impl-list.c
13303         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13304         * string/strchr.c (STRCHR): Define and use macro.
13305         * benchtests/bench-wcschr.c: New File.
13306         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13307
13308         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13309         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13310         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13311         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13312         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13313         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13314         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13315         wcsncmp functions.
13316         * sysdeps/s390/multiarch/ifunc-impl-list.c
13317         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13318         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13319         * benchtests/bench-strncmp.c: Add wcsncmp support.
13320         * benchtests/bench-wcsncmp.c: New File.
13321         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13322
13323         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13324         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13325         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13326         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13327         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13328         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13329         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13330         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13331         wcscmp functions.
13332         * sysdeps/s390/multiarch/ifunc-impl-list.c
13333         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13334         * string/strcmp.c (STRCMP): Define and use macro.
13335         * benchtests/bench-wcscmp.c: New File.
13336         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13337         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13338         instead of _HAVE_STRING_ARCH_memchr.
13339
13340         * sysdeps/s390/multiarch/strncat-c.c: New File.
13341         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13342         * sysdeps/s390/multiarch/strncat.c: Likewise.
13343         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13344         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13345         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13346         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13347         wcsncat functions.
13348         * sysdeps/s390/multiarch/ifunc-impl-list.c
13349         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13350         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13351         * string/test-strncat.c: Add wcsncat support.
13352         * wcsmbs/test-wcsncat.c: New File.
13353         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13354         * benchtests/bench-strncat.c: Add wcsncat support.
13355         * benchtests/bench-wcsncat.c: New File.
13356         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13357
13358         * sysdeps/s390/multiarch/strcat-c.c: New File.
13359         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13360         * sysdeps/s390/multiarch/strcat.c: Likewise.
13361         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13362         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13363         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13364         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13365         wcscat functions.
13366         * sysdeps/s390/multiarch/ifunc-impl-list.c
13367         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13368         * string/strcat.c (STRCAT): Define and use macro.
13369         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13370         * string/test-strcat.c: Add wcscat support.
13371         * wcsmbs/test-wcscat.c: New File.
13372         * wcsmbs/Makefile (strop-tests): Add wcscat.
13373         * benchtests/bench-strcat.c: Add wcscat support.
13374         * benchtests/bench-wcscat.c: New File.
13375         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13376
13377         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13378         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13379         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13380         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13381         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13382         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13383         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13384         wcpncpy functions.
13385         * sysdeps/s390/multiarch/ifunc-impl-list.c
13386         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13387         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13388         * string/test-stpncpy.c: Add wcpncpy support.
13389         * wcsmbs/test-wcpncpy.c: New File.
13390         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13391         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13392         * benchtests/bench-wcpncpy.c: New File.
13393         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13394
13395         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13396         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13397         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13398         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13399         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13400         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13401         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13402         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13403         wcsncpy functions.
13404         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13405         * sysdeps/s390/multiarch/ifunc-impl-list.c
13406         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13407         * string/test-strncpy.c: Add wcsncpy support.
13408         * wcsmbs/test-wcsncpy.c: New File.
13409         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13410         * benchtests/bench-strncpy.c: Add wcsncpy support.
13411         * benchtests/bench-wcsncpy.c: New File.
13412         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13413
13414         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13415         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13416         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13417         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13418         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13419         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13420         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13421         wcpcpy functions.
13422         * string/stpcpy.c: Use STPCPY if defined.
13423         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13424         * sysdeps/s390/multiarch/ifunc-impl-list.c
13425         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13426         * string/test-stpcpy.c: Add wcpcpy support.
13427         * wcsmbs/test-wcpcpy.c: New File.
13428         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13429         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13430         * benchtests/bench-wcpcpy.c: New File.
13431         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13432
13433         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13434         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13435         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13436         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13437         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13438         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13439         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13440         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13441         wcscpy functions.
13442         * sysdeps/s390/multiarch/ifunc-impl-list.c
13443         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13444         * benchtests/bench-wcscpy.c: New File.
13445         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13446
13447         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13448         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13449         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13450         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13451         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13452         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13453         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13454         wcsnlen functions.
13455         * sysdeps/s390/multiarch/ifunc-impl-list.c
13456         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13457         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13458         * string/test-strnlen.c: Add wcsnlen support.
13459         * wcsmbs/test-wcsnlen.c: New File.
13460         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13461         * benchtests/bench-strnlen.c: Add wcsnlen support.
13462         * benchtests/bench-wcsnlen.c: New File.
13463         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13464
13465         * sysdeps/s390/multiarch/Makefile: New File.
13466         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13467         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13468         * sysdeps/s390/multiarch/strlen.c: Likewise.
13469         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13470         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13471         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13472         * string/strlen.c (STRLEN): Define and use macro.
13473         * sysdeps/s390/multiarch/ifunc-impl-list.c
13474         (IFUNC_VX_IMPL): New macro function.
13475         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13476         * benchtests/Makefile (wcsmbs-bench): New variable.
13477         (string-bench-all): Added wcsmbs-bench.
13478         * benchtests/bench-wcslen.c: New File.
13479
13480         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13481         s390_vx_libc_ifunc2): New macro function.
13482
13483         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13484         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13485         assembler support.
13486         * sysdeps/s390/configure: Regenerated.
13487
13488         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13489         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13490
13491         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13492         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13493         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13494
13495         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13496         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13497         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13498         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13499         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13500         (memcmp, bcmp): Use __memcmp_default as alias source.
13501         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13502         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13503         Rename to __memcmp_default.
13504         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13505         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13506         (memcpy): Use __memcpy_default as alias source.
13507         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13508         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13509         Rename to __memcpy_default.
13510         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13511         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13512         (memset): Use __memset_default as alias source.
13513         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13514         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13515         Rename to __memset_default.
13516         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13517         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13518         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13519         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13520         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13521         (memcmp, bcmp): Use __memcmp_default as alias source.
13522         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13523         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13524         Rename to __memcmp_default.
13525         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13526         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13527         (memcpy): Use __memcpy_default as alias source.
13528         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13529         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13530         Rename to __memcpy_default.
13531         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13532         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13533         (memset): Use __memset_default as alias source.
13534         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13535         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13536         Rename to __memset_default.
13537         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13538         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13539
13540         [BZ #18610]
13541         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13542         __ieee_instruction_pointer to __unused.
13543         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13544         __ieee_instruction_pointer.
13545         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13546         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13547         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13548         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13549         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13550         Mark dxc-field as reserved.
13551
13552 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13553
13554         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13555         if the weak reference is not null.
13556
13557 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13558
13559         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13560
13561         [BZ #11214]
13562         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13563
13564 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13565
13566         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13567         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13568         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13569         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13570         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13571         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13572         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13573         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13574         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13575         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13576         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13577         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13578         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13579         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13580         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13581         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13582         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13583         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13584
13585 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13586
13587         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13588         register other than r0 for tabort, it has special meaning.
13589         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13590         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13591         transaction before starting syscall.
13592
13593 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13594
13595         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13596
13597 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13598
13599         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13600
13601         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13602         * sysdeps/x86_64/rtld-memset.S: Likewise.
13603         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13604         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13605         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13606         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13607
13608         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13609
13610 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13611
13612         * debug/strcpy_chk.c: Improve performance.
13613         * debug/stpcpy_chk.c: Likewise.
13614         * sysdeps/x86_64/strcpy_chk.S: Remove.
13615         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13616
13617         [BZ #18240]
13618         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13619
13620 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13621
13622         [BZ #15128]
13623         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13624         ifuncmain8.
13625         (modules-names): Add ifuncmod8.
13626         ($(objpfx)ifuncmain8): New rule.
13627         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13628         <cpuid.h>.
13629         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13630         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13631         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13632         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13633         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13634         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13635         * sysdeps/x86_64/ifuncmain8.c: New file.
13636         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13637         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13638         Removed.
13639         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13640         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13641         Change rtld_savespace_sse to __glibc_unused2.
13642         (RTLD_CHECK_FOREIGN_CALL): Removed.
13643         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13644         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13645         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13646
13647 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13648
13649         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13650
13651 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13652
13653         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13654         Unconditionally set __fpcr to avoid uninialized warning.
13655         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13656
13657 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13658
13659         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13660         is corrupt.
13661
13662         * malloc/arena.c (arena_get2): Drop unused argument.
13663         (arena_lock): Adjust.
13664         (arena_get_retry): Likewise.
13665
13666 2015-08-24  Andreas Schwab  <schwab@suse.de>
13667
13668         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13669         Don't define.
13670         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13671         (__ASSUME_IPC64): Don't undef.
13672         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13673         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13674         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13675         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13676         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13677         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13678         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13679         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13680         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13681         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13682         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13683         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13684         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13685         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13686         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13687         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13688         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13689         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13690         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13691         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13692         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13693
13694 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13695
13696         * manual/Makefile (install): Only build manual when perl is available.
13697
13698 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13699
13700         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13701         '#undef memcpy' by '#undef memchr'.
13702
13703 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13704
13705         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13706         memchr not point to the internal __GI_memchr implementation.
13707
13708 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13709
13710         * timezone/Makefile (CFLAGS-zdump.c): Remove
13711         -Wno-strict-prototypes.
13712         (CFLAGS-zic.c): Likewise.
13713         (CFLAGS-ialloc.c): Likewise.
13714         (CFLAGS-scheck.c): Likewise.
13715
13716         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13717         -Wno-error=undef.
13718
13719 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13720
13721         * i386/i686/multiarch/strcasestr-c.c: Removed.
13722         * x86_64/multiarch/strcasestr.c: Likewise.
13723         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13724         Remove strcasestr.
13725
13726 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13727
13728         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13729
13730         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13731         variables for high and low parts before possibly modifying them.
13732
13733 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13734
13735         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13736         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13737         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13738         of "multiarch/init-arch.h".
13739         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13740         * sysdeps/x86/init-arch.h: This.
13741
13742 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13743
13744         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13745         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13746
13747 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13748
13749         [BZ #17787]
13750         * manual/macros.texi: Add twoexp macro.
13751         * manual/filesys.texi: Fix exponents.
13752         * manual/llio.texi: Likewise.
13753         * manual/stdio.texi: Likewise.
13754
13755 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13756
13757         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13758         incorrect use.
13759
13760 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13761
13762         [BZ #18370]
13763         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13764         whose real or imaginary part has small absolute value.
13765         * math/s_csqrtf.c (__csqrtf): Likewise.
13766         * math/s_csqrtl.c (__csqrtl): Likewise.
13767         * math/auto-libm-test-in: Add more tests of csqrt.
13768         * math/auto-libm-test-out: Regenerated.
13769         * sysdeps/i386/fpu/libm-test-ulps: Update.
13770
13771 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13772
13773         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13774         __ppc_set_ppr_very_low): New functions.
13775         * manual/platform.texi: Add documentation about
13776         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13777
13778 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13779
13780         * string/stpncpy.c (stpncpy): Improve performance using
13781         __strnlen/memcpy/memset.
13782
13783 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13784
13785         [BZ #18796]
13786         * scripts/test-installation.pl: Don't add -lmvec to build options if
13787         libmvec wasn't built.
13788
13789 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13790
13791         [BZ #14341]
13792         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13793         case when there is a gap between DT_REL and DT_JMPREL sections.
13794         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13795         (LDFLAGS-tst-split-dynreloc): New.
13796         (tst-split-dynreloc-ENV): Likewise.
13797         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13798         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13799
13800 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13801
13802         [BZ #18822]
13803         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13804         attribute_hidden.
13805         (__xstat64_conv): Likewise.
13806         (__xstat32_conv): Likewise.
13807
13808 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13809
13810         [BZ #18822]
13811         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13812         Don't load %ebx when calling __setcontext.  Call __setcontext
13813         with HIDDEN_JUMPTARGET.
13814         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13815         libc_hidden_def.
13816
13817 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13818
13819         * sysdeps/i386/i686/Makefile
13820         [$(subdir) == string] (sysdep_routines): Moved to ...
13821         * sysdeps/i386/Makefile: Here.
13822         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13823         * sysdeps/i386/cacheinfo.c: Here.
13824         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13825         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13826         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13827         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13828
13829 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13830
13831         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13832         __i586__ is defined.
13833         (HAS_I686): Defined to 1 if __i686__ is defined.
13834
13835 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13836
13837         * elf/Makefile [$(have-z-execstack) = yes]
13838         (CPPFLAGS-tst-execstack.c): New variable.
13839
13840         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13841         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13842         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13843         UTMPX || _HAVE_UT_TV].
13844         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13845         UTMPX || _HAVE_UT_TV - 0].
13846
13847 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13848
13849         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13850         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13851         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13852
13853 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13854
13855         * sysdeps/powerpc/dl-procinfo.c:
13856         (_dl_powerpc_cap_flags): Added missing strings for some
13857         hwcap features.
13858         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13859
13860 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13861
13862         Port the 0x7efe...feff pattern to GCC 6.
13863         See Steve Ellcey's bug report in:
13864         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13865         * string/memrchr.c (MEMRCHR):
13866         * string/rawmemchr.c (RAWMEMCHR):
13867         * string/strchr.c (strchr):
13868         * string/strchrnul.c (STRCHRNUL):
13869         Rewrite code to avoid issues with signed shift overflow.
13870
13871 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13872
13873         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13874         whether cpuid is available only if HAS_CPUID is 0.
13875         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13876         (HAS_I586): Likewise.
13877         (HAS_I686): Likewise.
13878
13879 2015-08-18  Zack Weinberg  <zackw@panix.com>
13880
13881         * misc/Versions (libc): Add GLIBC_2.23.
13882
13883 2015-08-18  Alan Modra  <amodra@gmail.com>
13884
13885         [BZ #18421]
13886         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13887         .Lp__global.
13888         (_start): Load %dp via .Lp__global.
13889         [!SHARED]: Use .section .rodata.
13890
13891 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13892
13893         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13894         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13895
13896 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13897
13898         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13899         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13900
13901 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13902
13903         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13904         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13905
13906 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13907
13908         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13909         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13910
13911 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13912
13913         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13914         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13915
13916 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13917
13918         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13919         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13920
13921 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13922
13923         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13924
13925 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13926
13927         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13928         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13929         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13930         (__ASSUME_LWS_CAS): Delete.
13931
13932 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13933
13934         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13935         * sysdeps/hppa/configure: Regenerated.
13936         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13937         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13938         * sysdeps/hppa/nptl/tls.h: Likewise.
13939
13940 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13941
13942         [BZ #18823]
13943         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13944         for scaling up small arguments.
13945         * math/s_csqrtf.c (__csqrtf): Likewise.
13946         * math/s_csqrtl.c (__csqrtl): Likewise.
13947         * math/auto-libm-test-in: Add more tests of csqrt.
13948         * math/auto-libm-test-out: Regenerated.
13949
13950 2015-08-17  Andreas Schwab  <schwab@suse.de>
13951
13952         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13953         version set GLIBC_2.19.
13954
13955 2015-08-16  Zack Weinberg  <zackw@panix.com>
13956
13957         [BZ #18681]
13958         * misc/regexp.h: This interface is no longer supported.
13959         Remove all contents, leaving only an #error directive.
13960         * misc/regexp.c (loc1, loc2, locs, step, advance):
13961         Demote to compatibility symbols.
13962
13963 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13964
13965         [BZ #18084]
13966         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13967         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13968         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13969         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13970         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13971         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13972         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13973         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13974         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13975
13976 2015-08-15  Zack Weinberg  <zackw@panix.com>
13977
13978         [BZ #18795]
13979         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13980         buffer length is known to be too large, not if it's known to be
13981         small enough.
13982         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13983         overflow at runtime, involving a length parameter, twice: once
13984         with a compile-time constant length parameter, once without.
13985
13986 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13987
13988         [BZ #18824]
13989         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13990         scaling x * y up instead of down.
13991         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13992         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13993         * math/auto-libm-test-in: Add more tests of fma.
13994         * math/auto-libm-test-out: Regenerated.
13995
13996 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13997
13998         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13999
14000 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14001
14002         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
14003         unnecessary movq.
14004         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
14005         Likewise.
14006
14007 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
14008
14009         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
14010         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
14011         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
14012         and tgamma.
14013         * math/auto-libm-test-out: Regenerated.
14014         * sysdeps/i386/fpu/libm-test-ulps: Update.
14015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14016
14017         [BZ #16520]
14018         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
14019         (__tanh): Force underflow exception for arguments with small
14020         absolute value.
14021         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
14022         (__tanhf): Force underflow exception for arguments with small
14023         absolute value.
14024         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
14025         (__tanhl): Force underflow exception for arguments with small
14026         absolute value.
14027         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
14028         (__tanhl): Force underflow exception for arguments with small
14029         absolute value.
14030         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
14031         (__tanhl): Force underflow exception for arguments with small
14032         absolute value.
14033         * math/auto-libm-test-in: Add more tests of tanh.
14034         * math/auto-libm-test-out: Regenerated.
14035         * sysdeps/i386/fpu/libm-test-ulps: Update.
14036
14037 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14038
14039         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
14040         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
14041
14042 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14043
14044         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
14045         <cpuid.h>.
14046
14047 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14048
14049         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
14050         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
14051
14052 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14053
14054         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
14055         Remove $(objpfx)init-arch.o.
14056         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
14057         init-arch.
14058         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
14059         (INIT_ARCH_EXT): Defined as empty.
14060         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
14061         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
14062         __init_cpu_features call.  Replace HAS_XXX with
14063         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14064         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
14065         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
14066         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
14067         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
14068         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14069         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
14070         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
14071         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14072         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
14073         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
14074         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14075         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
14076         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
14077         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14078         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
14079         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
14080         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14081         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14082         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
14083         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
14084         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14085         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
14086         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
14087         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14088         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
14089         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
14090         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14091         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
14092         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
14093         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14094         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
14095         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
14096         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14097         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
14098         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
14099
14100 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14101
14102         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
14103         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14104         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14105         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14106         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
14107         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
14108         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
14109         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
14110         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
14111         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
14112         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
14113         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
14114         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14115         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14116         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14117         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14118         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14119         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14120         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14121         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14122         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14123         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14124         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14125         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14126         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14127         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14128         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14129         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14130         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14131         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14132         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14133         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14134         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14135         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14136         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14137         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14138         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14139         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14140         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14141         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14142         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14143         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14144         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14145
14146 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14147
14148         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14149         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14150         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14151         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14152         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14153         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14154         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14155         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14156         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14157         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14158         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14159         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14160         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14161         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14162         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14163         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14164         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14165         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14166         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14167         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14168         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14169         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14170         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14171         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14172         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14173         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14174         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14175         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14176         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14177         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14178         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14179         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14180         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14181         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14182         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14183         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14184         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14185         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14186         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14187         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14188         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14189         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14190         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14191
14192 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14193
14194         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14195         (dl_platform_init): Call init_cpu_features.
14196         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14197         * sysdeps/i386/i686/cacheinfo.c
14198         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14199         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14200         * sysdeps/i386/i686/multiarch/Versions: Removed.
14201         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14202         Removed.
14203         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14204         * sysdeps/unix/sysv/linux/x86/Makefile
14205         (libpthread-sysdep_routines): Remove init-arch.
14206         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14207         <sysdeps/x86_64/dl-procinfo.c> instead of
14208         sysdeps/generic/dl-procinfo.c>.
14209         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14210         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14211         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14212         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14213         [$(subdir) == elf] (tests-static): Add
14214         tst-get-cpu-features-static.
14215         * sysdeps/x86/Versions: New file.
14216         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14217         * sysdeps/x86/cpu-features.c: Likewise.
14218         * sysdeps/x86/cpu-features.h: Likewise.
14219         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14220         * sysdeps/x86/libc-start.c: Likewise.
14221         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14222         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14223         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14224         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14225         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14226         Assume USE_MULTIARCH is defined and don't check it.
14227         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14228         (is_amd): Likewise.
14229         (max_cpuid): Likewise.
14230         (intel_check_word): Likewise.
14231         (__cache_sysconf): Don't call __init_cpu_features.
14232         (__x86_preferred_memory_instruction): Removed.
14233         (init_cacheinfo): Don't call __init_cpu_features. Replace
14234         __cpu_features with GLRO(dl_x86_cpu_features).
14235         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14236         (dl_platform_init): Call init_cpu_features.
14237         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14238         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14239         * sysdeps/x86_64/multiarch/Versions: Removed.
14240         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14241         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14242         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14243         Removed.
14244         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14245
14246 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14247
14248         [BZ #18820]
14249         * libio/Makefile (test-fmemopen-mem): New test.
14250         * libio/test-fmemopen.c (do_bz18820): New test.
14251         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14252         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14253
14254 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14255
14256         [BZ #16734]
14257         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14258         (FREE_BUF): Delete.
14259         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14260         * libio/genops.c (_IO_setb): Use malloc and free directly.
14261         (_IO_default_doallocate, _IO_default_finish): Likewise.
14262         ( _IO_unbuffer_all): Likewise.
14263         ( libc_freeres_fn): Likewise.
14264         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14265         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14266         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14267         (_IO_wdefault_doallocate): Likewise.
14268
14269 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14270
14271         [BZ #18086]
14272         * sysdeps/posix/nice.c (nice): Restore old errno.
14273         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14274
14275 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14276
14277         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14278
14279 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14280
14281         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14282         __bcopy and add a weak_alias to bcopy.
14283         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14284         for static build.
14285
14286         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14287         cleanup macro usage.
14288         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14289         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14290         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14291         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14292         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14293         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14294         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14295         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14296         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14297         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14298         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14299         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14300         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14301         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14302         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14303         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14304         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14305         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14306         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14307
14308         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14309         libc_hidden_def.
14310         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14311
14312         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14313         (sysdep_routines): Add strstr-ppc64.
14314         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14315
14316 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14317
14318         [BZ #18778]
14319         * elf/Makefile (tests): Add Add tst-nodelete2.
14320         (modules-names): Add tst-nodelete2mod.
14321         (tst-nodelete2mod.so-no-z-defs): New.
14322         ($(objpfx)tst-nodelete2): Likewise.
14323         ($(objpfx)tst-nodelete2.out): Likewise.
14324         (LDFLAGS-tst-nodelete2): Likewise.
14325         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14326         out of loop through all loaded libraries.
14327         * elf/tst-nodelete2.c: New file.
14328         * elf/tst-nodelete2mod.c: Likewise.
14329         * elf/tst-znodelete-zlib.cc: Delete.
14330
14331 2015-08-11  Andreas Schwab  <schwab@suse.de>
14332
14333         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14334         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14335         (__openat64_nocancel): Likewise.
14336
14337 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14338
14339         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14340         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14341         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14342         * math/auto-libm-test-out: Regenerated.
14343         * sysdeps/i386/fpu/libm-test-ulps: Update.
14344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14345
14346 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14347
14348         [BZ #18790]
14349         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14350         threshold for returning +/- 1.
14351         * math/auto-libm-test-in: Add more tests of tanh.
14352         * math/auto-libm-test-out: Regenerated.
14353         * sysdeps/i386/fpu/libm-test-ulps: Update.
14354
14355 2015-08-10  Andreas Schwab  <schwab@suse.de>
14356
14357         [BZ #18781]
14358         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14359         MORE_OFLAGS to oflag.
14360         * io/test-lfs.c (do_test): Test openat64.
14361
14362 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14363
14364         [BZ #18789]
14365         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14366         smaller threshold for returning the argument.
14367         * math/auto-libm-test-in: Add more tests of sinh.
14368         * math/auto-libm-test-out: Regenerated.
14369         * sysdeps/i386/fpu/libm-test-ulps: Update.
14370
14371 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14372
14373         [BZ #18674]
14374         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14375         break.
14376
14377 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14378
14379         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14380         (generated): Don't add $(addprefix z.,$(tzfiles)).
14381
14382 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14383
14384         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14385         * scripts/sysd-rules.awk: Likewise.
14386
14387 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14388
14389         * iconvdata/tst-tables.sh: Change echo -n to printf.
14390         * nss/db-Makefile: Likewise.
14391         * posix/tst-getconf.sh: Likewise.
14392         * stdio-common/tst-unbputc.sh: Likewise.
14393
14394 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14395
14396         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14397         MADV_*_PAGES defines behind this feature check.
14398
14399 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14400
14401         [BZ #18480]
14402         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14403         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14404         Define.
14405         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14406         LOAD_REGS_5, LOAD_REGS_6): Update.
14407         (INTERNAL_SYSCALL): Update using new LOAD defines.
14408         (INTERNAL_SYSCALL_NCS): Likewise.
14409         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14410
14411 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14412
14413         [BZ #16734]
14414         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14415
14416 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14417
14418         [BZ #17905]
14419         * catgets/Makefile (tst-catgets-mem): New test.
14420         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14421         * catgets/open_catalog.c (__open_catalog): Likewise.
14422         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14423
14424 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14425
14426         [BZ #18787]
14427         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14428         clobber registers.
14429         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14430         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14431         Cast return to __typeof (oldval).
14432
14433 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14434
14435         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14436         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14437         and delete sys/syscall.h include.
14438
14439 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14440
14441         [BZ #16517]
14442         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14443         (tan): Force underflow exception for arguments with small absolute
14444         value.
14445         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14446         (__kernel_tanf): Force underflow exception for arguments with
14447         small absolute value.
14448         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14449         (__kernel_tanl): Force underflow exception for arguments with
14450         small absolute value.
14451         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14452         (__kernel_tanl): Force underflow exception for arguments with
14453         small absolute value.
14454         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14455         (__kernel_tanl): Force underflow exception for arguments with
14456         small absolute value.
14457         * math/auto-libm-test-in: Add more tests of tan.
14458         * math/auto-libm-test-out: Regenerated.
14459
14460 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14461
14462         Fix sysdeps/i386/fpu/s_scalbn.S build
14463
14464         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14465
14466 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14467
14468         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14469
14470 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14471
14472         Fix gcrt0.o compilation
14473
14474         When static-start-installed-name is different from
14475         start-installed-name, we must not use the shared objects.
14476
14477         * csu/Makefile
14478         (extra-objs): Add gmon-start.o when building shared library and
14479         $(static-start-installed-name) is different from
14480         $(start-installed-name).
14481         $(objpfx)g$(static-start-installed-name): When building shared
14482         library and $(static-start-installed-name) is different from
14483         $(static-start-installed-name), revert to non-shared rule,
14484         i.e. using $(objpfx)% and gmon-start.o.
14485
14486 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14487
14488         [BZ #16519]
14489         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14490         (__ieee754_sinh): Force underflow exception for arguments with
14491         small absolute value.
14492         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14493         (__ieee754_sinhf): Force underflow exception for arguments with
14494         small absolute value.
14495         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14496         (__ieee754_sinhl): Force underflow exception for arguments with
14497         small absolute value.
14498         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14499         (__ieee754_sinhl): Force underflow exception for arguments with
14500         small absolute value.
14501         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14502         (__ieee754_sinhl): Force underflow exception for arguments with
14503         small absolute value.
14504         * math/auto-libm-test-in: Add more tests of sinh.
14505         * math/auto-libm-test-out: Regenerated.
14506         * sysdeps/i386/fpu/libm-test-ulps: Update.
14507
14508 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14509
14510         * libio/oldfileops.c: Include unistd.h.
14511
14512 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14513
14514         * stdlib/isomac.c: Include ctype.h.
14515
14516 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14517
14518         * dirent/tst-seekdir.c (main): Converted to ...
14519         (do_test): ... this.
14520         (TEST_FUNCTION): New macro.
14521         Include test-skeleton.c.
14522         * elf/tst-dlmodcount.c (main): Converted to ...
14523         (do_test): ... this.
14524         (TEST_FUNCTION): New macro.
14525         Include test-skeleton.c.
14526         * elf/tst-order-main.c (main): Converted to ...
14527         (do_test): ... this.
14528         (TEST_FUNCTION): New macro.
14529         Include test-skeleton.c.
14530         * elf/tst-pie2.c (main): Converted to ...
14531         (do_test): ... this.
14532         (TEST_FUNCTION): New macro.
14533         Include test-skeleton.c.
14534         * inet/tst-ether_aton.c (main): Converted to ...
14535         (do_test): ... this.
14536         (TEST_FUNCTION): New macro.
14537         Include test-skeleton.c.
14538         * misc/tst-mntent.c (main): Converted to ...
14539         (do_test): ... this.
14540         (TEST_FUNCTION): New macro.
14541         Include test-skeleton.c.
14542         * misc/tst-tsearch.c (main): Converted to ...
14543         (do_test): ... this.
14544         (TEST_FUNCTION): New macro.
14545         Include test-skeleton.c.
14546         * posix/tst-regexloc.c (main): Converted to ...
14547         (do_test): ... this.
14548         (TEST_FUNCTION): New macro.
14549         Include test-skeleton.c.
14550         * resolv/tst-aton.c (main): Converted to ...
14551         (do_test): ... this.
14552         (TEST_FUNCTION): New macro.
14553         Include test-skeleton.c.
14554         * stdio-common/test-fwrite.c (main): Converted to ...
14555         (do_test): ... this.
14556         (TEST_FUNCTION): New macro.
14557         Include test-skeleton.c.
14558         * stdio-common/tst-ferror.c (main): Converted to ...
14559         (do_test): ... this.
14560         (TEST_FUNCTION): New macro.
14561         Include test-skeleton.c.
14562         * stdio-common/tst-printf.c (main): Converted to ...
14563         (do_test): ... this.
14564         (TEST_FUNCTION): New macro.
14565         Include test-skeleton.c.
14566         * stdio-common/tst-printfsz.c (main): Converted to ...
14567         (do_test): ... this.
14568         (TEST_FUNCTION): New macro.
14569         Include test-skeleton.c.
14570         * stdlib/tst-strtod.c (main): Converted to ...
14571         (do_test): ... this.
14572         (TEST_FUNCTION): New macro.
14573         Include test-skeleton.c.
14574         * string/tst-strlen.c (main): Converted to ...
14575         (do_test): ... this.
14576         (TEST_FUNCTION): New macro.
14577         Include test-skeleton.c.
14578         * string/tst-svc.c (main): Converted to ...
14579         (do_test): ... this.
14580         (TEST_FUNCTION): New macro.
14581         Include test-skeleton.c.
14582         * time/tst-strptime.c (main): Converted to ...
14583         (do_test): ... this.
14584         (TEST_FUNCTION): New macro.
14585         Include test-skeleton.c.
14586         * timezone/tst-timezone.c (main): Converted to ...
14587         (do_test): ... this.
14588         (TEST_FUNCTION): New macro.
14589         Include test-skeleton.c.
14590
14591 2015-08-05  Zack Weinberg  <zackw@panix.com>
14592
14593         * misc/regexp.h: Update comments.
14594
14595 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14596
14597         [BZ #18635]
14598         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14599         before return label.
14600
14601 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14602
14603         [BZ #18661]
14604         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14605         when calling __errno_location.
14606         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14607         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14608
14609 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14610
14611         [BZ #18661]
14612         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14613         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14614         __gettimeofday.
14615
14616 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14617
14618         [BZ #18661]
14619         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14620         (__start_context): Don't use pop to restore %rdi so that stack
14621         is aligned to 16 bytes when calling __setcontext.
14622
14623 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14624
14625         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14626         only for libc.
14627         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14628
14629 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14630
14631         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14632         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14633         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14634
14635 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14636
14637         * string/memccpy.c (memccpy):
14638         Improve performance by using memchr/memcpy/__mempcpy.
14639
14640 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14641
14642         * string/strncpy.c (strncpy):
14643         Improve performance by using __strnlen/memcpy.
14644
14645 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14646
14647         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14648         Optimize to avoid an unnecessary FPCR read.
14649
14650 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14651
14652         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14653         Optimize to reduce FPCR/FPSR accesses.
14654
14655 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14656
14657         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14658         dead->data[category] != NULL.
14659
14660 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14661
14662         [BZ #18647]
14663         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14664         and |x| close to 1, use absolute value of x when computing log.
14665         * math/auto-libm-test-in: Add more tests of pow.
14666         * math/auto-libm-test-out: Regenerated.
14667
14668 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14669
14670         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14671         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14672         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14673
14674 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14675
14676         [BZ #18525]
14677         * locales/km_KH: Remove timezone definition.
14678         * locales/lo_LA: Likewise.
14679         * locales/my_MM: Likewise.
14680         * locales/nan_TW@latin: Likewise.
14681         * locales/th_TH: Likewise.
14682         * locales/uk_UA: Likewise.
14683
14684 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14685
14686         [BZ #18265]
14687         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14688         (wcsncat): Likewise.
14689         (wcscmp): Likewise.
14690         (wcsncmp): Likewise.
14691
14692 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14693
14694         * test-skeleton.c (usage): New function.
14695         (main): Call usage when opt is '?'.
14696
14697 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14698
14699         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14700         before first use.
14701
14702 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14703
14704         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14705         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14706         in there too.
14707
14708 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14709
14710         * version.h (RELEASE): Set to "development".
14711         (VERSION): Set to "2.22.90"
14712
14713         * version.h (RELEASE): Set to "stable".
14714         (VERSION): Set to "2.22"
14715         * include/features.h (__GLIBC_MINOR__): Set to 22.
14716
14717 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14718
14719         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14720         Restructure macro to avoid "value computed is not used" warning.
14721         (atomic_compare_and_exchange_val_acq): Likewise.
14722
14723 2015-08-04  Andreas Schwab  <schwab@suse.de>
14724
14725         [BZ #18635]
14726         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14727         ret.
14728         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14729
14730 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14731
14732         * po/pl.po: Updated translation.
14733         * po/uk.po: Likewise.
14734         * po/fi.po: Likewise.
14735         * po/ko.po: Likewise.
14736         * po/ru.po: Likewise.
14737         * po/vi.po: Likewise.
14738
14739 2015-07-31  Zack Weinberg  <zackw@panix.com>
14740
14741         [BZ #18681]
14742         * regexp.h: Add unconditional #warning stating that this header
14743         will be removed soon.  Revise banner comment to match.
14744         (compile): Consistently use ERROR instead of RETURN to report
14745         errors (partial fix for bz#18681).
14746         * regexp.c: Don't include regexp.h. Remove some unnecessary
14747         declarations.
14748
14749 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14750
14751         * po/libc.pot: Regenerated.
14752
14753 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14754
14755         [BZ #18740]
14756         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14757         float-vlen4-arch-ext-cflags): Removed.
14758         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14759         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14760
14761 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14762
14763         [BZ #14113]
14764         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14765         aligned to __aligned__.
14766         (pthread_cond_t, pthread_rwlock_t): Likewise.
14767
14768 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14769
14770         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14771
14772 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14773
14774         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14775         (struct sigaction): Change sa_flags from a long to an int, and add
14776         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14777
14778 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14779
14780         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14781         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14782         sysdeps/generic/sysdep.h include.
14783         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14784         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14785         sysdeps/hppa/sysdep.h.
14786         (ENTRY, PSEUDO): Undefine before defining.
14787
14788 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14789
14790         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14791         from scratch to use INTERNAL_SYSCALL.
14792
14793 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14794
14795         [BZ #18078]
14796         * scripts/check-localplt.awk: Support alternate relocations.
14797         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14798         sections.
14799         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14800         malloc entries with + REL R_386_GLOB_DAT.
14801         * sysdeps/x86_64/localplt.data: New file.
14802
14803 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14804
14805         [BZ #18731]
14806         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14807         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14808         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14809
14810 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14811
14812         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14813
14814 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14815
14816         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14817         directly in terms of __sync_fetch_and_add and delete (int) cast.
14818
14819 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14820
14821         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14822         the -D_ASM_IA64_CURRENT_H flag.
14823
14824 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14825
14826         [BZ #18641]
14827         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14828
14829 2015-07-27  Andreas Schwab  <schwab@suse.de>
14830
14831         * conform/conformtest.pl (checknamespace): Filter out string
14832         literals while tokenizing.
14833
14834 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14835
14836         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14837         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14838         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14839
14840 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14841
14842         * nptl/tst-join7mod.c: Add #include <string.h>.
14843
14844 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14845
14846         * sysdeps/nios2/libm-test-ulps: Update.
14847
14848 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14849
14850         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14851         Fix order of arguments to the rt_sigprocmask syscall.
14852         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14853         Likewise.
14854
14855 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14856
14857         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14858
14859 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14860
14861         [BZ #18457]
14862         * nptl/Makefile (tests): New test case tst-join7.
14863         (modules-names): New test case module tst-join7mod.
14864         * nptl/tst-join7.c: New file.
14865         * nptl/tst-join7mod.c: New file.
14866         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14867         all translation units in libc.so, libpthread.so and rtld.
14868
14869 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14870
14871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14872
14873 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14874
14875         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14876         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14877         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14878         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14879         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14880         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14881         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14882         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14883         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14884         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14885         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14886         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14887         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14888         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14889         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14890         implementation.
14891
14892 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14893
14894         [BZ #17711]
14895         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14896         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14897         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14898         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14899         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14900         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14901
14902 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14903
14904         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14905         instead of just saying load lock in the comments.
14906
14907 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14908
14909         * sysdeps/unix/Subdirs: Moved ...
14910         * sysdeps/posix/Subdirs: ... here.
14911         * login/pty.h (struct termios, struct winsize): Add forward decls.
14912         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14913         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14914         * sysdeps/arm/nacl/libc.abilist: Updated.
14915         * sysdeps/nacl/libutil.abilist: New file.
14916
14917         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14918         (SIGWINCH): New macro.
14919
14920         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14921         * sysdeps/arm/nacl/libc.abilist: Add it.
14922
14923 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14924
14925         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14926
14927 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14928
14929         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14930         Swap __glibc_reserved0 and sa_flags order.
14931
14932 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14933
14934         [BZ #18657]
14935         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14936         are pending TLS destructor calls.
14937         * include/link.h (struct link_map): Add concurrency note for
14938         L_TLS_DTOR_COUNT.
14939         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14940         Don't touch the link map flag.  Atomically increment
14941         l_tls_dtor_count.
14942         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14943         Avoid taking the load lock and don't touch the link map flag.
14944         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14945         * stdlib/Makefile (tests): Use it.
14946         * stdlib/tst-tls-atexit.c (do_test): dlopen
14947         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14948         to allow tst-tls-atexit-nodelete test case to use it.
14949
14950 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14951
14952         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14953         to bits/types.h.
14954         (msgqnum_t): New typedef.
14955         (msglen_t): Likewise.
14956         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14957         and msg_qbytes type to msglen_t.
14958
14959 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14960
14961         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14962         pad0 to __glibc_reserved0.
14963         (struct stat64): Likewise.
14964
14965 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14966
14967         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14968         Change sa_flags from a long to an int and add __glibc_reserved0 before
14969         it for padding.
14970
14971 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14972
14973         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14974         anonymous by deleting "siginfo" name.
14975
14976 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14977
14978         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14979         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14980         rather than __nacl_irt_filename.
14981         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14982
14983         * NEWS: New item for arm-nacl port.
14984         * sysdeps/arm/nacl/libc.abilist: New file.
14985         * sysdeps/nacl/ld.abilist: New file.
14986         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14987         * sysdeps/nacl/libanl.abilist: New file.
14988         * sysdeps/nacl/libcrypt.abilist: New file.
14989         * sysdeps/nacl/libdl.abilist: New file.
14990         * sysdeps/nacl/libm.abilist: New file.
14991         * sysdeps/nacl/libpthread.abilist: New file.
14992         * sysdeps/nacl/libresolv.abilist: New file.
14993         * sysdeps/nacl/librt.abilist: New file.
14994
14995 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14996
14997         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14998         __startcontext to initialize the new context.
14999         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
15000         up CFI directive to forbid further backtracing.
15001
15002 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
15003
15004         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
15005         reference.
15006         * charmaps/ANSI_X3.4-1968: Likewise.
15007         * charmaps/BS_4730: Likewise.
15008         * charmaps/BS_VIEWDATA: Likewise.
15009         * charmaps/CP1250: Likewise.
15010         * charmaps/CP1251: Likewise.
15011         * charmaps/CP1252: Likewise.
15012         * charmaps/CP1253: Likewise.
15013         * charmaps/CP1254: Likewise.
15014         * charmaps/CP1255: Likewise.
15015         * charmaps/CP1256: Likewise.
15016         * charmaps/CSN_369103: Likewise.
15017         * charmaps/EBCDIC-DK-NO: Likewise.
15018         * charmaps/GB_1988-80: Likewise.
15019         * charmaps/GREEK-CCITT: Likewise.
15020         * charmaps/GREEK7: Likewise.
15021         * charmaps/INIS-8: Likewise.
15022         * charmaps/ISIRI-3342: Likewise.
15023         * charmaps/ISO_2033-1983: Likewise.
15024         * charmaps/ISO_5427-EXT: Likewise.
15025         * locales/POSIX: Likewise.
15026         * locales/ar_SA: Likewise.
15027         * locales/be_BY: Likewise.
15028         * locales/be_BY@latin: Likewise.
15029         * locales/ca_ES: Likewise.
15030         * locales/cs_CZ: Likewise.
15031         * locales/da_DK: Likewise.
15032         * locales/de_BE: Likewise.
15033         * locales/de_CH: Likewise.
15034         * locales/de_LU: Likewise.
15035         * locales/en_AU: Likewise.
15036         * locales/en_BW: Likewise.
15037         * locales/en_CA: Likewise.
15038         * locales/en_DK: Likewise.
15039         * locales/en_GB: Likewise.
15040         * locales/en_IE: Likewise.
15041         * locales/en_NZ: Likewise.
15042         * locales/en_ZA: Likewise.
15043         * locales/en_ZW: Likewise.
15044         * locales/es_AR: Likewise.
15045         * locales/es_BO: Likewise.
15046         * locales/es_CL: Likewise.
15047         * locales/es_CO: Likewise.
15048         * locales/es_DO: Likewise.
15049         * locales/es_EC: Likewise.
15050         * locales/es_ES: Likewise.
15051         * locales/es_HN: Likewise.
15052         * locales/es_MX: Likewise.
15053         * locales/es_PA: Likewise.
15054         * locales/es_PE: Likewise.
15055         * locales/es_PY: Likewise.
15056         * locales/es_SV: Likewise.
15057         * locales/es_US: Likewise.
15058         * locales/es_UY: Likewise.
15059         * locales/es_VE: Likewise.
15060         * locales/et_EE: Likewise.
15061         * locales/fa_IR: Likewise.
15062         * locales/fo_FO: Likewise.
15063         * locales/fr_CA: Likewise.
15064         * locales/fr_CH: Likewise.
15065         * locales/gv_GB: Likewise.
15066         * locales/he_IL: Likewise.
15067         * locales/hr_HR: Likewise.
15068         * locales/id_ID: Likewise.
15069         * locales/is_IS: Likewise.
15070         * locales/it_CH: Likewise.
15071         * locales/iw_IL: Likewise.
15072         * locales/kl_GL: Likewise.
15073         * locales/ko_KR: Likewise.
15074         * locales/kw_GB: Likewise.
15075         * locales/lg_UG: Likewise.
15076         * locales/lt_LT: Likewise.
15077         * locales/lv_LV: Likewise.
15078         * locales/mi_NZ: Likewise.
15079         * locales/nhn_MX: Likewise.
15080         * locales/nl_BE: Likewise.
15081         * locales/pl_PL: Likewise.
15082         * locales/sk_SK: Likewise.
15083         * locales/sl_SI: Likewise.
15084         * locales/sv_FI: Likewise.
15085         * locales/tl_PH: Likewise.
15086         * locales/tr_TR: Likewise.
15087         * locales/vi_VN: Likewise.
15088
15089 2015-07-21  Khem Raj  <raj.khem@gmail.com>
15090
15091         [BZ #17475]
15092         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
15093         of tu_IN and bh_IN.
15094
15095 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15096
15097         [BZ #18694]
15098         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
15099         bits/wordsize.h.
15100         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
15101
15102 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15103
15104         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
15105         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
15106         (spawn_thread): New function.
15107         (load): Rename to reg_dtor_and_close.  Move dlopen to...
15108         (do_test): ... here.  Use IS_LOADED to test for its
15109         availability.
15110
15111 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
15112
15113         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
15114
15115 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15116
15117         [BZ #18696]
15118         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
15119         si_addr_bnd.
15120         (si_lower): New.
15121         (si_upper): Likewise.
15122
15123 2015-07-16  David S. Miller  <davem@davemloft.net>
15124
15125         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15126
15127 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15128
15129         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15130         buffer.
15131         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15132         fail output information.
15133
15134 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15135
15136         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15137         and strstr-ppc64..
15138         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15139         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15140         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15141         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15142         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15143
15144 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15145
15146         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15147         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15148         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15149         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15150
15151 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15152
15153         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15154         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15155         rtld_hidden_proto.
15156         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15157
15158 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15159
15160         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15161         the test can fail.
15162
15163         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15164
15165         [BZ #18676]
15166         * elf/tst-nodelete-opened.c: New test case.
15167         * elf/tst-nodelete-opened-lib.c: New test case module.
15168         * elf/Makefile (tests, modules-names): Use them.
15169         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15170         early.
15171
15172 2015-07-15  David S. Miller  <davem@davemloft.net>
15173
15174         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15175         futex-intenal.h
15176         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15177         * sysdeps/sparc/sparc64/Makefile: Likewise.
15178         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15179         Remove space from macro define.
15180         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15181
15182 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15183
15184         [BZ #17475]
15185         * locale/iso-639.def: Update Bhili and Tulu language codes as
15186         per iso639-3.
15187
15188 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15189
15190         * elf/tst-leaks1.c (main): Converted to ...
15191         (do_test): ... this.
15192         (TEST_FUNCTION): New macro.
15193         Include test-skeleton.c.
15194         * localedata/tst-langinfo.c (main): Converted to ...
15195         (do_test): ... this.
15196         (TEST_FUNCTION): New macro.
15197         Include test-skeleton.c.
15198         * math/test-fpucw.c (main): Converted to ...
15199         (do_test): ... this.
15200         (TEST_FUNCTION): New macro.
15201         Include test-skeleton.c.
15202         * math/test-tgmath.c (main): Converted to ...
15203         (do_test): ... this.
15204         (TEST_FUNCTION): New macro.
15205         Include test-skeleton.c.
15206         * math/test-tgmath2.c (main): Converted to ...
15207         (do_test): ... this.
15208         (TEST_FUNCTION): New macro.
15209         Include test-skeleton.c.
15210         * setjmp/tst-setjmp.c (main): Converted to ...
15211         (do_test): ... this.
15212         (TEST_FUNCTION): New macro.
15213         Include test-skeleton.c.
15214         * stdio-common/tst-sscanf.c (main): Converted to ...
15215         (do_test): ... this.
15216         (TEST_FUNCTION): New macro.
15217         Include test-skeleton.c.
15218         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15219         (do_test): ... this.
15220         (TEST_FUNCTION): New macro.
15221         Include test-skeleton.c.
15222
15223         * elf/tst-audit9.c (main): Converted to ...
15224         (do_test): ... this.
15225         (TEST_FUNCTION): New macro.
15226         Include test-skeleton.c.
15227
15228 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15229
15230         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15231
15232 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15233
15234         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15235         New variable.
15236
15237 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15238
15239         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15240
15241 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15242
15243         * sysdeps/generic/dl-fileid.h: New file.
15244         * sysdeps/posix/dl-fileid.h: New file.
15245         * sysdeps/nacl/dl-fileid.h: New file.
15246         * include/link.h: Include <dl-fileid.h>.
15247         (struct link_map): Replace l_dev and l_ino with l_file_id.
15248         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15249         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15250         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15251
15252 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15253
15254         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15255
15256 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15257
15258         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15259         Add iff $CXX is set.
15260         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15261         Likewise.
15262         (tst-nodelete-zmodiff): Likewise.
15263         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15264
15265 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15266
15267         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15268
15269 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15270
15271         * sysdeps/aarch64/fpu/math_private.h
15272         (define math_opt_barrier): Add AArch64 version.
15273         (math_force_eval): Likewise.
15274
15275 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15276
15277         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15278
15279 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15280
15281         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15282         %ld with %jd and cast to intmax_t.
15283         (do_test_length_zero): Likewise.
15284
15285 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15286
15287         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15288
15289 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15290
15291         * sysdeps/tile/libm-test-ulps: Regenerated.
15292
15293         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15294         Comment out the whole function, not just its body.
15295
15296 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15297
15298         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15299         locks.
15300
15301         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15302
15303 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15304
15305         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15306         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15307
15308 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15309
15310         * sysdeps/nptl/futex-internal.h: New file.
15311         * sysdeps/nacl/futex-internal.h: New file.
15312         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15313         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15314         error checking.
15315         (setxid_unmark_thread): Likewise.
15316         (__nptl_setxid): Likewise.
15317         (__wait_lookup_done): Likewise.
15318         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15319         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15320         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15321         * nptl/pthread_once.c (clear_once_control): Likewise.
15322         (__pthread_once_slow): Likewise.
15323         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15324         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15325         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15326         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15327         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15328         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15329         Likewise.
15330         (__pthread_rwlock_rdlock): Likewise.
15331         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15332         Likewise.
15333         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15334         Likewise.
15335         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15336         Likewise.
15337         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15338         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15339         Likewise.
15340         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15341         __ASSUME_PRIVATE_FUTEX check.
15342         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15343         Check that shared futexes are supported.
15344         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15345         wrappers with error checking.
15346         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15347         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15348         * nptl/pthread_barrierattr_setpshared.c
15349         (pthread_barrierattr_setpshared): Check that shared futexes are
15350         supported.
15351         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15352         Likewise.
15353         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15354         Likewise.
15355         * nptl/sem_init.c (futex_private_if_supported): Remove.
15356         (__new_sem_init): Adapt and check that shared futexes are supported.
15357         * nptl/sem_open.c (sem_open): Likewise.
15358         * nptl/sem_post.c (futex_wake): Remove.
15359         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15360         (do_futex_wait): Use futex wrappers with error checking.
15361         * nptl/sem_wait.c: Include lowlevellock.h.
15362         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15363         Use futex_supports_pshared.
15364         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15365         Use futex wrappers with error checking.
15366         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15367         Likewise.
15368         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15369         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15370         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15371         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15372         (futex_wake): Likewise.
15373         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15374         (do_futex_wait): Use futex wrappers with error checking.
15375         (__new_sem_wait_slow): Update EINTR handling.
15376         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15377
15378 2015-07-09  Martin Sebor  <msebor@redhat.com>
15379
15380         [BZ #18435]
15381         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15382         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15383         * nptl/Makefile (test-xfail-tst-once5): Define.
15384
15385 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15386
15387         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15388         * elf/dl-minimal.c: For readability, reorder some definitions and
15389         introduce more page breaks.  Include <stdio.h>.
15390         (__libc_fatal): New function.
15391
15392         * include/unistd.h: Add rtld_hidden_proto for _exit.
15393         * posix/_exit.c: Add rtld_hidden_def.
15394         * sysdeps/mach/hurd/_exit.c: Likewise.
15395         * sysdeps/nacl/_exit.c: Likewise.
15396         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15397         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15398
15399 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15400
15401         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15402         bndmov encoding with zero displacement.
15403
15404 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15405             H.J. Lu  <hongjiu.lu@intel.com>
15406
15407         [BZ #18134]
15408         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15409         * sysdeps/i386/configure: Regenerated.
15410         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15411         (_dl_runtime_profile): Save and restore Intel MPX return bound
15412         registers when calling _dl_call_pltexit.  Add
15413         PRESERVE_BND_REGS_PREFIX before return.
15414         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15415         (LRV_BND1_OFFSET): Likewise.
15416         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15417         lrv_bnd1.
15418         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15419         typo in bndmov encoding.
15420         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15421         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15422         branch instructions to preserve bounds.
15423
15424 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15425
15426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15427         [GLIBC_2.22]: Add fmemopen.
15428
15429 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15430
15431         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15432         returns an error, also try to use host port from __mach_host_self for
15433         the __vm_wire call.
15434         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15435
15436 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15437
15438         [BZ #18400]
15439         [BZ #18648]
15440         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15441         Fix pr_uid and pr_gid members.
15442         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15443         definition to elf_greg_t.
15444
15445 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15446
15447         [BZ #18383]
15448         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15449         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15450         * sysdeps/arm/configure: Regenerated.
15451         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15452         (test-xfail-tst-tlsalign-static): Variable removed.
15453
15454         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15455         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15456         rather than explicit 'ln -s'.
15457
15458         * resolv/rpc/netdb.h: New file.
15459         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15460
15461 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15462
15463         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15464         length buffers.
15465         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15466         test-skeleton.c.
15467
15468         [BZ #6544]
15469         [BZ #11216]
15470         [BZ #12836]
15471         [BZ #13151]
15472         [BZ #13152]
15473         [BZ #14292]
15474         * include/stdio.h (fmemopen): Remove hidden prototype.
15475         (__fmemopen): Add new hidden prototype.
15476         * libio/Makefile: Add oldfmemopen object.
15477         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15478         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15479         compliance.
15480         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15481         symbol compatibility.
15482         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15483         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15484         fmemopen.
15485         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15486         on append and read mode.
15487         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15488         fmemopen.
15489         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15490         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15491         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15492         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15493         Likewise.
15494         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15495         [GLIBC_2.22]: Likewise.
15496         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15497         Likewise.
15498         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15499         Likewise.
15500         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15501         [GLIBC_2.22]: Likewise.
15502         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15503         [GLIBC_2.22]: Likewise.
15504         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15505         [GLIBC_2.22]: Likewise.
15506         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15507         [GLIBC_2.22]: Likewise.
15508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15509         [GLIBC_2.22]: Likewise.
15510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15511         [GLIBC_2.22]: Likewise.
15512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15513         [GLIBC_2.22]: Likewise.
15514         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15515         Likewise.
15516         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15517         Likewise.
15518         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15519         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15520         [GLIBC_2.22]: Likewise.
15521         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15522         [GLIBC_2.22]: Likewise.
15523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15524         [GLIBC_2.22]: Likewise.
15525         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15526         [GLIBC_2.22]: Likewise.
15527         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15528         Likewise.
15529         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15530         Likewise.
15531         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15532         Likewise.
15533         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15534         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15535
15536 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15537
15538         [BZ #18643]
15539         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15540         IPV6_PATHMTU, and IPV6_DONTFRAG.
15541
15542 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15543
15544         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15545         and _IO_UNBUFFERED.
15546         * libio/oldfileops.c: Likewise.
15547         * libio/wfileops.c: Likewise.
15548
15549 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15550
15551         * nscd/selinux.c: Delete selinux/flask.h include.
15552
15553 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15554
15555         [BZ #18641]
15556         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15557         (putpwent): Likewise.
15558         (getpwnam): Likewise.
15559         (getpwent_r): Likewise.
15560         (getpwuid_r): Likewise.
15561         (getpwnam_r): Likewise.
15562         (fgetpwent_r): Likewise.
15563
15564 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15565
15566         [BZ #18557]
15567         * inet/rcmd.c (__validuser2_sa): Check user first to
15568         short-circuit host check.
15569
15570 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15571             Mikhail Ilin  <m.ilin@samsung.com>
15572
15573         [BZ #17833]
15574         * elf/Makefile (tests): Add tst-nodelete.
15575         (modules-names): Add tst-nodelete-uniquemod.
15576         (tst-nodelete-uniquemod.so-no-z-defs): New.
15577         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15578         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15579         ($(objpfx)tst-nodelete): Likewise.
15580         ($(objpfx)tst-nodelete.out): Likewise.
15581         (LDFLAGS-tst-nodelete): Likewise.
15582         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15583         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15584         implement forced object deletion.
15585         (_dl_close): Pass false to _dl_close_worker.
15586         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15587         * elf/tst-nodelete.cc: New file.
15588         * elf/tst-nodeletelib.cc: Likewise.
15589         * elf/tst-znodeletelib.cc: Likewise.
15590         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15591
15592 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15593
15594         [BZ #18508]
15595         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15596         Depend on $(libdl).
15597         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15598         is not called infinitely times.
15599         (backtrace_helper): New function.
15600         (trace_arg): New struct.
15601         (st1): Enlarge stack size.
15602         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15603         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15604         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15605         Likewise.
15606
15607 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15608
15609         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15610
15611 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15612
15613         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15614         Include sys/types.h instead of bits/types.h.
15615         Remove inclusion of bits/wordsize.h.
15616
15617 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15618
15619         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15620         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15621         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15622         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15623         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15624         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15625
15626 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15627
15628         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15629         link-defines.sym.
15630         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15631         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15632         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15633         and LR_SIZE.
15634         * sysdeps/i386/link-defines.sym: New file.
15635
15636 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15637
15638         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15639         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15640         ($(objpfx)tst-audit3): New rule.
15641         ($(objpfx)tst-audit3.out): Likewise.
15642         * sysdeps/i386/tst-audit3.c: New file.
15643         * sysdeps/i386/tst-audit3.h: Likewise.
15644         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15645         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15646
15647 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15648
15649         [BZ #18633]
15650         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15651         pointer in C code.
15652         (__strcat_c): Likewise.
15653         (__strcat_g): Likewise.
15654
15655 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15656
15657         [BZ #18592]
15658         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15659
15660 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15661
15662         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15663         New function.  (__ieee754_sqrtf): New function.
15664         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15665         New function.
15666         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15667         New function.
15668
15669 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15670
15671         * sysdeps/ieee754/support.c: Remove unused file.
15672
15673 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15674
15675         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15676         registers instead of d ones so the layout is kernel abi compatible.
15677         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15678         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15679         Likewise.
15680
15681 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15682
15683         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15684
15685 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15686
15687         [BZ #18619]
15688         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15689         and return argument in case of subnormal argument.
15690
15691 2015-07-01  Martin Sebor  <msebor@redhat.com>
15692
15693         [BZ #18435]
15694         * nptl/Makefile: Add tst-once5.cc.
15695         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15696         Remove macro redefinitions.
15697         * nptl/tst-once5.cc: New test.
15698
15699 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15700
15701         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15702
15703         * sysdeps/arm/libm-test-ulps: Regenerated.
15704
15705         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15706         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15707
15708 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15709
15710         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15711         lll_lock_wait_private and lll_futex_wake probes.
15712
15713         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15714         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15715         Likewise.
15716         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15717         atomic_spin_nop.
15718         * sysdeps/x86_64/bits/atomic.h: Likewise.
15719         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15720         to atomic_spin_nop and move ...
15721         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15722         ... here and ...
15723         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15724         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15725         atomic_spin_nop instead of BUSY_WAIT_NOP.
15726         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15727         Likewise.
15728         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15729         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15730         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15731         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15732         instead of atomic_delay.
15733
15734 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15735
15736         [BZ #18613]
15737         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15738         X_ADJ not X when adjusting exponent.
15739         (__ieee754_gamma_r): Do intermediate computations in
15740         round-to-nearest then adjust overflowing and underflowing results
15741         as needed.
15742         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15743         of X_ADJ not X when adjusting exponent.
15744         (__ieee754_gammaf_r): Do intermediate computations in
15745         round-to-nearest then adjust overflowing and underflowing results
15746         as needed.
15747         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15748         log of X_ADJ not X when adjusting exponent.
15749         (__ieee754_gammal_r): Do intermediate computations in
15750         round-to-nearest then adjust overflowing and underflowing results
15751         as needed.  Use 1.0L not 1.0f as numerator of division.
15752         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15753         log of X_ADJ not X when adjusting exponent.
15754         (__ieee754_gammal_r): Do intermediate computations in
15755         round-to-nearest then adjust overflowing and underflowing results
15756         as needed.  Use 1.0L not 1.0f as numerator of division.
15757         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15758         of X_ADJ not X when adjusting exponent.
15759         (__ieee754_gammal_r): Do intermediate computations in
15760         round-to-nearest then adjust overflowing and underflowing results
15761         as needed.  Use 1.0L not 1.0f as numerator of division.
15762         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15763         to auto-libm-test-in.
15764         (tgamma_test): Use ALL_RM_TEST.
15765         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15766         tests of tgamma with spurious-overflow.
15767         * math/auto-libm-test-out: Regenerated.
15768         * math/gen-libm-have-vector-test.sh: Do not check for START.
15769         * sysdeps/i386/fpu/libm-test-ulps: Update.
15770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15771
15772         [BZ #18612]
15773         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15774         arguments, just return 0.5 times the argument, with underflow
15775         forced as needed.
15776         * math/auto-libm-test-in: Add more tests of j1.
15777         * math/auto-libm-test-out: Regenerated.
15778
15779         [BZ #16559]
15780         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15781         (__ieee754_j1): Force underflow exception for small results.
15782         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15783         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15784         (__ieee754_j1f): Force underflow exception for small results.
15785         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15786         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15787         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15788         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15789         (__ieee754_j1l): Force underflow exception for small results.
15790         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15791         * math/auto-libm-test-in: Add more tests of j1 and jn.
15792         * math/auto-libm-test-out: Regenerated.
15793
15794         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15795         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15796         (PF_MPLS): Likewise.
15797         (AF_IB): Likewise.
15798         (AF_MPLS): Likewise.
15799         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15800         value and macro.
15801         (MS_RMT_MASK): Include MS_LAZYTIME.
15802
15803 2015-06-26  Mel Gorman  <mgorman@suse.de>
15804
15805         [BZ #18502]
15806         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15807         already minimal.
15808
15809 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15810
15811         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15812         (DT_MIPS_NUM): Update.
15813         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15814         DT_MIPS_RLD_MAP_REL.
15815
15816 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15817
15818         [BZ #16559]
15819         [BZ #18602]
15820         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15821         round-to-nearest internally then recompute results that
15822         underflowed to zero in the original rounding mode.
15823         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15824         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15825         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15826         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15827         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15828         * sysdeps/i386/fpu/libm-test-ulps: Update.
15829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15830
15831 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15832
15833         * NEWS: Fixed description of link with vector math library.
15834
15835 2015-06-25  Andreas Schwab  <schwab@suse.de>
15836
15837         [BZ #18549]
15838         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15839         * libio/test-fmemopen.c (do_test): Add test for it.
15840
15841 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15842
15843         [BZ #17841]
15844         * Makeconfig (no-pie-ldflag): New.
15845         (+link): Set to $(+link-pie) if default to PIE.
15846         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15847         * config.make.in (build-pie-default): New.
15848         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15849         is default.  AC_SUBST.
15850         * configure: Regenerated.
15851         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15852
15853 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15854
15855         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15856         to 'unsigned int'.
15857
15858         * resolv/gai_misc.h (struct waitlist): Change type of field
15859         counterp to 'volatile unsigned int *'.
15860         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15861         FUTEXADDR and OLDVAL.
15862         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15863         Give local variable TOTAL type 'volatile unsigned int'.
15864         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15865         * resolv/gai_suspend.c (gai_suspend):
15866         Give local variable CNTR type 'unsigned int'.
15867
15868         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15869         counterp to 'volatile unsigned int *'.
15870         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15871         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15872         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15873         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15874         Give local variable TOTAL type 'volatile unsigned int'.
15875         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15876
15877 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15878
15879         [BZ #18383]
15880         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15881         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15882         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15883         comment for i386/x86-64.
15884         (test-xfail-tst-tlsalign-extern-static): Removed.
15885
15886 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15887
15888         * math/test-double.h: New file.
15889         * math/test-float.h: Likewise.
15890         * math/test-ldouble.h: Likewise.
15891         * math/test-math-inline.h: Likewise.
15892         * math/test-math-no-inline.h: Likewise.
15893         * math/test-math-scalar.h: Likewise.
15894         * math/test-math-vector.h: Likewise.
15895         * math/test-vec-loop.h: Remove file.  Contents moved into
15896         test-math-vector.h.
15897         * math/libm-test.inc (MATHCONST): Do not document macro.
15898         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15899         and test-math-scalar.h.
15900         (FUNC): Remove macro.
15901         (FUNC_TEST): Likewise.
15902         (FLOAT): Likewise.
15903         (MATHCONST): Likewise.
15904         (PRINTF_EXPR): Likewise.
15905         (PRINTF_XEXPR): Likewise.
15906         (PRINTF_NEXPR): Likewise.
15907         (TEST_DOUBLE): Likewise.
15908         (TEST_MATHVEC): Likewise.
15909         (__NO_MATH_INLINES): Likewise.
15910         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15911         and test-math-scalar.h.
15912         (FUNC): Remove macro.
15913         (FUNC_TEST): Likewise.
15914         (FLOAT): Likewise.
15915         (MATHCONST): Likewise.
15916         (PRINTF_EXPR): Likewise.
15917         (PRINTF_XEXPR): Likewise.
15918         (PRINTF_NEXPR): Likewise.
15919         (TEST_FLOAT): Likewise.
15920         (TEST_MATHVEC): Likewise.
15921         (__NO_MATH_INLINES): Likewise.
15922         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15923         and test-math-scalar.h.
15924         (FUNC): Remove macro.
15925         (FUNC_TEST): Likewise.
15926         (FLOAT): Likewise.
15927         (MATHCONST): Likewise.
15928         (PRINTF_EXPR): Likewise.
15929         (PRINTF_XEXPR): Likewise.
15930         (PRINTF_NEXPR): Likewise.
15931         (TEST_DOUBLE): Likewise.
15932         (TEST_MATHVEC): Likewise.
15933         (TEST_INLINE): Likewise.
15934         (__NO_MATH_INLINES): Likewise.
15935         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15936         test-math-scalar.h.
15937         (FUNC): Remove macro.
15938         (FUNC_TEST): Likewise.
15939         (FLOAT): Likewise.
15940         (MATHCONST): Likewise.
15941         (PRINTF_EXPR): Likewise.
15942         (PRINTF_XEXPR): Likewise.
15943         (PRINTF_NEXPR): Likewise.
15944         (TEST_FLOAT): Likewise.
15945         (TEST_MATHVEC): Likewise.
15946         (TEST_INLINE): Likewise.
15947         (__NO_MATH_INLINES): Likewise.
15948         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15949         and test-math-scalar.h.
15950         (FUNC): Remove macro.
15951         (FUNC_TEST): Likewise.
15952         (FLOAT): Likewise.
15953         (MATHCONST): Likewise.
15954         (PRINTF_EXPR): Likewise.
15955         (PRINTF_XEXPR): Likewise.
15956         (PRINTF_NEXPR): Likewise.
15957         (TEST_LDOUBLE): Likewise.
15958         (TEST_MATHVEC): Likewise.
15959         (TEST_INLINE): Likewise.
15960         (__NO_MATH_INLINES): Likewise.
15961         * math/test-ldouble.c: Include test-ldouble.h,
15962         test-math-no-inline.h and test-math-scalar.h.
15963         (FUNC): Remove macro.
15964         (FUNC_TEST): Likewise.
15965         (FLOAT): Likewise.
15966         (MATHCONST): Likewise.
15967         (PRINTF_EXPR): Likewise.
15968         (PRINTF_XEXPR): Likewise.
15969         (PRINTF_NEXPR): Likewise.
15970         (TEST_LDOUBLE): Likewise.
15971         (TEST_MATHVEC): Likewise.
15972         (__NO_MATH_INLINES): Likewise.
15973         * math/test-double-vlen2.h: Include test-double.h,
15974         test-math-no-inline.h and test-math-vector.h.
15975         (FLOAT): Remove macro.
15976         (FUNC): Likewise.
15977         (MATHCONST): Likewise.
15978         (PRINTF_EXPR): Likewise.
15979         (PRINTF_XEXPR): Likewise.
15980         (PRINTF_NEXPR): Likewise.
15981         (TEST_DOUBLE): Likewise.
15982         (TEST_MATHVEC): Likewise.
15983         (__NO_MATH_INLINES): Likewise.
15984         (CNCT): Likewise.
15985         (CONCAT): Likewise.
15986         (WRAPPER_NAME): Likewise.
15987         (WRAPPER_DECL): Likewise.
15988         (WRAPPER_DECL_ff): Likewise.
15989         (WRAPPER_DECL_fFF): Likewise.
15990         (VECTOR_WRAPPER): Likewise.
15991         (VECTOR_WRAPPER_ff): Likewise.
15992         (VECTOR_WRAPPER_fFF): Likewise.
15993         (VEC_LEN): New macro.
15994         * math/test-double-vlen4.h: Include test-double.h,
15995         test-math-no-inline.h and test-math-vector.h.
15996         (FLOAT): Remove macro.
15997         (FUNC): Likewise.
15998         (MATHCONST): Likewise.
15999         (PRINTF_EXPR): Likewise.
16000         (PRINTF_XEXPR): Likewise.
16001         (PRINTF_NEXPR): Likewise.
16002         (TEST_DOUBLE): Likewise.
16003         (TEST_MATHVEC): Likewise.
16004         (__NO_MATH_INLINES): Likewise.
16005         (CNCT): Likewise.
16006         (CONCAT): Likewise.
16007         (WRAPPER_NAME): Likewise.
16008         (WRAPPER_DECL): Likewise.
16009         (WRAPPER_DECL_ff): Likewise.
16010         (WRAPPER_DECL_fFF): Likewise.
16011         (VECTOR_WRAPPER): Likewise.
16012         (VECTOR_WRAPPER_ff): Likewise.
16013         (VECTOR_WRAPPER_fFF): Likewise.
16014         (VEC_LEN): New macro.
16015         * math/test-double-vlen8.h: Include test-double.h,
16016         test-math-no-inline.h and test-math-vector.h.
16017         (FLOAT): Remove macro.
16018         (FUNC): Likewise.
16019         (MATHCONST): Likewise.
16020         (PRINTF_EXPR): Likewise.
16021         (PRINTF_XEXPR): Likewise.
16022         (PRINTF_NEXPR): Likewise.
16023         (TEST_DOUBLE): Likewise.
16024         (TEST_MATHVEC): Likewise.
16025         (__NO_MATH_INLINES): Likewise.
16026         (CNCT): Likewise.
16027         (CONCAT): Likewise.
16028         (WRAPPER_NAME): Likewise.
16029         (WRAPPER_DECL): Likewise.
16030         (WRAPPER_DECL_ff): Likewise.
16031         (WRAPPER_DECL_fFF): Likewise.
16032         (VECTOR_WRAPPER): Likewise.
16033         (VECTOR_WRAPPER_ff): Likewise.
16034         (VECTOR_WRAPPER_fFF): Likewise.
16035         (VEC_LEN): New macro.
16036         * math/test-float-vlen4.h: Include test-float.h,
16037         test-math-no-inline.h and test-math-vector.h.
16038         (FLOAT): Remove macro.
16039         (FUNC): Likewise.
16040         (MATHCONST): Likewise.
16041         (PRINTF_EXPR): Likewise.
16042         (PRINTF_XEXPR): Likewise.
16043         (PRINTF_NEXPR): Likewise.
16044         (TEST_FLOAT): Likewise.
16045         (TEST_MATHVEC): Likewise.
16046         (__NO_MATH_INLINES): Likewise.
16047         (CNCT): Likewise.
16048         (CONCAT): Likewise.
16049         (WRAPPER_NAME): Likewise.
16050         (WRAPPER_DECL): Likewise.
16051         (WRAPPER_DECL_ff): Likewise.
16052         (WRAPPER_DECL_fFF): Likewise.
16053         (VECTOR_WRAPPER): Likewise.
16054         (VECTOR_WRAPPER_ff): Likewise.
16055         (VECTOR_WRAPPER_fFF): Likewise.
16056         (VEC_LEN): New macro.
16057         * math/test-float-vlen8.h: Include test-float.h,
16058         test-math-no-inline.h and test-math-vector.h.
16059         (FLOAT): Remove macro.
16060         (FUNC): Likewise.
16061         (MATHCONST): Likewise.
16062         (PRINTF_EXPR): Likewise.
16063         (PRINTF_XEXPR): Likewise.
16064         (PRINTF_NEXPR): Likewise.
16065         (TEST_FLOAT): Likewise.
16066         (TEST_MATHVEC): Likewise.
16067         (__NO_MATH_INLINES): Likewise.
16068         (CNCT): Likewise.
16069         (CONCAT): Likewise.
16070         (WRAPPER_NAME): Likewise.
16071         (WRAPPER_DECL): Likewise.
16072         (WRAPPER_DECL_ff): Likewise.
16073         (WRAPPER_DECL_fFF): Likewise.
16074         (VECTOR_WRAPPER): Likewise.
16075         (VECTOR_WRAPPER_ff): Likewise.
16076         (VECTOR_WRAPPER_fFF): Likewise.
16077         (VEC_LEN): New macro.
16078         * math/test-float-vlen16.h: Include test-float.h,
16079         test-math-no-inline.h and test-math-vector.h.
16080         (FLOAT): Remove macro.
16081         (FUNC): Likewise.
16082         (MATHCONST): Likewise.
16083         (PRINTF_EXPR): Likewise.
16084         (PRINTF_XEXPR): Likewise.
16085         (PRINTF_NEXPR): Likewise.
16086         (TEST_FLOAT): Likewise.
16087         (TEST_MATHVEC): Likewise.
16088         (__NO_MATH_INLINES): Likewise.
16089         (CNCT): Likewise.
16090         (CONCAT): Likewise.
16091         (WRAPPER_NAME): Likewise.
16092         (WRAPPER_DECL): Likewise.
16093         (WRAPPER_DECL_ff): Likewise.
16094         (WRAPPER_DECL_fFF): Likewise.
16095         (VECTOR_WRAPPER): Likewise.
16096         (VECTOR_WRAPPER_ff): Likewise.
16097         (VECTOR_WRAPPER_fFF): Likewise.
16098         (VEC_LEN): New macro.
16099         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
16100         test-vec-loop.h.
16101         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16102         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16103         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16104         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16105         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16106         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16107         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16108
16109 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16110
16111         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
16112         (__getlogin_r): ... this.
16113
16114 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16115
16116         [BZ #18594]
16117         * math/s_ccosh.c (__ccosh): Compare with least normal value
16118         instead of comparing class with FP_SUBNORMAL.
16119         * math/s_ccoshf.c (__ccoshf): Likewise.
16120         * math/s_ccoshl.c (__ccoshl): Likewise.
16121         * math/s_cexp.c (__cexp): Likewise.
16122         * math/s_cexpf.c (__cexpf): Likewise.
16123         * math/s_cexpl.c (__cexpl): Likewise.
16124         * math/s_csin.c (__csin): Likewise.
16125         * math/s_csinf.c (__csinf): Likewise.
16126         * math/s_csinh.c (__csinh): Likewise.
16127         * math/s_csinhf.c (__csinhf): Likewise.
16128         * math/s_csinhl.c (__csinhl): Likewise.
16129         * math/s_csinl.c (__csinl): Likewise.
16130         * math/s_ctan.c (__ctan): Likewise.
16131         * math/s_ctanf.c (__ctanf): Likewise.
16132         * math/s_ctanh.c (__ctanh): Likewise.
16133         * math/s_ctanhf.c (__ctanhf): Likewise.
16134         * math/s_ctanhl.c (__ctanhl): Likewise.
16135         * math/s_ctanl.c (__ctanl): Likewise.
16136         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16137         csin, csinh, ctan and ctanh.
16138         * math/auto-libm-test-out: Regenerated.
16139         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16140         * sysdeps/i386/fpu/libm-test-ulps: Update.
16141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16142
16143 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16144
16145         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16146         return value is wrong, print the expected value too.
16147
16148 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16149
16150         [BZ #18585]
16151         * elf/readlib.c (is_gdb_python_file): New.
16152         (process_file): Don't issue errors on filenames with -gdb.py
16153         suffix.
16154
16155 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16156
16157         * math/auto-libm-test-in: Add more tests of csin and csinh.
16158         * math/auto-libm-test-out: Regenerated.
16159         * math/libm-test.inc (csin_test_data): Remove tests moved to
16160         auto-libm-test-in.
16161         (csinh_test_data): Likewise.
16162
16163         [BZ #18593]
16164         * math/s_csin.c (__csin): Negate before rather than after possibly
16165         overflowing multiplication.
16166         * math/s_csinf.c (__csinf): Likewise.
16167         * math/s_csinh.c (__csinh): Likewise.
16168         * math/s_csinhf.c (__csinhf): Likewise.
16169         * math/s_csinhl.c (__csinhl): Likewise.
16170         * math/s_csinl.c (__csinl): Likewise.
16171         * math/auto-libm-test-in: Add some tests of csin and csinh.
16172         * math/auto-libm-test-out: Regenerated.
16173         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16174         (csinh_test_data): Likewise.
16175         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16176
16177         [BZ #18586]
16178         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16179         underflow exception for small results.
16180
16181 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16182
16183         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16184         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16185         variable and included header.
16186         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16187         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16188         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16189         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16190         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16191         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16192         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16193         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16194         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16195         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16196         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16197         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16198         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16199         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16200         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16201         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16202
16203 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16204
16205         [BZ #16526]
16206         [BZ #16538]
16207         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16208         (__sin): Force underflow exception for arguments with small
16209         absolute value.
16210         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16211         (__kernel_sinf): Force underflow exception for arguments with
16212         small absolute value.
16213         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16214         (__kernel_sincosl): Force underflow exception for arguments with
16215         small absolute value.
16216         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16217         (__kernel_sinl): Force underflow exception for arguments with
16218         small absolute value.
16219         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16220         (__kernel_sincosl): Force underflow exception for arguments with
16221         small absolute value.
16222         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16223         (__kernel_sinl): Force underflow exception for arguments with
16224         small absolute value.
16225         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16226         (__kernel_sinl): Force underflow exception for arguments with
16227         small absolute value.
16228         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16229         (__kernel_sinf): Force underflow exception for arguments with
16230         small absolute value.
16231         * math/auto-libm-test-in: Add more tests of sin and sincos.
16232         * math/auto-libm-test-out: Regenerated.
16233
16234         [BZ #18245]
16235         [BZ #18583]
16236         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16237         (__kernel_standard_l): Use feholdexcept and fesetenv around
16238         conversion to double instead of special-casing overflow and
16239         underflow.
16240         * math/libm-test.inc (fmod_test_data): Add more tests.
16241         (remainder_test_data): Likewise.
16242         (sqrt_test_data): Likewise.
16243
16244 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16245
16246         [BZ #17403]
16247         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16248         atomic_read_barrier, atomic_write_barrier): Define.
16249         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16250         atomic_read_barrier, atomic_write_barrier): Define.
16251
16252 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16253
16254         * math/Makefile [$(PERL) != no]
16255         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16256         dependency on libm-test.stmp below the inclusion of Rules.
16257
16258 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16259
16260         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16261         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16262         and included header.
16263         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16264         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16265         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16266         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16267         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16268         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16269         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16270         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16271         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16272         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16273         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16274         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16275         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16276         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16277         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16278         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16279         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16280         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16281         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16282
16283 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16284
16285         [BZ #18371]
16286         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16287         intermediate but not final result might underflow.
16288         * math/s_csqrtf.c (__csqrtf): Likewise.
16289         * math/s_csqrtl.c (__csqrtl): Likewise.
16290         * math/auto-libm-test-in: Add more tests of csqrt.
16291         * math/auto-libm-test-out: Regenerated.
16292         * sysdeps/i386/fpu/libm-test-ulps: Update.
16293
16294         [BZ #18219]
16295         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16296         threshold on absolute value of exponent for which scaling is used.
16297         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16298         * math/auto-libm-test-in: Add more tests of exp2.
16299         * math/auto-libm-test-out: Regenerated.
16300
16301 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16302
16303         [BZ #17977]
16304         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16305         when initializing interface list, based on the bug analysis
16306         and the patch proposed by Eric Newton.
16307         * resolv/tst-res_hconf_reorder.c: New test.
16308         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16309         tst-res_hconf_reorder.
16310         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16311         and $(shared-thread-library).
16312         (tst-res_hconf_reorder-ENV): New variable.
16313
16314         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16315         in comment.
16316
16317 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16318
16319         [BZ #16353]
16320         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16321         (__expm1): Force underflow exception for arguments with small
16322         absolute value.
16323         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16324         (__expm1f): Force underflow exception for arguments with small
16325         absolute value.
16326         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16327         (__expm1): Force underflow exception for arguments with small
16328         absolute value.
16329         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16330         (__expm1f): Force underflow exception for arguments with small
16331         absolute value.
16332         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16333         Check for small arguments before calling __expm1.
16334         * math/auto-libm-test-in: Do not mark underflow exceptions as
16335         possibly missing for bug 16353.
16336         * math/auto-libm-test-out: Regenerated.
16337
16338 2015-06-22  Andreas Schwab  <schwab@suse.de>
16339
16340         [BZ #18513]
16341         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16342         PTR queries.
16343
16344 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16345
16346         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16347
16348         * string/strcoll_l.c: Remove unused struct element idxnow.
16349
16350 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16351
16352         [BZ #18569]
16353         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16354         underflow and return argument in case of subnormal argument.
16355         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16356         Likewise.
16357         * math/auto-libm-test-in: Add more tests of expm1.
16358         * math/auto-libm-test-out: Regenerated.
16359
16360         [BZ #16361]
16361         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16362         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16363         tiny results.
16364         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16365         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16366         tiny results.
16367         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16368         mark underflow exceptions as possibly missing for bug 16361.
16369         * math/auto-libm-test-out: Regenerated.
16370
16371 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16372
16373         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16374         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16375         Remove variable.
16376         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16377         (test-xfail-XOPEN2K8/utmpx.h/conform).
16378
16379         * conform/conformtest.pl ($xerrors): New variable.
16380         (note_error): New function.
16381         (compiletest): New argument $xfail.  Use not_error.
16382         (runtest): Likewise.
16383         (top level): Handle xfail- lines.  Update calls to compiletest and
16384         runtest.  Handle xfail- and optional- in headers listed with
16385         allow-header.
16386         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16387         (O_EXEC): Likewise.
16388         (O_SEARCH): Likewise.
16389         * conform/data/stropts.h-data (ioctl): Likewise.
16390         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16391         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16392         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16393         (msghdr.msg_controllen): Likewise.
16394         (cmsghdr.cmsg_len): Likewise.
16395         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16396         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16397         variable.
16398         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16399         (test-xfail-XPG4/stropts.h/conform): Likewise.
16400         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16401         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16402         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16403         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16404         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16405         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16406         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16407         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16408         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16409         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16410         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16411         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16412         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16413         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16414         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16415         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16416         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16417         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16418         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16419
16420 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16421
16422         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16423         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16424         definitions for proper unfolding of __MATHDECL_VEC.
16425
16426 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16427
16428         * benchtests/bench-strcoll.c:
16429         Include string.h.
16430         (main): Remove unused variable res.
16431
16432 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16433
16434         * timezone/Makefile (%/UTC %/Universal):
16435         Generate test-result files for UTC and Universal.
16436
16437 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16438
16439         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16440
16441 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16442
16443         [BZ #16350]
16444         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16445         for arguments with small absolute value.
16446         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16447         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16448         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16449         (__asinh): Force underflow exception for arguments with small
16450         absolute value.
16451         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16452         (__asinhf): Force underflow exception for arguments with small
16453         absolute value.
16454         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16455         (__asinhl): Force underflow exception for arguments with small
16456         absolute value.
16457         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16458         (__asinhl): Force underflow exception for arguments with small
16459         absolute value.
16460         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16461         (__asinhl): Force underflow exception for arguments with small
16462         absolute value.
16463         * math/auto-libm-test-in: Do not mark underflow exceptions as
16464         possibly missing for bug 16350.
16465         * math/auto-libm-test-out: Regenerated.
16466
16467         * include/bits/ipc.h: Remove file.
16468         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16469         variable.
16470         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16471         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16472         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16473         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16474         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16475         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16476         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16477         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16478         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16479
16480         * math/auto-libm-test-in: Remove spurious underflow allowance for
16481         tests of cexp.
16482         * math/auto-libm-test-out: Regenerated.
16483
16484         [BZ #18558]
16485         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16486         unconditional definition.
16487         (MCAST_BLOCK_SOURCE): Likewise.
16488         (MCAST_UNBLOCK_SOURCE): Likewise.
16489         (MCAST_LEAVE_GROUP): Likewise.
16490         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16491         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16492         (MCAST_MSFILTER): Likewise.
16493         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16494         Remove variable.
16495         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16496         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16497         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16498         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16499         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16500
16501 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16502
16503         * NEWS: Mention addition of x86_64 vector sincosf.
16504         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16505         * math/test-float-vlen4.h: Likewise.
16506         * math/test-float-vlen8.h: Likewise.
16507         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16508         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16509         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16510         * sysdeps/x86_64/fpu/Versions: New versions added.
16511         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16512         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16513         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16514         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16515         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16516         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16517         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16518         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16519         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16520         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16521         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16522         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16523         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16524         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16525         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16526         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16527         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16528         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16529         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16530         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16531         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16532         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16533         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16534         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16535
16536         * NEWS: Mention addition of x86_64 vector sincos.
16537         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16538         * math/math.h (__MATHDECL_VEC): New macro.
16539         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16540         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16541         declaration under condition.
16542         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16543         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16544         TEST_VEC_LOOP change.
16545         * math/test-double-vlen4.h: Likewise.
16546         * math/test-double-vlen8.h: Likewise.
16547         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16548         * math/test-float-vlen4.h: Likewise.
16549         * math/test-float-vlen8.h: Likewise.
16550         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16551         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16552         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16553         * sysdeps/x86_64/fpu/Versions: New versions added.
16554         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16555         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16556         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16557         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16558         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16559         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16560         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16561         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16562         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16563         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16564         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16565         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16566         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16567         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16568         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16569         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16570         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16571         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16572         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16573         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16574         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16575         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16576         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16577         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16578
16579         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16580         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16581         redirections for powf.
16582         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16583         * sysdeps/x86_64/fpu/Versions: New versions added.
16584         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16585         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16586         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16587         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16588         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16589         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16590         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16591         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16592         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16593         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16594         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16595         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16596         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16597         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16598         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16599         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16600         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16601         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16602         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16603         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16604         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16605         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16606         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16607         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16608         * math/test-float-vlen16.h: Fixed 2 argument macro.
16609         * math/test-float-vlen4.h: Likewise.
16610         * math/test-float-vlen8.h: Likewise.
16611         * NEWS: Mention addition of x86_64 vector powf.
16612
16613 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16614
16615         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16616         and redefine.
16617         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16618         and redefine.
16619         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16620         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16621         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16622
16623         [BZ #18553]
16624         * resource/getpriority.c (getpriority): Rename to __getpriority
16625         and define as weak alias of __getpriority.
16626         * resource/setpriority.c (setpriority): Rename to __setpriority
16627         and define as weak alias of __setpriority.
16628         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16629         __getpriority and define as weak alias of __getpriority.
16630         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16631         __setpriority and define as weak alias of __setpriority.
16632         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16633         strong name.
16634         (setpriority): Use __setpriority as strong name.
16635         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16636         __getpriority and define as weak alias of __getpriority.
16637         * include/sys/resource.h (__getpriority): Declare.  Use
16638         libc_hidden_proto.
16639         (__setpriority): Likewise.
16640         (getpriority): Don't use libc_hidden_proto.
16641         (setpriority): Likewise.
16642         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16643         getpriority.  Call __setpriority instead of setpriority.
16644         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16645         Remove variable.
16646
16647         [BZ #18547]
16648         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16649         as weak alias of __getttynam.  Use prototype function definition.
16650         Call __setttyent, __getttyent and __endttyent instead of
16651         setttyent, getttyent and endttyent.
16652         (getttyent): Rename to __getttyent and define as weak alias of
16653         __getttyent.  Call __setttyent instead of setttyent.  Call
16654         __fgets_unlocked instead of fgets_unlocked.
16655         (setttyent): Rename to __setttyent and define as weak alias of
16656         __setttyent.
16657         (endttyent): Rename to __endttyent and define as weak alias of
16658         __endttyent.
16659         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16660         (__setttyent): Likewise.
16661         (__endttyent): Likewise.
16662         (getttyent): Don't use libc_hidden_proto.
16663         (setttyent): Likewise.
16664         (endttyent): Likewise.
16665         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16666         __endttyent instead of setttyent, getttyent and endttyent.
16667         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16668         Remove variable.
16669
16670         [BZ #18546]
16671         * socket/recv.c (__recv): Use libc_hidden_def.
16672         * socket/socket.c (__socket): Likewise.
16673         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16674         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16675         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16676         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16677         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16678         libc_hidden_def.
16679         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16680         libc_hidden_weak.
16681         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16682         Use libc_hidden_proto.
16683         (__recv): Likewise.
16684         * socket/Versions (libc): Export __recv and __socket at version
16685         GLIBC_PRIVATE.
16686         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16687         instead of recv.
16688         (init_mq_netlink): Call __socket instead of socket.
16689         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16690         Remove variable.
16691
16692         [BZ #18545]
16693         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16694         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16695         hidden_weak.
16696         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16697         define as alias of __mq_timedsend.  Use hidden_weak.
16698         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16699         __mq_timedsend as strong name.
16700         (mq_timedreceive): Use __mq_timedreceive as strong name.
16701         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16702         (__mq_timedreceive): Likewise.
16703         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16704         __mq_timedreceive instead of mq_timedreceive.
16705         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16706         instead of mq_timedsend.
16707         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16708         Remove variable.
16709
16710         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16711         hidden_def and hidden_weak instead of libc_hidden_def and
16712         libc_hidden_weak.
16713         (top level): Refer to hidden_def in comment.
16714         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16715         macro.  Use it instead of libc_hidden_def.
16716         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16717         specify __GI_* name explicitly.
16718         (mq_timedreceive): Likewise.
16719         (mq_setattr): Likewise.
16720
16721         [BZ #18544]
16722         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16723         __pthread_barrier_init and define as weak alias of
16724         __pthread_barrier_init.
16725         * sysdeps/sparc/nptl/pthread_barrier_init.c
16726         (pthread_barrier_init): Likewise.
16727         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16728         __pthread_barrier_wait and define as weak alias of
16729         __pthread_barrier_wait.
16730         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16731         (pthread_barrier_wait): Likewise.
16732         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16733         (pthread_barrier_wait): Likewise.
16734         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16735         (pthread_barrier_wait): Likewise.
16736         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16737         (pthread_barrier_wait): Likewise.
16738         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16739         __pthread_barrier_wait at version GLIBC_PRIVATE.
16740         * include/pthread.h (__pthread_barrier_init): Declare.
16741         (__pthread_barrier_wait): Likewise.
16742         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16743         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16744         (helper_thread): Likewise.
16745         (init_mq_netlink): Call __pthread_barrier_init instead of
16746         pthread_barrier_init.
16747
16748         [BZ #18542]
16749         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16750         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16751         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16752         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16753         vswscanf.
16754         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16755         Remove variable.
16756
16757         [BZ #18540]
16758         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16759         strong alias of _IO_fflush.  Use libc_hidden_def.
16760         * libio/iofflush_u.c (fflush_unlocked): Rename to
16761         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16762         Use libc_hidden_weak.
16763         * include/stdio.h (__fflush_unlocked): Declare.  Use
16764         libc_hidden_proto.
16765         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16766         fflush_unlocked.
16767         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16768         Remove variable.
16769
16770         [BZ #18539]
16771         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16772         define as weak alias of __addseverity.
16773         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16774         Remove variable.
16775         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16776         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16777         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16778
16779         [BZ #18536]
16780         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16781         (__tfind): Likewise.
16782         (__tdelete): Likewise.
16783         (__twalk): Likewise.
16784         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16785         __twalk to GLIBC_PRIVATE.
16786         * include/search.h (__tsearch): Use libc_hidden_proto.
16787         (__tfind): Likewise.
16788         (__tdelete): Likewise.
16789         (__twalk): Likewise.
16790         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16791         Call __tdelete instead of tdelete.
16792         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16793         tfind.  Call __tsearch instead of tsearch.
16794         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16795         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16796         Remove variable.
16797         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16798
16799         [BZ #18534]
16800         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16801         (dprintf): Define as a weak alias of __dprintf, not a strong
16802         alias.
16803         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16804         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16805         dprintf.
16806         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16807         Remove variable.
16808         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16809         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16810
16811         [BZ #18533]
16812         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16813         not a strong alias.
16814         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16815         Remove variable.
16816
16817         [BZ #18532]
16818         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16819         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16820         (in6addr_loopback): Rename to __in6addr_loopback and define as
16821         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16822         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16823         libc_hidden_proto.
16824         (__in6addr_any): Likewise.
16825         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16826         in6addr_any.
16827         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16828         variable.
16829         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16830
16831 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16832
16833         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16834         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16835         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16836         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16837         redirections for pow.
16838         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16839         * sysdeps/x86_64/fpu/Versions: New versions added.
16840         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16841         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16842         build of SSE, AVX2 and AVX512 IFUNC versions.
16843         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16844         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16845         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16846         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16847         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16848         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16849         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16850         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16851         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16852         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16853         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16854         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16855         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16856         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16857         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16858         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16859         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16860         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16861         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16862         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16863         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16864         * NEWS: Mention addition of x86_64 vector pow.
16865
16866         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16867         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16868         redirections for expf.
16869         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16870         * sysdeps/x86_64/fpu/Versions: New versions added.
16871         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16872         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16873         build of SSE, AVX2 and AVX512 IFUNC versions.
16874         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16875         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16876         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16877         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16878         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16879         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16880         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16881         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16882         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16883         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16884         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16885         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16886         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16887         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16888         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16889         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16890         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16891         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16892         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16893         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16894         * NEWS: Mention addition of x86_64 vector expf.
16895
16896         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16897         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16898         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16899         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16900         redirections for exp.
16901         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16902         * sysdeps/x86_64/fpu/Versions: New versions added.
16903         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16904         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16905         build of SSE, AVX2 and AVX512 IFUNC versions.
16906         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16907         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16908         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16909         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16910         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16911         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16912         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16913         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16914         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16915         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16916         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16917         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16918         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16919         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16920         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16921         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16922         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16923         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16924         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16925         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16926         * NEWS: Mention addition of x86_64 vector exp.
16927
16928         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16929         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16930         redirections for logf.
16931         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16932         * sysdeps/x86_64/fpu/Versions: New versions added.
16933         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16934         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16935         build of SSE, AVX2 and AVX512 IFUNC versions.
16936         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16937         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16938         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16939         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16940         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16941         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16942         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16943         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16944         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16945         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16946         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16947         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16948         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16949         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16950         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16951         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16952         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16953         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16954         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16955         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16956         * NEWS: Mention addition of x86_64 vector logf.
16957
16958         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16959         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16960         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16961         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16962         redirections for log.
16963         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16964         * sysdeps/x86_64/fpu/Versions: New versions added.
16965         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16966         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16967         build of SSE, AVX2 and AVX512 IFUNC versions.
16968         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16969         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16970         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16971         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16972         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16973         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16974         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16975         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16976         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16977         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16978         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16979         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16980         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16981         test.
16982         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16983         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16984         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16985         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16986         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16987         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16988         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16989         * NEWS: Mention addition of x86_64 vector log.
16990
16991 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16992
16993         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16994         cfi_adjust_cfa_offset argument.
16995         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16996         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16997
16998         [BZ #18034]
16999         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
17000         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
17001         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
17002         ordering using ldar.
17003         (_dl_tlsdesc_dynamic): Likewise.
17004         (_dl_tlsdesc_return_lazy): Likewise.
17005         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
17006         relaxed atomics instead of volatile and synchronize with release store.
17007         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
17008         volatile.
17009         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
17010
17011 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
17012
17013         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
17014         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
17015         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17016         * sysdeps/x86_64/fpu/Versions: New versions added.
17017         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17018         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17019         build of SSE, AVX2 and AVX512 IFUNC versions.
17020         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
17021         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
17022         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
17023         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
17024         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
17025         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
17026         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
17027         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
17028         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
17029         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
17030         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
17031         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
17032         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
17033         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
17034         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17035         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
17036         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17037         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
17038         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17039         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17040         * NEWS: Mention addition of x86_64 vector sinf.
17041
17042 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
17043
17044         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
17045         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
17046         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
17047         Remove variable.
17048         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
17049         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
17050
17051 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17052
17053         [BZ #18530]
17054         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
17055         strong alias of _IO_fputs.  Use libc_hidden_def.
17056         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
17057         and define as weak alias of __fputs_unlocked.  Use
17058         libc_hidden_weak.
17059         * include/stdio.h (__fputs_unlocked): Declare.  Use
17060         libc_hidden_proto.
17061         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
17062         fputs_unlocked.
17063
17064         [BZ #18529]
17065         * resolv/netdb.h [__USE_POSIX]: Change condition to
17066         [__USE_XOPEN2K].
17067         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
17068         not expect.
17069         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
17070         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
17071         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
17072         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
17073         [XPG4 || UNIX98] (AI_ALL): Likewise.
17074         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
17075         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
17076         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
17077         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
17078         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
17079         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
17080         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
17081         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
17082         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
17083         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
17084         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
17085         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
17086         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
17087         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
17088         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
17089         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17090         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17091         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
17092         [XPG4 || UNIX98] (gai_strerror): Likewise.
17093         [XPG4 || UNIX98] (getaddrinfo): Likewise.
17094         [XPG4 || UNIX98] (getnameinfo): Likewise.
17095
17096         [BZ #18528]
17097         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
17098         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
17099         __USE_XOPEN2K8].
17100         (getgrent): Likewise.
17101         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
17102         expect.
17103         [XPG3 || POSIX2008] (endgrent): Likewise.
17104         [XPG3] (setgrent): Likewise.
17105         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
17106         variable.
17107         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
17108
17109         [BZ #18527]
17110         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
17111         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
17112         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
17113         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
17114         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
17115         * include/unistd.h (__getlogin_r): Declare.  Use
17116         libc_hidden_proto.
17117         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
17118         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
17119         variable.
17120         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
17121         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
17122         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
17123
17124 2015-06-12  Martin Sebor  <msebor@redhat.com>
17125
17126         [BZ #18512]
17127         * Makerules (check-install-supported): New target.
17128         (install): Add check-install-supported as a dependency.
17129         * manual/install.texi (Installing the C Library): Document
17130         that overriding prefix and exec_prefix is not supported.
17131         Mention DESTDIR.
17132         * INSTALL: Regenerate from the above.
17133
17134 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17135
17136         [BZ #18519]
17137         * posix/Versions (libc): Export __libc_pread at version
17138         GLIBC_PRIVATE.
17139         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17140         instead of pread.
17141         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17142         variable.
17143
17144         [BZ #18522]
17145         * misc/efgcvt_r.c
17146         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17147         (cvt_symbol): Use weak_alias instead of strong_alias.
17148         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17149         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17150         Remove variable.
17151         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17152         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17153
17154         [BZ #18520]
17155         * inet/herrno.c (h_errno): Rename to __h_errno.
17156         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17157         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17158         to __h_errno instead of h_errno.
17159         * nptl/herrno.c (h_errno): Rename to __h_errno.
17160         (__h_errno_location): Refer to __h_errno not h_errno.
17161         * resolv/Versions (h_errno): Rename to __h_errno.
17162         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17163         Remove variable.
17164         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17165
17166 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17167
17168         * configure.ac: More strict check for AVX512 assembler support.
17169         * configure: Regenerated.
17170
17171         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17172         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17173         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17174         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17175         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17176         * sysdeps/x86_64/fpu/Versions: New versions added.
17177         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17178         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17179         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17180         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17181         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17182         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17183         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17184         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17185         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17186         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17187         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17188         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17189         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17190         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17191         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17192         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17193         test.
17194         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17195         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17196         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17197         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17198         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17199         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17200         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17201         * NEWS: Mention addition of x86_64 vector sin.
17202
17203 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17204
17205         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17206         comment.
17207
17208 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17209
17210         [BZ #18479]
17211         * nptl/pt-interp.c: New file.
17212         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17213         Add pt-interp.
17214         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17215         $(common-objpfx)runtime-linker.h.
17216
17217 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17218
17219         * Makeconfig (+interp): Remove unused variable.
17220         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17221         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17222         $(elf-objpfx)runtime-linker.h.
17223         ($(elf-objpfx)runtime-linker.h): Rename to
17224         $(common-objpfx)runtime-linker.h and move ...
17225         * Makerules [$(build-shared) = yes]: ... here.
17226         * elf/interp.c: Include <runtime-linker.h> instead of
17227         <elf/runtime-linker.h>.
17228
17229 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17230
17231         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17232         (__gettimeofday_syscall): Remove vsyscall fallback.
17233         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17234         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17235         Add syscall fallback function.
17236         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17237         if vDSO is not present.
17238         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17239         fallback function.
17240         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17241         present.
17242         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17243         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17244
17245 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17246
17247         [BZ #18497]
17248         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17249         of wcscmp.
17250         (wcscmp): Define as weak alias of WCSCMP.
17251         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17252         wcscoll.
17253         (USE_HIDDEN_DEF): Define.
17254         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17255         __wcscoll.  Don't use libc_hidden_weak.
17256         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17257         wcscmp.
17258         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17259         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17260         __GI_wcscmp.
17261         (weak_alias): Undefine and redefine.
17262         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17263         __wcscmp and define as weak alias of __wcscmp.
17264         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17265         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17266         (__wcscoll): Likewise.
17267         (wcscmp): Don't use libc_hidden_proto.
17268         (wcscoll): Likewise.
17269         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17270         wcscoll.
17271         * posix/regexec.c (check_node_accept_bytes): Likewise.
17272         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17273         variable.
17274         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17275         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17276
17277         [BZ #18507]
17278         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17279         __fstatvfs and define as weak alias of __fstatvfs.  Use
17280         libc_hidden_weak.
17281         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17282         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17283         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17284         Define as alias of __fstatvfs, not fstatvfs.
17285         (fstatvfs64): Likewise.
17286         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17287         Define as alias of __statvfs, not statvfs.
17288         (statvfs64): Likewise.
17289         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17290         Remove variable.
17291
17292 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17293
17294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17295         (HAVE_GETCPU_VSYSCALL): Define.
17296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17297         (HAVE_GETCPU_VSYSCALL): Likewise.
17298         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17299         * sysdeps/unix/sysv/linux/sched_getcpu.c
17300         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17301         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17302         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17303         prototype.
17304         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17305         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17306         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17307         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17308         Define.
17309         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17310         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17311         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17312         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17313
17314 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17315
17316         * sysdeps/x86_64/fpu/Makefile: New file.
17317         * sysdeps/x86_64/fpu/Versions: New file.
17318         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17319         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17320         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17321         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17322         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17323         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17324         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17325         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17326         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17327         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17328         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17329         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17330         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17331         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17332         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17333         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17334         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17335         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17336         * sysdeps/x86_64/configure: Regenerated.
17337         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17338         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17339         * manual/install.texi (Configuring and compiling): Document
17340         --disable-mathvec.
17341         * INSTALL: Regenerated.
17342         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17343
17344         * math/Makefile: Added rules for vector tests.
17345         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17346         declaration under condition.
17347         * math/test-double-vlen2.h: New file.
17348         * math/test-double-vlen4.h: New file.
17349         * math/test-double-vlen8.h: New file.
17350         * math/test-vec-loop.h: Added initialization macro.
17351         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17352         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17353         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17354         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17355         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17356         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17357         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17358         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17359         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17360         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17361         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17362
17363         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17364         * sysdeps/x86_64/fpu/Versions: New versions added.
17365         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17366         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17367         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17368         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17369         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17370         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17371         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17372         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17373         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17374         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17375         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17376         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17377         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17378         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17379         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17380         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17381         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17382         * NEWS: Mention addition of x86_64 vector cosf.
17383
17384         * math/Makefile: Added CFLAGS for new tests.
17385         * math/test-float-vlen16.h: New file.
17386         * math/test-float-vlen4.h: New file.
17387         * math/test-float-vlen8.h: New file.
17388         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17389         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17390         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17391         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17392         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17393         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17394         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17395         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17396         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17397         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17398         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17399
17400 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17401
17402         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17403         * locale/programs/ld-ctype.c: Likewise.
17404
17405 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17406
17407         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17408         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17409         bit_ZMM16_31_state): New macro.
17410         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17411         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17412
17413 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17414
17415         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17416
17417 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17418
17419         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17420
17421 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17422
17423         [BZ #18498]
17424         * libio/memstream.c (open_memstream): Rename to __open_memstream
17425         and define as weak alias of __open_memstream.
17426         * include/stdio.h (__open_memstream): Declare.  Use
17427         libc_hidden_proto.
17428         (open_memstream): Don't use libc_hidden_proto.
17429         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17430         open_memstream.
17431         * posix/getopt.c (_getopt_internal_r): Likewise.
17432         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17433         variable.
17434         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17435         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17436         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17437
17438         [BZ #18496]
17439         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17440         instead of wcrtomb.
17441
17442         [BZ #18483]
17443         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17444         [__USE_XOPEN2K8].  Remove redundant #endif.
17445         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17446         Remove redundant #if.
17447         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17448         Remove variable.
17449         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17450         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17451
17452         [BZ #18495]
17453         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17454         (__iswlower): Likewise.
17455         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17456         (__iswlower): Likewise.
17457         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17458         instead of towlower.
17459         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17460         instead of iswlower.  Call __towupper instead of towupper.
17461         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17462         instead of iswalnum.
17463
17464 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17465
17466         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17467         errors to stderr.
17468
17469 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17470
17471         [BZ #15661]
17472         [BZ #17322]
17473         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17474         Check for overflow properly.  Check for O_APPEND.  Ignore large
17475         file system block sizes.  Add comments about problems.
17476         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17477         * manual/filesys.texi (Storage Allocation): New node.
17478
17479 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17480
17481         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17482         cancellable syscalls.
17483         (SYS_ify): Add guard to no redefine it.
17484         (INLINE_SYSCALL): Likewise.
17485         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17486         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17487         SYSCALL_CANCEL instead.
17488         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17489         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17490         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17491         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17492         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17493         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17494         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17495         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17496         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17497         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17498         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17499         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17500         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17501         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17502         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17503         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17504         Likewise.
17505         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17506         (__libc_pread64): Likewise.
17507         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17508         (__libc_preadv): Likewise.
17509         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17510         (__libc_readv64): Likewise.
17511         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17512         (__libc_pwrite): Likewise.
17513         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17514         (__libc_pwrite64): Likewise.
17515         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17516         (__libc_pwritev): Likewise.
17517         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17518         (__libc_pwritev64): Likewise.
17519         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17520         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17521         (sync_file_range): Likewise.
17522         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17523         Likewise.
17524         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17525         Likewise.
17526         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17527         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17528         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17529         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17530         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17531         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17532         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17533         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17535         Likewise.
17536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17537         (__libc_read64): Likewise.
17538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17539         Likewise.
17540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17541         Likewise.
17542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17543         Likewise.
17544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17545         Likewise.
17546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17547         (__libc_pread64): Likewise.
17548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17549         Likewise.
17550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17551         (__libc_pwrite64): Likewise.
17552         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17553         (sync_file_range): Likewise.
17554         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17555         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17556         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17557         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17558         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17559         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17560         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17561         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17562         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17563         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17564         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17565         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17566         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17567         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17568         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17569         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17570         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17571         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17572         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17573         Likewise.
17574         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17575         Likewise.
17576         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17577         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17578         Likewise.
17579         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17580         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17581         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17582         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17583         Likewise.
17584         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17585         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17586         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17587         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17588         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17589
17590 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17591
17592         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17593         Include dl-vdso.
17594         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17595         Use VDSO routines for gettimeofday, clock_gettime if
17596         available.
17597         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17598         Declare VDSO symbols.
17599         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17600         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17601         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17602         * sysdeps/unix/sysv/linux/arm/Versions: Add
17603         __vdso_clock_gettime.
17604
17605 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17606
17607         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17608         be an inline implementation regardless of library is built within.
17609         (open_not_cancel_2): Likewise.
17610         (__read_nocancel): Likewise.
17611         (__write_nocancel): Likewise.
17612         (openat_not_cancel): Likewise.
17613         (openat_not_cancel_3): Likewise.
17614         (openat64_not_cancel): Likewise.
17615         (openat64_not_cancel_3): Likewise.
17616         (__close_nocancel): Likewise.
17617         (pause_not_cancel): Likewise.
17618         (nanosleep_not_cancel): Likewise.
17619         (sigsuspend_not_cancel): Likewise.
17620
17621 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17622
17623         [BZ #14958]
17624         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17625         wake-up.
17626         (__pthread_rwlock_rdlock_slow): Likewise.
17627         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17628         Likewise.
17629         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17630         Likewise.
17631         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17632         * nptl/tst-rwlock16.c: New file.
17633         * nptl/Makefile (tests): Add new test.
17634
17635 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17636
17637         [BZ #18324]
17638         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17639         missing wake-up of readers.
17640         * nptl/tst-rwlock15.c: New file.
17641         * nptl/Makefile (tests): Add new test.
17642
17643 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17644
17645         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17646         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17647         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17648         and __nacl_supply_interface_rtld.
17649         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17650         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17651         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17652         Add __nacl_supply_interface_rtld.
17653         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17654
17655 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17656
17657         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17658         isfinite.
17659         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17660         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17661
17662 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17663
17664         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17665         __signbit* with standard C99 macros.
17666         * math/e_exp10l.c: Likewise.
17667         * math/e_exp2l.c: Likewise.
17668         * math/e_scalb.c: Likewise.
17669         * math/e_scalbf.c: Likewise.
17670         * math/e_scalbl.c: Likewise.
17671         * math/s_ldexp.c: Likewise.
17672         * math/s_ldexpf.c: Likewise.
17673         * math/s_ldexpl.c: Likewise.
17674         * math/w_atan2.c: Likewise.
17675         * math/w_atan2f.c: Likewise.
17676         * math/w_atan2l.c: Likewise.
17677         * math/w_cosh.c: Likewise.
17678         * math/w_coshf.c: Likewise.
17679         * math/w_coshl.c: Likewise.
17680         * math/w_exp10.c: Likewise.
17681         * math/w_exp10f.c: Likewise.
17682         * math/w_exp10l.c: Likewise.
17683         * math/w_exp2.c: Likewise.
17684         * math/w_exp2f.c: Likewise.
17685         * math/w_exp2l.c: Likewise.
17686         * math/w_fmod.c: Likewise.
17687         * math/w_fmodf.c: Likewise.
17688         * math/w_fmodl.c: Likewise.
17689         * math/w_hypot.c: Likewise.
17690         * math/w_hypotf.c: Likewise.
17691         * math/w_hypotl.c: Likewise.
17692         * math/w_jnl.c: Likewise.
17693         * math/w_lgamma.c: Likewise.
17694         * math/w_lgamma_r.c: Likewise.
17695         * math/w_lgammaf.c: Likewise.
17696         * math/w_lgammaf_r.c: Likewise.
17697         * math/w_lgammal.c: Likewise.
17698         * math/w_lgammal_r.c: Likewise.
17699         * math/w_pow.c: Likewise.
17700         * math/w_powf.c: Likewise.
17701         * math/w_powl.c: Likewise.
17702         * math/w_remainder.c: Likewise.
17703         * math/w_remainderf.c: Likewise.
17704         * math/w_remainderl.c: Likewise.
17705         * math/w_scalb.c: Likewise.
17706         * math/w_scalbf.c: Likewise.
17707         * math/w_scalbl.c: Likewise.
17708         * math/w_scalbln.c: Likewise.
17709         * math/w_scalblnf.c: Likewise.
17710         * math/w_scalblnl.c: Likewise.
17711         * math/w_sinh.c: Likewise.
17712         * math/w_sinhf.c: Likewise.
17713         * math/w_sinhl.c: Likewise.
17714         * math/w_tgamma.c: Likewise.
17715         * math/w_tgammaf.c: Likewise.
17716         * math/w_tgammal.c: Likewise.
17717         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17718         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17719         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17720         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17721         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17722         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17723         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17724         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17725         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17726         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17727         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17728         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17729         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17730         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17731         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17732         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17733         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17734         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17735         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17736         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17737         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17738         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17739         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17740         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17741         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17742         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17743         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17744         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17745         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17746         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17747         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17748         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17749         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17750         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17751         * stdio-common/printf_fp.c: Likewise.
17752         * stdio-common/printf_fphex.c: Likewise.
17753         * stdio-common/printf_size.c: Likewise.
17754
17755 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17756
17757         [BZ #18470]
17758         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17759         strnlen.
17760         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17761         Remove variable.
17762         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17763         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17764         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17765         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17766         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17767         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17768         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17769         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17770         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17771         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17772
17773         [BZ #18468]
17774         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17775         weak alias of __wmemchr.  Use libc_hidden_weak.
17776         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17777         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17778         instead of wmemchr.
17779
17780 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17781
17782         [BZ #18383]
17783         * elf/tst-tlsalign-extern.c: New file.
17784         * elf/tst-tlsalign-extern-static.c: New file.
17785         * elf/tst-tlsalign-vars.c: New file.
17786         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17787         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17788         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17789         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17790         (test-xfail-tst-tlsalign-extern-static): New variable.
17791
17792 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17793
17794         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17795         Use variable name _sc_err instead of err.
17796         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17797         instead of ret.
17798         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17799         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17800         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17801         (INLINE_SYSCALL): Likewise.
17802
17803         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17804         * include/string.h (__strnlen): Use libc_hidden_proto.
17805         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17806         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17807         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17808         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17809         (libc_hidden_def): Undefine and redefine.
17810         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17811         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17812         __GI_strnlen.
17813         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17814         libc_hidden_def.
17815         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17816
17817         [BZ #18469]
17818         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17819         weak alias of __towlower.  Use libc_hidden_weak.
17820         (towupper): Rename to __towupper and define as weak alias of
17821         __towupper.  Use libc_hidden_weak.
17822         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17823         (__towupper): Likewise.
17824         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17825         __towlower instead of towlower.
17826
17827 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17828
17829         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17830         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17831
17832 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17833
17834         * sysdeps/aarch64/libm-test-ulps: Update.
17835
17836 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17837
17838         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17839         Define.
17840         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17841         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17842         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17843         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17844         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17845         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17846         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17847
17848 2015-06-01  Martin Sebor  <msebor@redhat.com>
17849
17850         [BZ #18116]
17851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17852         (__setcontext): Use extended four-operand version of mtsf whenever
17853         possible.
17854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17855         (__novec_swapcontext): Likewise.
17856
17857 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17858
17859         * benchtests/scripts/compare_bench.py: New file.
17860         * benchtests/scripts/import_bench.py (mean): New function.
17861         (split_list): Likewise.
17862         (do_for_all_timings): Likewise.
17863         (compress_timings): Likewise.
17864
17865         * benchtests/scripts/import_bench.py: New file.
17866         * benchtests/scripts/validate_benchout.py: Import import_bench
17867         instead of jsonschema.
17868         (validate_bench): Remove function.
17869         (main): Use import_bench.
17870
17871 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17872
17873         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17874         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17875
17876 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17877
17878         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17879
17880 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17881
17882         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17883         set THREAD_SELF->tid to a magic value and futex-wake it.
17884         Pass its address to the thread_exit system call.
17885         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17886         bit is clear.
17887         * sysdeps/nacl/lowlevellock.h: New file.
17888         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17889
17890         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17891         Add TIMEOUT to current time, don't subtract it.
17892
17893 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17894
17895         [BZ #2981]
17896         [BZ #18422]
17897         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17898         ($(objpfx)tst-audit2.out): Also depend on
17899         $(objpfx)tst-auditmod9b.so.
17900         * elf/tst-audit2.c: Include <dlfcn.h>.
17901         (calloc_called): New.
17902         (calloc): Allow to be called more than once.
17903         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17904
17905 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17906
17907         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17908         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17909
17910 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17911
17912         * stdlib/monetary.h: Fix comment.
17913
17914 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17915
17916         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17917         Avoid using variables in #defines that might cause shadowing.
17918         (INTERNAL_VSYSCALL_CALL): Likewise.
17919
17920 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17921
17922         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17923
17924         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17925         * nptl/lll_timedlock_wait.c: ... to this new file.
17926         * nptl/Makefile (libpthread-routines): Add it.
17927         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17928         * nptl/lll_timedwait_tid.c: ... to this new file.
17929         * nptl/Makefile (libpthread-routines): Add it.
17930         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17931         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17932         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17933         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17934         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17935         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17936         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17937         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17938         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17939         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17940
17941 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17942
17943         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17944         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17945         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17946         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17947         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17948         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17949         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17950         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17951         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17952         * sysdeps/unix/sysv/linux/tile/sysdep.h
17953         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17954         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17955         using vDSO syscall macro.
17956
17957 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17958
17959         [BZ #17293]
17960         * uk_UA: Fix sorting order for Ukrainian locale
17961
17962 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17963
17964         * stdlib/monetary.h: Fix comment.
17965
17966 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17967
17968         [BZ #18234]
17969         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17970         st_mtim and st_ctim members.
17971         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17972         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17973         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17974         (struct stat64): Likewise.
17975         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17976         (struct stat64): Likewise.
17977         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17978         (struct stat64): Likewise.
17979
17980 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17981
17982         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17983         Define and include sysdep-vdso.h.
17984         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17985         Likewise.
17986         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17987         Likewise.
17988         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17989         Define with VDSO_SYMBOL and use PTR_MANGLE.
17990         (__vdso_clock_gettime): Likewise.
17991         (__vdso_clock_getres): Likewise.
17992         (_libc_vdso_platform_setup): Likewise.
17993         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17994         Likewise.
17995         (_libc_vdso_platform_setup): Likewise.
17996         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17997         Likewise.
17998         (__vdso_clock_gettime): Likewise.
17999         (__vdso_clock_getres): Likewise.
18000         (__vdso_get_tbfreq): Likewise.
18001         (__vdso_getcpu): Likewise.
18002         (__vdso_time): Likewise.
18003         (__vdso_sigtramp_rt64): Likewise.
18004         (__vdso_signtramp32): Likewise.
18005         (__vdso_sigtramp_rt32): Likewise.
18006         (_libc_vdso_platform_setup): Likewise.
18007         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
18008         Likewise.
18009         (__vdso_clock_gettime): Likewise.
18010         (__vdso_clock_getres): Likewise.
18011         (_libc_vdso_platform_setup): Likewise.
18012         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
18013         Likewise.
18014         (__vdso_clock_gettime): Likewise.
18015         (_libc_vdso_platform_setup): Likewise.
18016         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
18017         Likewise.
18018         (__vdso_getcpu): Likewise.
18019         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
18020         Use VDSO_SYMBOL macro to define.
18021         (__vdso_clock_gettime): Likewise.
18022         (__vdso_clock_getres): Likewise.
18023         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
18024         Likewise.
18025         (__vdso_clock_gettime): Likewise.
18026         (__vdso_clock_getres): Likewise.
18027         (__vdso_get_tbfreq): Likewise.
18028         (__vdso_getcpu): Likewise.
18029         (__vdso_time): Likewise.
18030         (__vdso_sigtramp_rt64): Likewise.
18031         (__vdso_signtramp32): Likewise.
18032         (__vdso_sigtramp_rt32): Likewise.
18033         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
18034         Likewise.
18035         (__vdso_clock_gettime): Likewise.
18036         (__vdso_clock_getres): Likewise.
18037         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
18038         Likewise.
18039         (__vdso_clock_gettime): Likewise.
18040         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
18041         Likewise.
18042         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
18043         macro.
18044         (INTERNAL_VSYSCALL): Likewise.
18045         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
18046         Remove macro.
18047         (INTERNAL_VSYSCALL): Likewise.
18048         (INTERNAL_VSYSCALL_NCS): Likewise.
18049         (INTERNAL_VSYSCALL_CALL): New macro.
18050         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18051         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
18052         Likewise.
18053         (INTERNAL_VSYSCALL): Likewise.
18054         (INTERNAL_VSYSCALL_NCS): Likewise.
18055         (INTERNAL_VSYSCALL_CALL): New macro.
18056         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
18058         (INLINE_VSYSCALL): Remove macro.
18059         (INTERNAL_VSYSCALL): Remove macro.
18060         (INTERNAL_VSYSCALL_NCS): Remove macro.
18061         (INTERNAL_VSYSCALL_CALL): New macro.
18062         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
18063         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
18064         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18065         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
18066         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
18067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
18068         (INLINE_VSYSCALL): Remove macro.
18069         (INTERNAL_VSYSCALL): Likewise.
18070         (INTERNAL_VSYSCALL_NCS): Likewise.
18071         (INTERNAL_VSYSCALL_CALL): New macro.
18072         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
18073         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
18074         PTR_DEMANGLE on vDSO pointer.
18075         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18076         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
18077         macro.
18078         (INTERNAL_SYSCALL): Likewise.
18079         (INTERNAL_VSYSCALL_NCS): Remove macro.
18080         (INTERNAL_VSYSCALL_CALL): New macro.
18081         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
18082         Remove macro.
18083         (INTERNAL_VSYSCALL): Likewise.
18084         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
18085         sysdep-vdso.h instead of libc-vdso.h.
18086         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
18087         definition.
18088         (INLINE_VSYSCALL): Likewise.
18089         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
18090         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
18091         definition.
18092         (INLINE_VSYSCALL): Likewise.
18093         (INTERNAL_VSYSCALL): Likewise.
18094         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18095         * sysdeps/unix/sysv/linux/timespec_get.c
18096         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18097         (timespec_get): Use ANSI prototype.
18098         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
18099         and definition for Linux.
18100
18101 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18102
18103         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
18104         * include/libc-symbols.h: libmvec_hidden_* macro series added.
18105
18106 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18107
18108         [BZ #2981]
18109         [BZ #18410]
18110         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
18111         for missing DT_PLTRELSZ.
18112
18113 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18114
18115         Remove obsolete aliases that broke 'locale -a'
18116         [BZ #18412]
18117         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
18118         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
18119         breaking some applications that use 'locale -a' output.
18120         Change the encoding of this file from Latin-1 to ASCII to avoid
18121         other potential problems with people grepping this file.
18122
18123 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18124
18125         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18126         -fasynchronous-unwind-tables.
18127         (CFLAGS-sendto.c): Likewise.
18128         (CFLAGS-sendmsg.c): Likewise.
18129         (CFLAGS-connect.c): Likewise.
18130         (CFLAGS-recvmsg.c): Likewise.
18131         (CFLAGS-recvfrom.c): Likewise.
18132         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18133         (SOCKETCALL): New macro: non-cancellable socketcall.
18134         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18135         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18136         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18137         * sysdeps/unix/sysv/linux/accept.c: New file.
18138         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18139         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18140         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18141         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18142         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18143         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18144         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18145         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18146         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18147         * sysdeps/unix/sysv/linux/send.c: Likewise.
18148         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18149         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18150         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18151         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18152         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18153         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18154         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18155         prototype.
18156         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18157         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18158         instead of __internal_xxx function.
18159         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18160         prototype.
18161         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18162         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18163         instead of __internal_xxx function.
18164         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18165         prototype.
18166         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18167         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18168         instead of __internal_xxx function.
18169         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18170         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18171         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18172         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18173         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18174         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18175         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18176         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18177         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18178         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18179         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18180         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18181         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18182         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18183         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18184         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18185         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18186         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18187         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18188         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18191         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18192         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18193         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18194         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18195         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18196         * sysdeps/unix/sysv/linux/send.S: Likewise.
18197         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18198         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18199         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18200         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18201         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18202         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18203         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18204         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18205         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18206         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18207         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18208         socketcall is implemented in GLIBC.
18209
18210 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18211
18212         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18213         (__fma): Ignore uninitialized warnings around packing.
18214         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18215         (__fmaf): Ignore uninitialized warnings around packing.
18216         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18217         (__fmal): Ignore uninitialized warnings around packing.
18218
18219         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18220         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18221         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18222         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18223
18224         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18225         switch statement into default case.
18226         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18227
18228         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18229         a conditional in forcing "inexact".
18230         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18231         Likewise.
18232
18233 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18234
18235         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18236         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18237         for each INTERNAL_SYSCALL use.
18238
18239 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18240
18241         [BZ #438]
18242         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18243         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18244         variable.
18245
18246         [BZ #18444]
18247         * string/basename.c (basename): Rename to __basename and define as
18248         weak alias of __basename.  Use libc_hidden_weak.
18249         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18250         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18251         __basename instead of basename.
18252         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18253         Remove variable.
18254         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18255
18256 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18257
18258         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18259         (_IO_JUMPS_FILE_plus): New.
18260         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18261         _IO_CAST_FIELD_ACCESS.
18262         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18263         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18264         * libio/freopen.c (freopen): Likewise.
18265         * libio/freopen64.c (freopen64): Likewise.
18266         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18267         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18268         * libio/iofwide.c (_IO_fwide): Likewise.
18269         * libio/memstream.c (open_memstream): Likewise.
18270         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18271         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18272         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18273
18274 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18275
18276         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18277         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18278         NADJ.
18279         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18280         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18281         NADJ.
18282         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18283         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18284         NADJ.
18285
18286         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18287         (p == 4) case.
18288
18289         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18290         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18291         Remove variable.
18292         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18293         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18294         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18295
18296 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18297
18298         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18299         Adjust jump table label generation macros.
18300
18301 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18302
18303         * stdio-common/vfprintf.c (vfprintf): Move local variables
18304         args_malloced, specs, specs_malloced, and the code after
18305         do_positional to the printf_positional function.
18306         (printf_positional): New function.
18307
18308 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18309
18310         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18311         function.
18312         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18313         STEP4_TABLE, process_arg): Move macro definitions
18314         out of the vfprintf function.  (Cosmetic change only.)
18315
18316 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18317
18318         * benchtests/Makefile (stdio-common-bench): Define.
18319         (benchset): Add stdio-common-bench.
18320         * sprintf-inputs: New file.
18321         * sprintf-source.c: New file.
18322
18323 2015-05-21  Andreas Schwab  <schwab@suse.de>
18324
18325         [BZ #13028]
18326         [BZ #17053]
18327         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18328         of struct __res_state.
18329         * resolv/res_send.c (__libc_res_nsend): Likewise.
18330         (get_nsaddr): New function.
18331         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18332         statp directly.
18333
18334 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18335
18336         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18337         -D_POSIX_C_SOURCE=199506L.
18338
18339         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18340
18341         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18342         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18343         Do not mention otherwise.
18344         [POSIX] (_XOPEN_VERSION): Do not expect.
18345         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18346         [POSIX] (_POSIX2_C_BIND): Likewise.
18347         [POSIX] (_POSIX2_VERSION): Likewise.
18348         [POSIX] (_XOPEN_XPG2): Likewise.
18349         [POSIX] (_XOPEN_XPG3): Likewise.
18350         [POSIX] (_XOPEN_XPG4): Likewise.
18351         [POSIX] (_XOPEN_UNIX): Likewise.
18352         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18353         [POSIX] (_POSIX_BARRIERS): Likewise.
18354         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18355         [POSIX] (_POSIX_CPUTIME): Likewise.
18356         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18357         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18358         [POSIX] (_POSIX_SHELL): Likewise.
18359         [POSIX] (_POSIX_SPAWN): Likewise.
18360         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18361         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18362         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18363         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18364         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18365         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18366         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18367         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18368         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18369         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18370         [POSIX] (_POSIX2_PBS): Likewise.
18371         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18372         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18373         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18374         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18375         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18376         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18377         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18378         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18379         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18380         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18381         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18382         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18383         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18384         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18385         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18386         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18387         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18388         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18389         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18390         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18391         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18392         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18393         [POSIX] (_SC_2_C_BIND): Likewise.
18394         [POSIX] (_SC_2_C_VERSION): Likewise.
18395         [POSIX] (_SC_2_PBS): Likewise.
18396         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18397         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18398         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18399         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18400         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18401         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18402         [POSIX] (_SC_BARRIERS): Likewise.
18403         [POSIX] (_SC_BASE): Likewise.
18404         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18405         [POSIX] (_SC_DEVICE_IO): Likewise.
18406         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18407         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18408         [POSIX] (_SC_FD_MGMT): Likewise.
18409         [POSIX] (_SC_FIFO): Likewise.
18410         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18411         [POSIX] (_SC_FILE_LOCKING): Likewise.
18412         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18413         [POSIX] (_SC_IOV_MAX): Likewise.
18414         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18415         [POSIX] (_SC_NETWORKING): Likewise.
18416         [POSIX] (_SC_PAGE_SIZE): Likewise.
18417         [POSIX] (_SC_PASS_MAX): Likewise.
18418         [POSIX] (_SC_PIPE): Likewise.
18419         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18420         [POSIX] (_SC_REGEXP): Likewise.
18421         [POSIX] (_SC_SHELL): Likewise.
18422         [POSIX] (_SC_SIGNALS): Likewise.
18423         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18424         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18425         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18426         [POSIX] (_SC_USER_GROUPS): Likewise.
18427         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18428         [POSIX] (_SC_STREAMS): Likewise.
18429         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18430         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18431         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18432         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18433         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18434         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18435         [POSIX] (_PC_FILESIZEBITS): Likewise.
18436         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18437         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18438         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18439         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18440         [POSIX] (uid_t): Likewise.
18441         [POSIX] (gid_t): Likewise.
18442         [POSIX] (off_t): Likewise.
18443         [POSIX] (pid_t): Likewise.
18444         [POSIX] (cuserid): Allow.
18445         (_SC_2_CHAR_TERM): Require constant.
18446         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18447         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18448         variable.
18449
18450 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18451
18452         * sysdeps/nacl/pthread-pids.h: New file.
18453         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18454         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18455
18456         * nptl/pthread-pids.h: New file.
18457         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18458         * nptl/nptl-init.c: Include <pthread-pids.h>.
18459         (__pthread_initialize_minimal_internal):
18460         Call __pthread_initialize_pids instead of set_tid_address syscall.
18461
18462         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18463         * sysdeps/posix/usleep.c: ... here.
18464
18465 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18466
18467         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18468         call_pselect6 object.
18469         [$(subdir) = io]: Remove call_sync_file_range object.
18470         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18471         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18472         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18473         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18474
18475 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18476
18477         * math/s_cproj.c: Add include "math_private.h".
18478         * math/s_cprojf.c: Likewise.
18479         * math/s_cprojl.c: Likewise.
18480
18481 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18482
18483         [BZ #18244]
18484         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18485         high mantissa bit when testing whether P is a NaN.
18486         * math/libm-test.inc (remainder_test_data): Add more tests.
18487         (remquo_test_data): Likewise.
18488
18489         [BZ #18049]
18490         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18491         below -32, return the argument, with underflow if subnormal.
18492         * math/auto-libm-test-in: Add more tests of atanh.
18493         * math/auto-libm-test-out: Regenerated.
18494
18495 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18496
18497         [BZ #18434]
18498         * nptl/tst-sem15.c: New file.
18499         * nptl/Makefile (tests): Add it.
18500         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18501         s/<</>>/ to fix typo in EOVERFLOW check.
18502         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18503
18504 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18505
18506         * manual/strings.texi (envz_remove): Fix typo in safety
18507         annotations.
18508
18509 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18510             Steve Ellcey  <sellcey@imgtec.com>
18511
18512         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18513         in order to avoid strict alias warnings.
18514         (iruserok_af): Ditto for ra.
18515
18516 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18517
18518         [BZ #17581]
18519         * malloc/hooks.c
18520         (magicbyte): Convert to a function and avoid returning 0x01.
18521         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18522         (mem2chunk_check): Fix unsigned comparisons to zero.
18523         Hoist defs of sz and magic.
18524
18525 2015-05-19  Richard Henderson  <rth@redhat.com>
18526
18527         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18528
18529         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18530
18531 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18532
18533         [BZ #16159]
18534         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18535         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18536         (reused_arena): Find a non-corrupt arena.
18537         (heap_trim): Pass arena to unlink.
18538         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18539         malloc_printerr.
18540         (top_check): Likewise.
18541         (free_check): Likewise.
18542         (realloc_check): Likewise.
18543         * malloc/malloc.c (malloc_printerr): Add arena argument.
18544         (unlink): Likewise.
18545         (munmap_chunk): Adjust.
18546         (ARENA_CORRUPTION_BIT): New macro.
18547         (arena_is_corrupt): Likewise.
18548         (set_arena_corrupt): Likewise.
18549         (sysmalloc): Use mmap if there are no usable arenas.
18550         (_int_malloc): Likewise.
18551         (__libc_malloc): Don't fail if arena_get returns NULL.
18552         (_mid_memalign): Likewise.
18553         (__libc_calloc): Likewise.
18554         (__libc_realloc): Adjust for additional argument to
18555         malloc_printerr.
18556         (_int_free): Likewise.
18557         (malloc_consolidate): Likewise.
18558         (_int_realloc): Likewise.
18559         (_int_memalign): Don't touch corrupt arenas.
18560         * malloc/tst-malloc-backtrace.c: New test case.
18561
18562         * Makefile (summarize-tests): Fix return value on success.
18563
18564         * manual/string.texi (Envz Functions): Add envz_remove.
18565
18566 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18567
18568         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18569         (invalid_name): New function, broken out of ...
18570         (__opendirat): ... here.  Call it.
18571         (need_isdir_precheck): New function, broken out of ...
18572         (__opendirat): ... here.  Call it.
18573         Use __fxstatat64, not __xstatat64.
18574         (opendir_oflags): New function, broken out of ...
18575         (__opendirat): ... here.  Call it.
18576         (opendir_tail): New function, broken out of ...
18577         (__opendirat): ... here.  Call it.
18578         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18579         opendir_tail, rather than punting to __opendirat.
18580         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18581
18582 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18583
18584         * .gitignore: Ignore generated *.pyc.
18585
18586 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18587
18588         * include/stdio.h: Define __need_wint_t.
18589         * test-skeleton.c: Avoid `for' loop initial declaration.
18590         * nptl/tst-initializers1.c: Use test-skeleton.c.
18591
18592 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18593
18594         [BZ #18418]
18595         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18596
18597 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18598
18599         [BZ #16352]
18600         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18601         (__ieee754_atanh): Force underflow exception for results with
18602         small absolute value.
18603         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18604         (__ieee754_atanhf): Force underflow exception for results with
18605         small absolute value.
18606         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18607         (__ieee754_atanh): Force underflow exception for results with
18608         small absolute value.
18609         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18610         (__ieee754_atanhf): Force underflow exception for results with
18611         small absolute value.
18612         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18613         (__ieee754_atanhl): Force underflow exception for results with
18614         small absolute value.
18615         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18616         (__ieee754_atanhl): Force underflow exception for results with
18617         small absolute value.
18618         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18619         (__ieee754_atanhl): Force underflow exception for results with
18620         small absolute value.
18621         * math/auto-libm-test-in: Do not allow missing underflow
18622         exceptions from atanh.
18623         * math/auto-libm-test-out: Regenerated.
18624
18625         [BZ #18221]
18626         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18627         2**-28 as threshold for returning x or +/- 1/x.
18628         * math/auto-libm-test-in: Add more tests of tan.
18629         * math/auto-libm-test-out: Regenerated.
18630
18631         [BZ #18220]
18632         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18633         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18634         * math/auto-libm-test-in: Add another test of lgamma.
18635         * math/auto-libm-test-out: Regenerated.
18636
18637 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18638
18639         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18640         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18641         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18642         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18643         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18644         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18645         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18646         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18647         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18648         (log1): Use fabs.  (my_log2): Use fabs.
18649         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18650         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18651         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18652         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18653         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18654         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18655         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18656         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18657         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18658         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18659         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18660
18661 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18662
18663         [BZ #18217]
18664         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18665         as threshold for returning 1 - x.
18666         * math/auto-libm-test-in: Add more tests of erfc.
18667         * math/auto-libm-test-out: Regenerated.
18668
18669 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18670
18671         [BZ #18196]
18672         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18673         threshold for large arguments.
18674         * math/auto-libm-test-in: Add another test of atan.
18675         * math/auto-libm-test-out: Regenerated.
18676
18677         [BZ #16339]
18678         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18679         (__log1p): Force underflow exception for results with small
18680         absolute value.
18681         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18682         (__log1pf): Force underflow exception for results with small
18683         absolute value.
18684         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18685         (__log1p): Force underflow exception for results with small
18686         absolute value.
18687         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18688         (__log1pf): Force underflow exception for results with small
18689         absolute value.
18690         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18691         (__log1pl): Force underflow exception for results with small
18692         absolute value.
18693         * math/auto-libm-test-in: Do not allow missing underflow
18694         exceptions from log1p.
18695         * math/auto-libm-test-out: Regenerated.
18696
18697 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18698             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18699
18700         [BZ #16704]
18701         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18702
18703 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18704
18705         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18706         (libmvec): New variable.
18707         * configure.ac: Added option for mathvec build.
18708         * configure: Regenerated.
18709         * mathvec/Depend: New file.
18710         * mathvec/Makefile: New file.
18711         * shlib-versions: Added libmvec.
18712         * math/Makefile: Added rule for libm.so installation.
18713
18714         * bits/math-vector.h: New file.
18715         * bits/libm-simd-decl-stubs.h: New header.
18716         * math/Makefile (headers): Added new header
18717         libm-simd-decl-stubs.h.
18718         * math/math.h (__MATHCALL_VEC): New macro.
18719
18720         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18721         for conditions in testing functions.
18722         * math/Makefile: Added call of libm-have-vector-test.sh.
18723         * math/libm-test.inc (HAVE_VECTOR): New macros.
18724
18725         * math/libm-test.inc: START refactored.
18726         * math/test-double.c (TEST_MATHVEC): Add define.
18727         * math/test-float.c: Likewise.
18728         * math/test-idouble.c: Likewise.
18729         * math/test-ifloat.c: Likewise.
18730         * math/test-ildoubl.c: Likewise.
18731         * math/test-ldouble.c: Likewise.
18732         * sysdeps/generic/math-tests-arch.h
18733         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18734         architecture check.
18735
18736         * math/test-double.c (FUNC_TEST): New macro.
18737         * math/test-float.c: Likewise.
18738         * math/test-idouble.c: Likewise.
18739         * math/test-ifloat.c: Likewise.
18740         * math/test-ildoubl.c: Likewise.
18741         * math/test-ldouble.c: Likewise.
18742         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18743
18744 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18745
18746         * sysdeps/nacl/fdopendir.c: New file.
18747
18748         * dirent/scandir-tail.c: New file.
18749         * dirent/scandir64-tail.c: New file.
18750         * dirent/Makefile (routines): Add them.
18751         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18752         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18753         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18754         [!SCANDIR] (SCANDIR_TAIL): New macro.
18755         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18756         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18757         (SCANDIRAT): Macro removed.
18758         (SCANDIR_TAIL): New macro.
18759         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18760         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18761         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18762         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18763         (READDIR): Macro removed.
18764         (SCANDIR_TAIL): New macro.
18765         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18766         (SCANDIR_TAIL): New macro.
18767
18768         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18769         * dirent/scandir-cancel.c: ... to this new file.
18770         * dirent/Makefile (routines): Add it.
18771         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18772         * sysdeps/unix/sysv/linux/i386/scandir64.c
18773         (SKIP_SCANDIR_CANCEL): Macro removed.
18774         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18775
18776         * dirent/tst-scandir.c: New file.
18777         * dirent/tst-scandir64.c: New file.
18778         * dirent/Makefile (tests): Add them.
18779
18780 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18781
18782         [BZ #18409]
18783         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18784
18785 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18786
18787         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18788         list.
18789
18790 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18791
18792         * benchtests/bench-strcoll.c: New benchmark.
18793         * benchtests/Makefile: Generate locales and run benchmark.
18794         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18795         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18796         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18797         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18798         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18799         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18800         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18801         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18802         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18803         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18804         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18805         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18806         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18807         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18808         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18809         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18810         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18811         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18812         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18813         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18814         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18815         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18816         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18817         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18818
18819 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18820
18821         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18822         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18823
18824 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18825
18826         * posix/uname-values.h: New file.
18827         * posix/uname.c: Include that instead of <config-name.h>.
18828         * sysdeps/nacl/uname-values.h: New file.
18829         * sysdeps/arm/nacl/uname-values.h: New file.
18830
18831 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18832
18833         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18834         splitting into fields.
18835
18836 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18837
18838         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18839         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18840         * locale/localeinfo.h: Add enum collation_encoding_type.
18841         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18842         * programs/ld-collate.c (collate_output): Add encoding type info.
18843         * string/strcoll_l.c (STRDIFF): New function.
18844         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18845         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18846
18847 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18848
18849         [BZ #18397]
18850         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18851         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18852         <fpu_control.h> instead of <math/fpu_control.c>.
18853         * sysdeps/mips/mips32/fpu/Makefile: New file.
18854
18855 2015-05-11  Andreas Schwab  <schwab@suse.de>
18856
18857         [BZ #18007]
18858         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18859         nss_endgrent.
18860         (_nss_compat_endgrent): Call nss_endgrent.
18861         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18862         nss_endpwent.
18863         (_nss_compat_endpwent): Call nss_endpwent.
18864         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18865         needent, call nss_setspent only if non-zero.
18866         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18867         (internal_endspent): Don't call nss_endspent.
18868         (_nss_compat_endspent): Call nss_endspent.
18869         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18870         Remove.  All uses removed.
18871         (internal_setent): Remove parameter stayopen, add parameter
18872         stream.  Use it instead of global variable.
18873         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18874         (internal_endent, internal_getent): Add parameter stream.  Use it
18875         instead of global variable.
18876         (CONCAT(_nss_files_end,ENTNAME))
18877         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18878         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18879         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18880         uses removed.
18881         (internal_setent, internal_endent): Add parameter stream.  Use it
18882         instead of global variable.
18883         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18884         stream.
18885         (get_next_alias): Add parameter stream.
18886         (_nss_files_getaliasent_r): Pass global stream.
18887         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18888         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18889         (_nss_files_gethostbyname4_r): Pass local stream to
18890         internal_setent, internal_getent and internal_endent.  Remove
18891         locking.
18892
18893 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18894
18895         * tst-strfmon1.c (tests): Update expected currency symbol.
18896
18897 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18898
18899         * sysdeps/nacl/gethostname.c: New file.
18900
18901 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18902
18903         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18904         and sinh.
18905         * math/auto-libm-test-out: Regenerated.
18906         * sysdeps/i386/fpu/libm-test-ulps: Update.
18907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18908
18909 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18910
18911         [BZ #18125]
18912         * stdlib/tst-setcontext3.c: New file.
18913         * stdlib/tst-setcontext3.sh: New file.
18914         * stdlib/Makefile (tests): Add tst-setcontext3.
18915         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18916         to verify test program created output file.
18917         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18918         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18919         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18920         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18921
18922 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18923
18924         [BZ #18383]
18925         * elf/tst-tlsalign.c: New file.
18926         * elf/tst-tlsalign-static.c: New file.
18927         * elf/tst-tlsalign-lib.c: New file.
18928         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18929         (tests-static): Add tst-tlsalign-static.
18930         (modules-names): Add tst-tlsalign-lib.
18931         (test-xfail-tst-tlsalign): New variable.
18932         (test-xfail-tst-tlsalign-static): New variable.
18933
18934         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18935         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18936
18937 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18938
18939         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18940         csqrt, erfc, sin and sincos.
18941         * math/auto-libm-test-out: Regenerated.
18942         * sysdeps/i386/fpu/libm-test-ulps: Update.
18943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18944
18945 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18946
18947         * sysdeps/aarch64/libm-test-ulps: Update.
18948
18949 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18950
18951         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18952         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18953         * math/auto-libm-test-out: Regenerated.
18954         * sysdeps/i386/fpu/libm-test-ulps: Update.
18955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18956
18957 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18958
18959         [BZ #18265]
18960         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18961         (wcsncpy): Likewise.
18962
18963 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18964
18965         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18966         Assume __ASSUME_FALLOCATE is always true.
18967         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18968         (__posix_fallocate64_l64): Likweise.
18969         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18970         (posix_fallocate): Likewise.
18971         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18972         (__posix_fallocate64_l64): Likewise.
18973         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18974         [!__ASSUME_FALLOCATE]: Add comment.
18975
18976 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18977
18978         * sysdeps/unix/sysv/linux/i386/Makefile
18979         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18980         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18981         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18982         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18983         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18984         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18985         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18986
18987 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18988
18989         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18990         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18991         tgamma.
18992         * math/auto-libm-test-out: Regenerated.
18993         * sysdeps/i386/fpu/libm-test-ulps: Update.
18994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18995
18996 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18997
18998         * math/auto-libm-test-in: Add more tests of tgamma.
18999         * math/auto-libm-test-out: Regenerated.
19000         * sysdeps/i386/fpu/libm-test-ulps: Update.
19001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19002
19003         * math/auto-libm-test-in: Add more tests of tanh.
19004         * math/auto-libm-test-out: Regenerated.
19005         * sysdeps/i386/fpu/libm-test-ulps: Update.
19006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19007
19008         * math/auto-libm-test-in: Add more tests of tan.
19009         * math/auto-libm-test-out: Regenerated.
19010         * sysdeps/i386/fpu/libm-test-ulps: Update.
19011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19012
19013         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
19014         * math/auto-libm-test-out: Regenerated.
19015         * sysdeps/i386/fpu/libm-test-ulps: Update.
19016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19017
19018         * math/auto-libm-test-in: Add another test of pow.
19019         * math/auto-libm-test-out: Regenerated.
19020         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19021
19022         * math/auto-libm-test-in: Add more tests of lgamma.
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 log, log10, log2 and
19028         log1p.
19029         * math/auto-libm-test-out: Regenerated.
19030         * sysdeps/i386/fpu/libm-test-ulps: Update.
19031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19032
19033 2015-05-01  Mark Wielaard  <mjw@redhat.com>
19034
19035         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
19036         Elf64_Chdr structs and ELFCOMPRESS constants.
19037
19038 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
19039
19040         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
19041         expm1.
19042         * math/auto-libm-test-out: Regenerated.
19043         * sysdeps/i386/fpu/libm-test-ulps: Update.
19044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19045
19046         * math/auto-libm-test-in: Add more tests of erf and erfc.
19047         * math/auto-libm-test-out: Regenerated.
19048         * sysdeps/i386/fpu/libm-test-ulps: Update.
19049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19050
19051 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19052
19053         * config.h.in (HAVE_AARCH64_BE): Add.
19054
19055 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
19056
19057         * math/auto-libm-test-in: Add more tests of csqrt.
19058         * math/auto-libm-test-out: Regenerated.
19059         * sysdeps/i386/fpu/libm-test-ulps: Update.
19060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19061
19062         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19063         * math/auto-libm-test-out: Regenerated.
19064         * sysdeps/i386/fpu/libm-test-ulps: Update.
19065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19066
19067         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
19068
19069 2015-04-29  Roland McGrath  <roland@hack.frob.com>
19070
19071         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
19072         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
19073
19074         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
19075         (euidaccess, eaccess): Define as weak aliases.
19076
19077         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
19078         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
19079         but __suseconds_t is often 'long int' so some sources assume that
19080         type is being used (e.g. they use %ld to print tv_usec).
19081
19082 2015-04-29  Florian Weimer  <fweimer@redhat.com>
19083
19084         [BZ #18007]
19085         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
19086         (CVE-2014-8121)
19087         * nss/tst-nss-getpwent.c: New file.
19088         * nss/Makefile (tests): Add new test.
19089
19090 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
19091
19092         [BZ #18346]
19093         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
19094         exponents less than 48 as cases where high part of mantissa needs
19095         examining to determine whether argument is integral.
19096         * math/libm-test.inc (round_test_data): Add more tests.
19097
19098 2015-04-28  Mark Wielaard  <mjw@redhat.com>
19099
19100         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
19101
19102 2015-04-27  David S. Miller  <davem@davemloft.net>
19103
19104         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
19105         __tls_get_addr.
19106         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
19107
19108 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19109
19110         [BZ#18333]
19111         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
19112
19113 2015-04-27  Florian Weimer  <fweimer@redhat.com>
19114
19115         [BZ#18333]
19116         * time/tzset.c (parse_tzname): Return error on memory allocation
19117         failure.
19118         * test-skeleton.c (struct temp_name_list): Change type of name
19119         member to non-const.
19120         (add_temp_file): Create a copy of the file name.
19121         (delete_temp_files): Deallocate memory.
19122         (create_temp_file): Add comment.
19123
19124 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19125
19126         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19127         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19128
19129 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19130
19131         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19132         * sysdeps/arm/configure: Regenerated.
19133
19134 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19135
19136         [BZ #17715]
19137         * time/tzfile.c (__tzfile_read): Check for large values of
19138         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19139         * time/tzset.c (__tzstring_len): New function, based on the old
19140         __tzstring function.
19141         (__tzstring): Call __tzstring_len.
19142         (parse_tzname): New helper function extracted from
19143         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19144         the input string.
19145         (parse_offset): New helper function extracted from
19146         __tzset_parse_tz.  Replace switch with fallthrough with
19147         initialization before sscanf.
19148         (parse_rule): Likewise.
19149         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19150         new-style function definition.
19151         * timezone/Makefile (tests): Add tst-tzset.
19152         (tst-tzset.out): Dependencies on time zone files.
19153         (tst-tzset-ENV): Set TZDIR.
19154         (testdata/XT%): Copy crafted time zone files.
19155         * timezone/README: Mention crafted time zone files.
19156         * timezone/testdata/XT1, timezone/testdata/XT2,
19157         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19158         files.
19159         * timezone/tst-tzset.c: New test.
19160
19161 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19162
19163         * Makeconfig (+gccwarn): Remove -Winline.
19164
19165 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19166
19167         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19168
19169 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19170
19171         * NEWS: Mention sysconf() cache information support for s390.
19172         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19173
19174 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19175
19176         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19177         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19178         (__nearbyint): Likewise.
19179         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19180         (copysignl): Likewise.
19181
19182 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19183
19184         [BZ #18287]
19185         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19186         based on padding.  (CVE-2015-1781)
19187
19188 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19189
19190         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19191         libc-vdso.h.
19192         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19193         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19194         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19195         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19196         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19197         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19198         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19199         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19200         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19201         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19202         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19203         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19204         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19205         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19206         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19207         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19208         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19209         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19210         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19211         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19212         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19213         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19214         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19215
19216 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19217
19218         * stdlib/setenv.c (__add_to_environ):
19219         Dump core quickly if setenv (..., NULL, ...) is called.
19220         This time, do it the right way, and pacify GCC with a pragma.
19221
19222 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19223
19224         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19225         IMAP->l_prev cannot be null, and #if out the code for the contrary
19226         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19227         believe that NS (&_dl_ns[NSID]) could point outside the array.
19228
19229         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19230         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19231         before using NSID as an index.
19232
19233 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19234
19235         [BZ #17825]
19236         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19237         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19238         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19239
19240 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19241
19242         Add preliminary port to Google Native Client on ARM.
19243         * abi-tags (.*-.*-nacl.*): New entry.
19244         * sysdeps/arm/nacl: New directory.
19245         * sysdeps/nacl: New directory.
19246
19247 2015-04-16  David S. Miller  <davem@davemloft.net>
19248
19249         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19250         lowlevellock-futex.h
19251
19252 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19253
19254         * sysdeps/tile/configure.ac: New file.
19255         * sysdeps/tile/configure: Regenerated.
19256
19257 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19258
19259         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19260         conditionals for weak_alias and libc_hidden_weak.
19261         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19262         libc_hidden_weak and weak_alias.
19263         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19264         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19265         and weak_alias for static one.
19266
19267 2015-04-15  David S. Miller  <davem@davemloft.net>
19268
19269         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19270
19271 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19272
19273         [BZ #18206]
19274         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19275           Use signed comparision instead of substraction to avoid
19276           overflow bug.
19277         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19278           Take the sign of ret.
19279         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19280           Do not expect precise return values. Only the sign matters.
19281         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19282         * wcsmbs/test-wcsncmp.c: New File.
19283         * string/test-strncmp.c: Add wcsncmp support.
19284
19285 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19286
19287         [BZ #6792]
19288         * math/w_log1p.c: New file.
19289         * math/w_log1pf.c: Likewise.
19290         * math/w_log1pl.c: Likewise.
19291         * math/Makefile (libm-calls): Add w_log1p.
19292         * math/s_log1pl.c (log1pl): Remove weak_alias.
19293         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19294         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19295         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19296         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19297         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19298         [NO_LONG_DOUBLE] (log1pl): Likewise.
19299         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19300         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19301         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19302         (log1p): Remove long_double_symbol.
19303         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19304         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19305         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19306         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19307         remove weak_alias for corresponding log1p function.
19308         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19309         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19310         * sysdeps/ia64/fpu/w_log1p.c: New file.
19311         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19312         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19313         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19314
19315 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19316
19317         [BZ #18247]
19318         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19319         decimal exponent by 1.
19320         * stdlib/tst-strtod-round-data: Add more tests.
19321         * stdlib/tst-strtod-round.c (tests): Regenerated.
19322
19323 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19324
19325         * math/auto-libm-test-in: Add more tests of clog and clog10.
19326         * math/auto-libm-test-out: Regenerated.
19327         * sysdeps/i386/fpu/libm-test-ulps: Update.
19328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19329
19330 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19331
19332         * Makeconfig (module-cppflags): Exclude all .v.i files.
19333         (skip-module-cppflags): Variable removed.
19334
19335         * configure.ac (libc_config_ok): Initialize before reading
19336         preconfigure scripts, not after.
19337         * configure: Regenerated.
19338
19339         * test-skeleton.c (TIMEOUT): Move #define to top level.
19340         (main): Grok environment variable TEST_DIRECT.  If set, print
19341         test expectation details into that file and then behave as if
19342         given --direct.
19343
19344 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19345
19346         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19347         warning on 32-bit.
19348
19349 2015-04-08  David S. Miller  <davem@davemloft.net>
19350
19351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19352
19353 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19354
19355         * math/auto-libm-test-in: Add more tests of atanh.
19356         * math/auto-libm-test-out: Regenerated.
19357         * sysdeps/i386/fpu/libm-test-ulps: Update.
19358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19359
19360         * math/auto-libm-test-in: Add more tests of atan.
19361         * math/auto-libm-test-out: Regenerated.
19362         * sysdeps/i386/fpu/libm-test-ulps: Update.
19363         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19364
19365 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19366
19367         * elf/pldd.c (main): Rewrite to use struct
19368         scratch_buffer instead of extend_alloca.
19369         * elf/pldd-xx.c (find_maps): Likewise.
19370         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19371         <alloca.h>.
19372         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19373         scratch_buffer instead of extend_alloca.
19374         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19375         grp/compat-initgroups.c.
19376         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19377         Rewrite to use struct scratch_buffer instead of extend_alloca.
19378         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19379         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19380
19381 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19382
19383         * math/auto-libm-test-in: Add more tests of cbrt.
19384         * math/auto-libm-test-out: Regenerated.
19385         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19386
19387         * math/auto-libm-test-in: Add more tests of cabs.
19388         * math/auto-libm-test-out: Regenerated.
19389         * sysdeps/i386/fpu/libm-test-ulps: Update.
19390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19391
19392         [BZ #18210]
19393         [BZ #18211]
19394         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19395         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19396         computations.
19397         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19398         clog10.
19399         * math/auto-libm-test-out: Regenerated.
19400         * sysdeps/i386/fpu/libm-test-ulps: Update.
19401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19402
19403         [BZ #18197]
19404         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19405         (atan): Set FE_TONEAREST mode for internal computations.
19406         * math/auto-libm-test-in: Add more tests of atan.
19407         * math/auto-libm-test-out: Regenerated.
19408
19409 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19410
19411         [BZ #17930]
19412         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19413
19414 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19415
19416         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19417
19418 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19419
19420         * include/scratch_buffer.h: New file.
19421         * malloc/scratch_buffer_grow.c: Likewise.
19422         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19423         * malloc/scratch_buffer_set_array_size.c: Likewise.
19424         * malloc/tst-scratch_buffer.c: Likewise.
19425         * malloc/Makefile (routines): Add scratch_buffer_grow.
19426         (tests): Add test case.
19427         * malloc/Versions (GLIBC_PRIVATE): Export
19428         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19429         __libc_scratch_buffer_set_array_size.
19430
19431 2015-04-06  Richard Henderson  <rth@redhat.com>
19432
19433         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19434         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19435
19436         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19437         unsigned int before printing.
19438
19439 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19440
19441         [BZ #17596]
19442         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19443         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19444
19445 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19446
19447         * include/libc-internal.h (libc_max_align_t): Define.
19448
19449 2015-04-02  Andreas Schwab  <schwab@suse.de>
19450
19451         [BZ #16850]
19452         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19453
19454 2015-04-02  Mel Gorman  <mgorman@suse.de>
19455
19456         [BZ #17195]
19457         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19458         as well as the main arena.
19459
19460 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19461
19462         [BZ #18185]
19463         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19464         sharing L2 cache to 2 for Silvermont/Knights Landing.
19465
19466 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19467
19468         [BZ #17711]
19469         * config.make.in (have-protected-data): New.
19470         * configure.ac: Check linker support for protected data symbol.
19471         * configure: Regenerated.
19472         * elf/Makefile (modules-names): Add tst-protected1moda and
19473         tst-protected1modb if $(have-protected-data) is yes.
19474         (tests): Add tst-protected1a and tst-protected1b if
19475         $(have-protected-data) is yes.
19476         ($(objpfx)tst-protected1a): New.
19477         ($(objpfx)tst-protected1b): Likewise.
19478         (tst-protected1modb.so-no-z-defs): Likewise.
19479         * elf/tst-protected1a.c: New file.
19480         * elf/tst-protected1b.c: Likewise.
19481         * elf/tst-protected1mod.h: Likewise.
19482         * elf/tst-protected1moda.c: Likewise.
19483         * elf/tst-protected1modb.c: Likewise.
19484
19485 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19486
19487         [BZ #17711]
19488         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19489         indicates it is called from do_lookup_x on relocation against
19490         protected data, skip the data definion in the executable from
19491         copy reloc.
19492         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19493         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19494         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19495         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19496         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19497         otherwise to 0.
19498         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19499         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19500         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19501         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19502         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19503         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19504
19505 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19506
19507         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19508         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19509
19510 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19511
19512         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19513         THREAD_SETMEM_NC.
19514         * sysdeps/x86_64/nptl/tls.h: Ditto.
19515
19516 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19517
19518         * dlfcn/tststatic.c (main): Converted to ...
19519         (do_test): ... this.
19520         (TEST_FUNCTION): New macro.
19521         Include test-skeleton.c.
19522
19523 2015-03-26  Alan Modra  <amodra@gmail.com>
19524
19525         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19526         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19527         zero for undefined weak.
19528         (elf_machine_plt_conflict): Similarly.
19529
19530 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19531
19532         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19533         atanh.
19534         * math/auto-libm-test-out: Regenerated.
19535         * sysdeps/i386/fpu/libm-test-ulps: Update.
19536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19537
19538         * math/auto-libm-test-in: Add another test of asin.
19539         * math/auto-libm-test-out: Regenerated.
19540         * sysdeps/i386/fpu/libm-test-ulps: Update.
19541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19542
19543         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19544         Remove macro.
19545         (LLL_EBX_REG): Likewise.
19546         (LLL_ENTER_KERNEL): Likewise.
19547
19548         * math/auto-libm-test-in: Add more tests of asin.
19549         * math/auto-libm-test-out: Regenerated.
19550         * sysdeps/i386/fpu/libm-test-ulps: Update.
19551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19552
19553         [BZ #18138]
19554         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19555         libc_do_syscall_args): New structure.
19556         (INTERNAL_SYSCALL_MAIN_0): New macro.
19557         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19558         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19559         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19560         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19561         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19562         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19563         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19564         Replace conditional definitions by conditional definitions of ....
19565         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19566         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19567         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19568         (libpthread-sysdep_routines): Add libc-do-syscall.
19569         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19570         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19571         to __NR_futex not 240.
19572
19573 2015-03-25  Alan Modra  <amodra@gmail.com>
19574
19575         * NEWS: Advertise TLS optimization.
19576         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19577         (DT_PPC_NUM): Increment.
19578         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19579         (CHECK_STATIC_TLS): Use here.
19580         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19581         TLS descriptors.
19582         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19583         * sysdeps/powerpc/dl-tls.c: New file.
19584         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19585         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19586         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19587         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19591
19592 2015-03-25  Alan Modra  <amodra@gmail.com>
19593
19594         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19595         for overlapping .opd entries" to "support...".
19596         * sysdeps/powerpc/powerpc64/configure: Regenerate
19597
19598 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19599
19600         * math/auto-libm-test-in: Add more tests of acos.
19601         * math/auto-libm-test-out: Regenerated.
19602         * sysdeps/i386/fpu/libm-test-ulps: Update.
19603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19604
19605         * math/auto-libm-test-in: Add more tests of expm1.
19606         * math/auto-libm-test-out: Regenerated.
19607         * sysdeps/i386/fpu/libm-test-ulps: Update.
19608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19609
19610 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19611
19612         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19613         * math/auto-libm-test-out: Regenerated.
19614         * sysdeps/i386/fpu/libm-test-ulps: Update.
19615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19616
19617         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19619
19620         * math/auto-libm-test-in: Add more tests of log2.
19621         * math/auto-libm-test-out: Regenerated.
19622         * sysdeps/i386/fpu/libm-test-ulps: Update.
19623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19624
19625 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19626
19627         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19628         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19629         _IO_IS_APPENDING bit in READ_WRITE instead.
19630
19631 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19632
19633         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19634         (__determine_cpumask_size): Replace extend_alloca with a
19635         variable-length array.  Do not treat res == 0 as an error.
19636
19637 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19638
19639         [BZ #18100]
19640         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19641         and integer overflow.
19642         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19643         (main): Add integer overflow tests.
19644         * manual/pattern.texi (Calling Wordexp): Document additional use
19645         for WRDE_SYNTAX.
19646
19647 2015-03-23  Alan Modra  <amodra@gmail.com>
19648
19649         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19650         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19651         and false branch of conditional.
19652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19653         Likewise.
19654
19655 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19656
19657         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19658         libc-modules.h
19659         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19660         unused declaration of _hurd_intr_rpc_msg_in_trap.
19661         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19662         defined instead of whether it is non-zero.
19663         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19664         input constraint instead of both input and output constraint.  Use ecx
19665         clobber instead of %ecx.
19666         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19667         mutex_unlock): Use a statement expression instead of an expression list.
19668         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19669         type to vm_size_t instead of vm_address_t.
19670         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19671         defined instead of whether it is non-zero.
19672         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19673         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19674         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19675         comparisons with mapaddr.
19676         * nscd/nscd-client.h: Include <time.h>.
19677         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19678         9th parameter to __vm_region instead of int.
19679         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19680         * scripts/check-local-headers.sh (exclude): Add device/,
19681         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19682         cthreads.h.
19683
19684 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19685
19686         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19687         to account for alignment padding.
19688         * sysdeps/arm/memmove.S: Likewise.
19689
19690 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19691
19692         * sysdeps/unix/sysv/linux/generic/README: New file.
19693
19694 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19695
19696         [BZ #18138]
19697         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19698         (futex_abstimed_wait)
19699         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19700         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19701         of lll_futex_timed_wait.
19702
19703 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19704
19705         [BZ #17542]
19706         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19707
19708 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19709
19710         [BZ #17090]
19711         [BZ #17620]
19712         [BZ #17621]
19713         [BZ #17628]
19714         * NEWS: Update.
19715         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19716         entries with Static TLS too.  Skip entries past the end of the
19717         allocated DTV, from Alan Modra.
19718         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19719         Static TLS DTV entry set up from...
19720         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19721         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19722         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19723         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19724         for Static TLS.
19725         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19726         that the slot we find is associated with the given map before
19727         using its generation count.
19728         * nptl_db/db_info.c: Include ldsodefs.h.
19729         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19730         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19731         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19732         (link_map::l_tls_offset): New struct field.
19733         (dtv_t::counter): Likewise.
19734         (rtld_global): New struct.
19735         (_rtld_global): New rtld variable.
19736         (dl_tls_dtv_slotinfo_list): New rtld global field.
19737         (dtv_slotinfo_list): New struct.
19738         (dtv_slotinfo): Likewise.
19739         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19740         (td_lookup): Rename to...
19741         (td_mod_lookup): ... this.  Use new mod parameter instead of
19742         LIBPTHREAD_SO.
19743         * nptl_db/td_thr_tlsbase.c: Include link.h.
19744         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19745         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19746         addresses even if the DTV is out of date or missing them.
19747         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19748         index zero-length arrays.
19749         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19750         (td_lookup): Make it a macro implemented in terms of...
19751         (td_mod_lookup): ... this declaration.
19752         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19753         (DB_MAIN_VARIABLE): Likewise.
19754
19755 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19756
19757         [BZ #18134]
19758         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19759
19760 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19761
19762         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19763
19764 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19765
19766         [BZ #18128]
19767         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19768         (atomic_add, atomic_increment_and_test)
19769         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19770
19771 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19772
19773         * stdlib/setenv.c (__add_to_environ):
19774         Dump core quickly if setenv (..., NULL, ...) is called.
19775
19776 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19777
19778         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19779         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19780         all the necessary asm magic in one place.
19781         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19782         using those.
19783
19784 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19785
19786         [BZ #14906]
19787         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19788         traced file mtime. Use consistent log message.
19789         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19790         (register_traced_file): Call install_watches. Always set mtime.
19791         (invalidate_cache): Iterate over all trace files. Call install_watches.
19792         (inotify_check_files): Don't inline. Handle watching parent
19793         directories and configuration file movement in and out.
19794         (handle_inotify_events): New function.
19795         (main_loop_poll): Call handle_inotify_events.
19796         (main_loop_epoll): Likewise.
19797         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19798         (struct traced_file): Use array of inotify fds. Add parent directory,
19799         and basename.
19800         (struct database_dyn): Remove unused file_mtime.
19801         (init_traced_file): New inline function.
19802         (define_traced_file): New macro.
19803         * nss/nss_db/db-init.c: Use define_traced_file.
19804         (_nss_db_init): Use init_traced_file.
19805         * nss/nss_files/files-init.c: Use define_traced_file.
19806         (_nss_files_init): Use init_traced_file.
19807
19808 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19809
19810         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19811         [_LIBC]: Do not include <stdlib.h>.
19812         [!_LIBC] (abort): Remove declaration.
19813         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19814         _FP_STATIC_ASSERT instead of conditionally calling abort.
19815         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19816         (_FP_EXTEND_CNAN): Likewise.
19817         (FP_TRUNC): Likewise.
19818         (__FP_CLZ): Likewise.
19819         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19820
19821 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19822
19823         * manual/string.texi (XPG basename): Fix prototype.
19824
19825 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19826
19827         [BZ #18080]
19828         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19829         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19830         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19831         (__setcontext): Likewise.
19832         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19833         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19834         Call rt_sigprocmask syscall one time to set new signal mask
19835         and retrieve the current signal mask instead of two calls.
19836         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19837         (__swapcontext): Likewise.
19838         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19839         * stdlib/tst-setcontext2.c: New file.
19840
19841 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19842
19843         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19844
19845 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19846
19847         [BZ #18093]
19848         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19849         the wrong size.
19850
19851 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19852
19853         [BZ #18043]
19854         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19855
19856 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19857
19858         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19859         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19860         Remove define.
19861         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19862         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19863         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19864         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19865         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19866         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19867         define.
19868         * nptl_db/td_symbol_list.c (td_lookup): Remove
19869         HAVE_ASM_GLOBAL_DOT_NAME code.
19870         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19871         HAVE_ASM_GLOBAL_DOT_NAME check.
19872         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19873         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19874         (DOT_LABEL): Remove define.
19875         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19876         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19877         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19878         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19879         (__TLS_GET_ADDR): Likewise.
19880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19881         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19882
19883 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19884
19885         [BZ #18111]
19886         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19887         (_FPU_SETCW): Initialize cw from fpsr before storing.
19888         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19889         (fesetexceptflag): Rewrite using fpu_control.h.
19890         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19891
19892 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19893
19894         [BZ #18110]
19895         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19896         asms.
19897         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19898
19899 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19900
19901         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19902         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19903         abort.
19904         (_FP_FMA): Likewise.
19905         (_FP_DIV): Likewise.
19906
19907 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19908
19909         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19910         with 0 in that case.
19911         * Makefile (summarize-tests): New canned sequence, factored out of
19912         commands for targets tests and xtests.  Display summary lines that
19913         don't start with PASS: or XFAIL: rather than ones that do start with
19914         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19915         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19916         do start with ERROR: or FAIL:.
19917         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19918         (except for [$(build-shared) = yes]).
19919         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19920         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19921         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19922         * nptl/Makefile: Revert 2015-03-04 changes.
19923         [$(CXX) empty] (tests-unsupported): New variable.
19924         * debug/Makefile: Likewise.
19925
19926         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19927         gnulib file.  Replace __attribute with __attribute__ throughout.
19928
19929 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19930
19931         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19932
19933 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19934
19935         [BZ #18104]
19936         * math/auto-libm-test-in: Add another test of pow.
19937         * math/auto-libm-test-out: Regenerated.
19938
19939 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19940
19941         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19942         $(config-cflags-nofma).
19943
19944 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19945
19946         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19947         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19948         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19949         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19950         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19951         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19952         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19953         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19954         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19955         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19956         Add comment on closing #endif.
19957
19958 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19959
19960         * posix/wordexp.c (CHAR_IN_SET): New macro.
19961         (parse_param): Use it.
19962
19963 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19964
19965         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19966
19967 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19968
19969         [BZ #18043]
19970         * posix/wordexp.c (parse_param): Fix buffer overflow.
19971         * posix/wordexp-test.c (test_case): Add test case.
19972
19973 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19974
19975         [BZ #18042]
19976         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19977         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19978
19979 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19980
19981         [BZ #18043]
19982         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19983         (do_bz18043): Delete.
19984         (at_page_end): New.
19985         (testit): Refactor to have words at the edge of unreadable page.
19986
19987 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19988
19989         [BZ #16734]
19990         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19991         Cleanup read-only streams as well.
19992         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19993
19994 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19995
19996         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19997         <bits/libc-lockP.h>
19998
19999 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
20000
20001         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
20002         on [__KERNEL__].
20003         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
20004         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
20005         * soft-fp/op-common.h (_FP_DECL): Likewise.
20006
20007 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
20008
20009         * elf/ifuncdep2.c (global): Replace
20010         __attribute__((visibility("protected"))) with
20011         asm (".protected global").
20012         * elf/ifuncmod1.c (global): Likewise.
20013         * elf/ifuncmod5.c (global): Likewise.
20014
20015 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
20016
20017         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
20018         <asm/sfp-machine.h> instead of <sfp-machine.h>.
20019
20020 2015-03-06  Roland McGrath  <roland@hack.frob.com>
20021
20022         * manual/install.texi (Configuring and compiling):
20023         Document test-wrapper-env-only.
20024         * INSTALL: Regenerated.
20025
20026 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20027
20028         [BZ #18043]
20029         * posix/wordexp.c (parse_param): Fix buffer overflow.
20030         * posix/wordexp-test.c (do_bz18043): Add test case.
20031
20032 2015-03-06  Vincent Bernat  <vincent@bernat.im>
20033
20034         * time/tst-strptime2.c (do_test): Ensure failing tests are
20035         reported correctly.
20036         * time/tst-strptime3.c (do_test): Likewise.
20037
20038 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
20039
20040         Fix aio_error thread-safety.
20041         * sysdeps/pthread/aio_error.c: New file
20042         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
20043         synchronization.
20044
20045 2015-03-06  Florian Weimer  <fweimer@redhat.com>
20046
20047         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
20048         (group_number, vfprintf): Use it.
20049         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
20050         (JUMP, REF): Use it.
20051         (WORK_BUFFER_SIZE): New enum constant.
20052         (process_arg, vfprintf): Use it.
20053
20054 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
20055
20056         * manual/errno.texi (Error Messages): Complete example function
20057         by adding missing #define.
20058         (program_invocation_name): Add statement indicating GNU
20059         extension and reference which header file declares the variable.
20060         (program_invocation_short_name): Likewise.
20061
20062 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
20063
20064         * manual/errno.texi (Error Messages): Delete strerror ISO C89
20065         compatibility note.
20066
20067 2015-03-05  Roland McGrath  <roland@hack.frob.com>
20068
20069         * Makeconfig (test-wrapper-env-only): New variable.
20070         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
20071         then use that with $(test-wrapper-env-only) rather than using
20072         $(test-wrapper-env) $(run-program-env) $($*-ENV).
20073
20074 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20075
20076         [BZ #18082]
20077         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
20078         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
20079         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
20080         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
20081         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
20082         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
20083         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
20084         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
20085         Likewise.
20086         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
20087         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
20088         Likewise.
20089         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
20090         Likewise.
20091         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
20092         Likewise.
20093         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
20094         Likewise.
20095         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
20096         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
20097         Likewise.
20098         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
20099         Likewise.
20100         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
20101         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
20102
20103 2015-03-04  Roland McGrath  <roland@hack.frob.com>
20104
20105         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
20106         (ETH_ALEN): New macro.
20107         (struct ether_addr): Use it for length of ether_addr_octet.
20108
20109         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
20110         (setdb): Don't call __nss_configure_lookup for "rpc".
20111         (do_test): Don't call test_rpc.
20112         (output_rpcent, test_rpc): Functions moved ...
20113         * sunrpc/test-rpcent.c: ... to this new file.
20114         * sunrpc/Makefile (tests): Add it.
20115
20116         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
20117         __xpg_sigpause.
20118         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
20119         * nptl/tst-signal6.c: Likewise.
20120         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
20121         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
20122
20123         * configure.ac (libc_cv_cxx_link_ok): New check.
20124         Reset CXX to empty if it fails to link.
20125         * configure: Regenerated.
20126         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20127         bug-atexit3-lib only if $(CXX) is nonempty.
20128         * nptl/Makefile (tests): Likewise for tst-cancel24.
20129         (tests, tests-static): Likewise for tst-cancel24-static.
20130         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20131         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20132         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20133         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20134
20135 2015-03-04  Andreas Schwab  <schwab@suse.de>
20136
20137         [BZ #17631]
20138         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20139         for non-GCC compilers.
20140         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20141         Likewise.
20142
20143 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20144
20145         [BZ #17776]
20146         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20147         integer before bitwise and assembly operations.
20148         (feclearexcept): Likewise.
20149         * math/test-fenvinline.c: New file.
20150         * math/Makefile: Add test-fenvinline test.
20151
20152 2015-03-03  Alan Modra  <amodra@gmail.com>
20153
20154         [BZ #16512]
20155         * scripts/localplt.awk: Strip off symbol version.
20156         * NEWS: Mention bug fix.
20157
20158 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20159
20160         * sysdeps/pthread/timer_routines.c
20161         (timer_free_list, thread_free_list, thread_active_list): Make static.
20162
20163 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20164
20165         [BZ #17779]
20166         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20167         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20168         Undefine.
20169         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20170         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20171         Likewise.
20172         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20173         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20174         Likewise.
20175
20176 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20177
20178         [BZ #18036]
20179         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20180         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20181
20182 2015-03-02  Andreas Schwab  <schwab@suse.de>
20183
20184         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20185         variable name.
20186
20187 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20188
20189         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20190         Return error status.
20191
20192 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20193
20194         [BZ #15969]
20195         * locale/findlocale.c (_nl_find_locale): Introduce const
20196         version of loc_name and drop unsafe type casts.
20197
20198 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20199
20200         * dlfcn/tststatic2.c (main): Converted to ...
20201         (do_test): ... this.
20202         (TEST_FUNCTION): New macro.
20203         Include test-skeleton.c.
20204
20205 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20206
20207         [BZ #17711]
20208         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20209         (tests-pie): Add vismain.
20210         (CFLAGS-vismain.c): New.
20211         * elf/vismain.c: Add comments for PIE requirement.
20212
20213 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20214
20215         [BZ #18046]
20216         [BZ #18047]
20217         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20218         0x1p-56L as threshold for just returning the argument.
20219         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20220         0x1p-32L as threshold for just returning the argument.
20221         * math/auto-libm-test-in: Add more tests of atanh.
20222         * math/auto-libm-test-out: Regenerated.
20223         * sysdeps/i386/fpu/libm-test-ulps: Update.
20224         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20225
20226 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20227
20228         * string/bcopy.c (bcopy): Call memmove for performance.
20229
20230 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20231
20232         * string/bzero.c (__bzero): Call memset for performance.
20233
20234 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20235
20236         [BZ #18068]
20237         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20238         to 00100000.
20239
20240 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20241
20242         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20243
20244 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20245
20246         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20247         (__kernel_standard): Use CSTR macro when setting exc.name.
20248         * sysdeps/ieee754/Makefile [$(subdir) = math]
20249         (CFLAGS-k_standard.c): Remove variable.
20250
20251         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20252         setting p and q from "else if" to "else".
20253         (qzero): Likewise.
20254         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20255         (qone): Likewise.
20256         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20257         (qzerof): Likewise.
20258         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20259         (qonef): Likewise.
20260         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20261         (qzero): Likewise.
20262         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20263         (qone): Likewise.
20264
20265         [BZ #18038]
20266         [BZ #18039]
20267         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20268         return pi/2 for arguments below 0x1p-113L.
20269         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20270         return pi/2 for arguments below 0x1p-106L.
20271         * math/auto-libm-test-in: Add more tests of acos.
20272         * math/auto-libm-test-out: Regenerated.
20273
20274         [BZ #16351]
20275         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20276         (MO): New macro.
20277         (__ieee754_asin): Force underflow exception for results with small
20278         absolute value.
20279         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20280         (MO): New macro.
20281         (__ieee754_asinf): Force underflow exception for results with
20282         small absolute value.
20283         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20284         (__ieee754_asin): Force underflow exception for results with small
20285         absolute value.
20286         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20287         (__ieee754_asinf): Force underflow exception for results with
20288         small absolute value.
20289         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20290         (__ieee754_asinl): Force underflow exception for results with
20291         small absolute value.
20292         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20293         (__ieee754_asinl): Force underflow exception for results with
20294         small absolute value.
20295         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20296         (__ieee754_asinl): Force underflow exception for results with
20297         small absolute value.
20298         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20299         Include <math.h>.
20300         * math/auto-libm-test-in: Do not mark underflow exceptions as
20301         possibly missing for bug 16351.
20302         * math/auto-libm-test-out: Regenerated.
20303
20304         [BZ #18030]
20305         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20306         of power of 2 down when low part has opposite sign.
20307         * math/libm-test.inc (logb_test_data): Add more tests.
20308
20309 2015-02-26  Andreas Schwab  <schwab@suse.de>
20310
20311         [BZ #18032]
20312         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20313         over collating symbol inside a bracket expression.  Minor cleanup.
20314         * posix/tst-fnmatch3.c (do_test): Add test case.
20315
20316 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20317
20318         [BZ #18029]
20319         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20320         Adjust exponent of power of 2 down when low part has opposite
20321         sign.
20322         * math/libm-test.inc (ilogb_test_data): Add more tests.
20323
20324 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20325
20326         [BZ #15969]
20327         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20328         the previous change.
20329
20330         [BZ #15969]
20331         * locale/findlocale.c (_nl_find_locale): Retry archive search
20332         after alias expansion.
20333
20334 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20335
20336         * iconv/tst-iconv3.c (main): Converted to ...
20337         (do_test): ... this.
20338         (TEST_FUNCTION): New macro.
20339         Include test-skeleton.c.
20340
20341         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20342         (convert): Make function static.
20343         (test_unalign): Likewise.  Add const to argument pointee types.
20344         (main): Replace with static function do_test.
20345         Print "Succeeded." only if RET is zero.
20346         (TEST_FUNCTION): New macro.
20347         Include test-skeleton.c.
20348
20349         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20350         returns a null pointer.
20351
20352 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20353
20354         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20355         to __memcpy_ppc only for static builds.
20356
20357 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20358
20359         [BZ #18020]
20360         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20361         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20362         * math/auto-libm-test-in: Add more tests of asinh.
20363         * math/auto-libm-test-out: Regenerated.
20364         * sysdeps/i386/fpu/libm-test-ulps: Update.
20365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20366
20367 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20368
20369         [BZ #15850]
20370         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20371         and ip6_mtuinfo definitions here.
20372         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20373         in this define too.  Update comment.
20374
20375 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20376
20377         * elf/sprof.c (load_shobj): Tweak error message to match others.
20378
20379 2015-02-24  Kevin Easton  <kevin@guarana.org>
20380
20381         [BZ #16145] (partial fix)
20382         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20383         to reduce lock contention.
20384
20385 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20386
20387         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20388         (struct timex): Update time comment.
20389         (ADJ_SETOFFSET): Define.
20390
20391 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20392
20393         [BZ #18019]
20394         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20395         2**56 not 2**28 as threshold for log (2x) formula.
20396         * math/auto-libm-test-in: Add more tests of acosh.
20397         * math/auto-libm-test-out: Regenerated.
20398         * sysdeps/i386/fpu/libm-test-ulps: Update.
20399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20400
20401 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20402
20403         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20404         parenthesis around the buf assignment.
20405         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20406
20407 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20408
20409         [BZ #16783]
20410         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20411         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20412         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20413         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20414         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20415         * math/libm-test.inc (scalb_test_data): Add more tests.
20416
20417 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20418
20419         [BZ #17916]
20420         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20421         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20422
20423 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20424
20425         [BZ #17523]
20426         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20427         * io/bits/fcntl2.h (open): Use it.
20428         (openat): Likewise.
20429         * io/open.c (__libc_open): Likewise.
20430         * io/open64.c (__libc_open64): Likewise.
20431         * io/open64_2.c (__open64_2): Likewise.
20432         * io/open_2.c (__open_2): Likewise.
20433         * io/openat.c (__openat): Likewise.
20434         * io/openat64.c (__openat64): Likewise.
20435         * io/openat64_2.c (__openat64_2): Likewise.
20436         * io/openat_2.c (__openat_2): Likewise.
20437         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20438         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20439         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20440         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20441         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20442         (__open_nocancel): Likewise.
20443         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20444         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20445         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20446
20447 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20448
20449         [BZ #14841]
20450         * resolv/gethnamaddr.c (getanswer): Skip logging if
20451         RES_USE_DNSSEC is set.
20452         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20453
20454 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20455
20456         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20457
20458 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20459
20460         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20461         201304L, for Unicode 7.
20462
20463 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20464
20465         [BZ #17836]
20466         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20467         shared library.  Add gmon-start.os otherwise.
20468         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20469         $(objpfx)gmon-start.os if builing shared library.
20470         ($(objpfx)g$(static-start-installed-name)): Likewise.
20471
20472 2015-02-23  Andreas Schwab  <schwab@suse.de>
20473
20474         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20475
20476 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20477
20478         [BZ #17269]
20479         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20480         (enlarge_userbuf): Likewise.
20481
20482 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20483
20484         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20485         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20486         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20487         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20488
20489 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20490
20491         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20492         expression inside statement expression.
20493
20494 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20495
20496         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20497         <sysdeps/nptl/lowlevellock.h> and remove macros and
20498         functions that are now defined there.
20499         (SYS_futex): Remove.
20500         (lll_compare_and_swap): Remove.
20501         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20502
20503 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20504
20505         [BZ #17999]
20506         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20507         instead of scandirat.
20508         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20509         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20510         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20511         __scandirat.
20512         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20513         (__scandirat): Declare.  Use libc_hidden_proto.
20514         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20515         Remove variable.
20516         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20517
20518 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20519
20520         [BZ #15319]
20521         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20522         (MO): New macro.
20523         (__ieee754_atan2): For results with small absolute value, force
20524         underflow exception and remove excess range and precision from
20525         return value.
20526         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20527         (MO): New macro.
20528         (__ieee754_atan2f): For results with small absolute value, force
20529         underflow exception and remove excess range and precision from
20530         return value.
20531         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20532         (MO): New macro.
20533         (__atan): For results with small absolute value, force underflow
20534         exception and remove excess range and precision from return value.
20535         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20536         (MO): New macro.
20537         (__atanf): For results with small absolute value, force underflow
20538         exception and remove excess range and precision from return value.
20539         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20540         <math.h>.
20541         (__ieee754_atan2): Force underflow exception for results with
20542         small absolute value.
20543         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20544         <math_private.h>.
20545         (atan): Force underflow exception for results with small absolute
20546         value.
20547         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20548         (__atanf): Force underflow exception for results with small
20549         absolute value.
20550         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20551         <math.h>.
20552         (__atanl): Force underflow exception for results with small
20553         absolute value.
20554         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20555         (__atanl): Force underflow exception for results with small
20556         absolute value.
20557         * sysdeps/x86/fpu/bits/mathinline.h
20558         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20559         (__ieee754_atan2): Only define inline for long double.
20560         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20561         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20562         * math/auto-libm-test-in: Do not mark underflow exceptions as
20563         possibly missing for bug 15319.  Add more tests of atan2.
20564         * math/auto-libm-test-out: Regenerated.
20565         * math/libm-test.inc (casin_test_data): Do not mark underflow
20566         exceptions as possibly missing for bug 15319.
20567         (casinh_test_data): Likewise.
20568         * sysdeps/i386/fpu/libm-test-ulps: Update.
20569
20570 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20571
20572         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20573         * sysdeps/mips/bits/endian.h: Fix comments.
20574
20575 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20576
20577         [BZ #17996]
20578         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20579         (hdestroy_r): Likewise.
20580         (hsearch_r): Likewise.
20581         (__hcreate_r): Declare and use libc_hidden_proto.
20582         (__hdestroy_r): Likewise.
20583         (__hsearch_r): Likewise.
20584         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20585         (hcreate): Call __hcreate_r instead of hcreate_r.
20586         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20587         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20588         as weak alias of __hcreate_r.
20589         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20590         __hdestroy_r.
20591         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20592         __hsearch_r.
20593         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20594         Remove variable.
20595         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20596         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20597         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20598         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20599
20600 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20601
20602         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20603         arena_lock into a single arena_get.
20604
20605 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20606
20607         * dl-reloc.c: Inlucde libc-internal.h.
20608         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20609         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20610         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20611         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20612         (grow_heap): Likewise.
20613         * malloc/malloc.c: Include libc-internal.h.
20614         (do_check_malloc): Call powerof2.
20615         (sysmalloc): Use pagesize. Call ALIGN_UP.
20616         (systrim): Use pagesize.
20617         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20618         (__libc_valloc): Use pagesize.
20619         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20620
20621 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20622
20623         [BZ #17991]
20624         * include/sys/resource.h (__getrlimit64): Declare.  Use
20625         libc_hidden_proto.
20626         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20627         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20628         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20629         getrlimit64.
20630         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20631         __getrlimit64.
20632         [!getrlimit64] (getrlimit64): Define as weak alias of
20633         __getrlimit64.  Use libc_hidden_weak.
20634         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20635         using __getrlimit64 not __new_getrlimit64.
20636         (__GI_getrlimit64): Likewise.
20637         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20638         Likewise.
20639         (__GI_getrlimit64): Likewise.
20640         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20642         (getrlimit): Add __getrlimit64 alias.
20643         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20644         Likewise.
20645         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20646         Remove variable.
20647         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20648         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20649
20650 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20651
20652         * libio/fileops.c: Add missing sys/mman.h
20653         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20654
20655 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20656
20657         * manual/math.texi (Errors in Math Functions): Clarify goals
20658         regarding inexact and underflow exceptions.
20659
20660 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20661
20662         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20663         * sysdeps/mips/memset.S: Ditto.
20664
20665 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20666
20667         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20668
20669 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20670
20671         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20672         (__v1longjmp): Remove versioned symbol.
20673         (__v1siglongjmp): Remove alias and versioned symbol.
20674         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20675         (__v2siglongjmp): Likewise.
20676
20677 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20678
20679         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20680
20681 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20682
20683         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20684
20685 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20686
20687         [BZ #17987]
20688         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20689         zero result does not depend on the sign resulting from
20690         subtraction.
20691         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20692         Likewise.
20693         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20694         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20695         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20696         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20697         * math/libm-test.inc (remquo_test_data): Add more tests.
20698
20699 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20700
20701         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20702         Problem reported by J William Piggott.
20703
20704 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20705
20706         [BZ #17978]
20707         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20708         products 4 * y and 2 * y where those would overflow.
20709         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20710         Likewise.
20711         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20712         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20713         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20714         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20715         * math/libm-test.inc (remquo_test_data): Add more tests.
20716
20717         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20718
20719         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20720         [defined _COMPILING_NEWLIB].
20721         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20722         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20723
20724         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20725         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20726
20727 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20728
20729         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20730         acquired.
20731
20732 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20733
20734         [BZ #17792]
20735         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20736         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20737         HOST_STACK_END_ADDR): Likewise.
20738
20739 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20740
20741         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20742         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20743         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20744
20745 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20746
20747         * sysdeps/generic/c++-types.data: New file.
20748         * sysdeps/generic/ld.abilist: New file.
20749         * sysdeps/generic/libBrokenLocale.abilist: New file.
20750         * sysdeps/generic/libanl.abilist: New file.
20751         * sysdeps/generic/libc.abilist: New file.
20752         * sysdeps/generic/libcrypt.abilist: New file.
20753         * sysdeps/generic/libdl.abilist: New file.
20754         * sysdeps/generic/libm.abilist: New file.
20755         * sysdeps/generic/libpthread.abilist: New file.
20756         * sysdeps/generic/libresolv.abilist: New file.
20757         * sysdeps/generic/librt.abilist: New file.
20758
20759 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20760
20761         [BZ #17569]
20762         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20763         Compute absolute value of x as modified by fmod, not original
20764         value of x.
20765         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20766         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20767         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20768         RUN_TEST_ffI_f1_mod8.
20769         (remquo_test_data): Add more tests.
20770
20771 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20772
20773         * sysdeps/init_array/pt-crti.S: New file.
20774
20775 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20776
20777         [BZ #17967]
20778         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20779         __builtin_fmaf instead of relying on contraction of a * b + c.
20780
20781 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20782
20783         [BZ #17969]
20784         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20785         node.
20786
20787 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20788
20789         [BZ #17964]
20790         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20791         __builtin_fma instead of relying on contraction of a * b + c.
20792
20793 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20794
20795         * Makeconfig (ASFLAGS): Add -Werror=undef.
20796         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20797         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20798         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20799
20800         * Makeconfig (after-link): New variable.
20801         (+link-pie, +link-pie-tests): Use it.
20802         (+link-static, +link-static-tests): Likewise.
20803         (+link, +link-tests): Likewise.
20804         * Makerules (build-module, build-module-asneeded): Likewise.
20805         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20806         Likewise.
20807         * elf/Makefile ($(objpfx)ld.so): Likewise.
20808
20809 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20810
20811         [BZ #17965]
20812         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20813         both struct timeval and struct timespec.
20814
20815 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20816
20817         [BZ #16560]
20818         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20819         and redefine.
20820         (__ieee754_exp2l): Do not multiply small fractional parts by
20821         M_LN2l.
20822         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20823         small argument.
20824         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20825         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20826         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20827         * math/auto-libm-test-in: Add more tests of exp2.
20828         * math/auto-libm-test-out: Regenerated.
20829
20830 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20831
20832         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20833         unaligned path.
20834
20835 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20836
20837         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20838         little endian.
20839
20840 2015-02-12  Andreas Schwab  <schwab@suse.de>
20841
20842         [BZ #15790]
20843         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20844         Filter out elision flags from value returned in kind.
20845         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20846         * nptl/tst-pthread-mutexattr.c: New file.
20847
20848 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20849
20850         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20851         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20852         into gnu-gnu, and update comment to refer to abi-tags.
20853
20854 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20855
20856         [BZ #15467]
20857         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20858         (__sincos): Set errno to EDOM for infinite argument.
20859         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20860         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20861         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20862         (__sincosl): Set errno to EDOM for infinite argument.
20863         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20864         (__sincosl): Set errno to EDOM for infinite argument.
20865         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20866         (__sincosl): Set errno to EDOM for infinite argument.
20867         * math/libm-test.inc (sincos_test_data): Test errno setting.
20868
20869 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20870
20871         * string/strxfrm_l.c: Remove #define STRCMP.
20872         * string/strcoll_l.c: Remove #define STRLEN.
20873         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20874         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20875
20876 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20877
20878         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20879         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20880         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20881         * sysdeps/mips/mips64/Makefile: ... here.
20882         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20883         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20884         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20885         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20886         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20887         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20888         * sysdeps/mips/mips64/n64/Implies: Likewise.
20889
20890 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20891
20892         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20893         <sys/time.h>, <string.h>, and <errno.h>.
20894         (dest_offset, dest_address, value, zero): Remove unused variables.
20895         (ldouble): Remove typedef.
20896         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20897         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20898         1).  Fix code style.
20899         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20900         (check): Function removed.
20901         (CHECK): New macro.
20902         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20903         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20904         Don't call set_sigaction_FP and remove_sigaction_FP here.
20905         (ldouble_test): Just use 'long double' as macro argument, no need for
20906         the 'ldouble' typedef.
20907         (do_test): Set up SIGFPE handler at start, using plain signal rather
20908         than sigaction.  Fix code style.
20909
20910 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20911
20912         [BZ #17949]
20913         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20914         jump label.
20915
20916 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20917
20918         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20919         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20920
20921         * sysdeps/powerpc/configure.ac: Remove file.
20922         * sysdeps/powerpc/configure: Likewise.
20923
20924         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20925         [sysdep_routines]: Remove wordcopy-power6 object.
20926         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20927         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20928         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20929         (__memmove_ppc32): Likewise.
20930         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20931         file.
20932         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20933         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20934         Remove preprocessor.
20935
20936         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20937         [sysdep_routines]: Remove wide chars objects.
20938         [wcsmbs]: New rule for wide char objects.
20939
20940         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20941         Remove wordcopy-power6 obejct.
20942         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20943         Use local call for wordcopy and memcpy symbols.
20944         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20945         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20946         implementation for loader.
20947         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20948
20949         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20950         Remove wordcopy-power7 object.
20951         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20952         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20953         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20954         (_wordcopy_fwd_dest_aligned): Likewise.
20955         (_wordcopy_bwd_aligned): Likewise.
20956         (_wordcopy_bwd_dest_aligned): Likewise.
20957
20958         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20959         Rewrite to call __memmove_ppc instead of include default
20960         implementation.
20961
20962         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20963         Remove wide chars objects.
20964         [wcsmbs]: New rule for wide char objects.
20965
20966 2015-02-09  Andreas Schwab  <schwab@suse.de>
20967
20968         [BZ #17912]
20969         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20970         in terms of __O_DIRECTORY.
20971
20972 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20973
20974         * time/getdate.c: Include <stdbool.h>.
20975         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20976         call PTR_MANGLE.
20977         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20978         PTR_DEMANGLE.
20979
20980 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20981
20982         Add ersatz _Static_assert on older C hosts
20983         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20984         pre-C11 C platform that is not known to support _Static_assert.
20985
20986 2015-02-07  Richard Braun  <rbraun@sceen.net>
20987
20988         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20989         sigstate.
20990         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20991
20992 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20993
20994         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20995         priority against unexistent AIO_PRIO_DELTA_MAX.
20996         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20997         instead of int.
20998         * misc/fchflags.c (fchflags): Likewise.
20999         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
21000         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
21001         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
21002         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
21003         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
21004         Declare macros.
21005         [__USE_MISC] (chflags, fchflags): Declare functions.
21006         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
21007         EINVAL when nfds is greater than FD_SETSIZE.
21008         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
21009         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
21010         45.
21011         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
21012         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
21013         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
21014         MACH_RCV_TIMED_OUT.
21015         * hurd/hurd/signal.h (_hurd_self_sigstate,
21016         _hurd_critical_section_lock, _hurd_critical_section_unlock):
21017         Explicit casts from void *.
21018         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
21019         * abi-tags: Rename gnu-gnu os into gnu.
21020
21021         [BZ #4719]
21022         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
21023         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
21024         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
21025         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
21026         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
21027         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
21028
21029         [BZ #17944]
21030         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
21031         duplicates ADDR->sun_path with sockaddr LEN limitation.
21032         * sysdeps/mach/hurd/connect.c: Include <string.h>
21033         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
21034         * sysdeps/mach/hurd/sendmsg.c: Likewise.
21035         * sysdeps/mach/hurd/sendto.c: Likewise.
21036         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
21037         implementing it by hand.
21038
21039 2015-02-06  Roland McGrath  <roland@hack.frob.com>
21040
21041         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
21042         Use sfi_breg on ldr.
21043         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
21044         Likewise.
21045
21046         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
21047         it's defined.
21048         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
21049         Test SIGSETXID only if it's defined.
21050
21051         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
21052
21053         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
21054         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
21055
21056         * nptl/tst-align2.c: Moved ...
21057         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
21058         * nptl/Makefile (tests): Remove tst-align2.
21059         * sysdeps/unix/sysv/linux/Makefile
21060         [$(subdir) = nptl] (tests): Add tst-align-clone.
21061         * nptl/tst-getpid1.c: Moved ...
21062         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
21063         * nptl/tst-getpid2.c: Moved ...
21064         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
21065         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
21066         * sysdeps/unix/sysv/linux/Makefile
21067         [$(subdir) = nptl] (tests): ... here.
21068         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
21069         * sysdeps/unix/sysv/linux/Makefile
21070         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
21071
21072         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
21073         Drop trailing \n from perror argument.  Use return rather than exit.
21074
21075         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
21076         on [SA_SIGINFO].
21077         * nptl/tst-cancel21.c (do_test): Likewise.
21078         * debug/tst-backtrace6.c: Include <signal.h> first thing.
21079         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
21080         [!SA_SIGINFO]: Make it a stub test.
21081
21082         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
21083         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
21084
21085         * posix/tst-getlogin.c: Move to ...
21086         * login/tst-getlogin.c: ... here.
21087         * posix/Makefile (tests): Move tst-getlogin to ...
21088         * login/Makefile (tests): ... here.
21089
21090         * libio/tst-atime.c (do_test): Move local variables SV and E
21091         inside [ST_NOATIME] conditional.
21092
21093         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
21094
21095         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
21096
21097         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
21098         (wait_code): New function replaces macro.
21099         Call nanosleep rather than syscall.
21100
21101         * nptl/pt-system.c: Rewritten.  Put everything under
21102         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21103         Use IFUNC to redirect when possible.
21104
21105         * nptl/pt-longjmp.c: Rewritten.  Put everything under
21106         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21107         Use IFUNC to redirect when possible.
21108
21109         * nptl/pt-fork.c: Rewritten.  Put everything under
21110         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21111         Use IFUNC to redirect when possible.
21112         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
21113
21114         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
21115         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
21116         unconditionally nowadays.  This included the only reference to
21117         __vdso_clock_gettime that appears outside libc proper.
21118         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
21119         Remove version set (containing only __vdso_clock_gettime).
21120         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21121         Add attribute_hidden.
21122         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21123         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
21124         libc_hidden_data_def.
21125         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21126         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21127
21128         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21129         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21130         setrpcent, and getrpcport to ...
21131         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21132         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21133         getrpcbynumber_r, and getrpcent_r to ...
21134         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21135         * inet/getrpcbyname.c: Moved ...
21136         * sunrpc/getrpcbyname.c: ... here.
21137         * inet/getrpcbyname_r.c: Moved ...
21138         * sunrpc/getrpcbyname_r.c: ... here.
21139         * inet/getrpcbynumber.c: Moved ...
21140         * sunrpc/getrpcbynumber.c: ... here.
21141         * inet/getrpcbynumber_r.c: Moved ...
21142         * sunrpc/getrpcbynumber_r.c: ... here.
21143         * inet/getrpcent.c: Moved ...
21144         * sunrpc/getrpcent.c: ... here.
21145         * inet/getrpcent_r.c: Moved ...
21146         * sunrpc/getrpcent_r.c: ... here.
21147         * inet/Makefile (routines): Move those to ...
21148         * sunrpc/Makefile (routines): ... here.
21149         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21150         the $(subdirs) list.
21151         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21152         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21153         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21154         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21155
21156         * elf/Makefile (routines): Include $(all-dl-routines), not just
21157         $(dl-routines).
21158         (rtld-routines): Likewise.  Use = rather than :=.
21159         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21160         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21161         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21162         * sysdeps/arm/Makefile: Likewise.
21163         * sysdeps/i386/Makefile: Likewise.
21164         * sysdeps/x86_64/Makefile: Likewise.
21165         * sysdeps/hppa/Makefile [$(subdir) = elf]
21166         (sysdep_routines, sysdep-rtld-routines): Don't add
21167         $(sysdep-dl-routines) to these.
21168         * sysdeps/ia64/Makefile: Likewise.
21169         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21170         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21171         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21172         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21173         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21174         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21175         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21176         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21177         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21178         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21179         these; sysdep-dl-routines alone is enough.
21180
21181 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21182
21183         [BZ #17932]
21184         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21185         where multiplication results in zero and third argument is finite
21186         and nonzero.
21187         * math/auto-libm-test-in: Add more tests of fma.
21188         * math/auto-libm-test-out: Regenerated.
21189
21190         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21191         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21192         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21193         (_FP_CMP_EQ): Likewise.
21194         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21195
21196         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21197         extra argument CHECK_NAN.  Redefine as wrapper around
21198         _FP_EXTEND_CNAN.
21199
21200 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21201
21202         * version.h (RELEASE): Set to "stable".
21203         (VERSION): Set to "2.21"
21204         * include/features.h (__GLIBC_MINOR__): Set to 21.
21205
21206         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21207
21208 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21209             Paul Eggert  <eggert@cs.ucla.edu>
21210
21211         [BZ #16618]
21212         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21213         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21214         size in bytes. Store needed elements in wpmax. Use needed size
21215         in bytes for extend_alloca.
21216
21217 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21218
21219         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21220         binutls 2.25, and texinfo 5.2.
21221         * INSTALL: Regenerate.
21222         * sysdeps/nios2/configure: Regenerate.
21223         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21224         * manual/contrib.texi: Update.
21225         * po/be.po: Update.
21226         * po/bg.po: Update.
21227         * po/ca.po: Update.
21228         * po/cs.po: Update.
21229         * po/da.po: Update.
21230         * po/de.po: Update.
21231         * po/el.po: Update.
21232         * po/eo.po: Update.
21233         * po/es.po: Update.
21234         * po/fi.po: Update.
21235         * po/fr.po: Update.
21236         * po/gl.po: Update.
21237         * po/hr.po: Update.
21238         * po/hu.po: Update.
21239         * po/ia.po: Update.
21240         * po/id.po: Update.
21241         * po/it.po: Update.
21242         * po/ja.po: Update.
21243         * po/ko.po: Update.
21244         * po/lt.po: Update.
21245         * po/nb.po: Update.
21246         * po/nl.po: Update.
21247         * po/pl.po: Update.
21248         * po/pt_BR.po: Update.
21249         * po/ru.po: Update.
21250         * po/rw.po: Update.
21251         * po/sk.po: Update.
21252         * po/sl.po: Update.
21253         * po/sv.po: Update.
21254         * po/tr.po: Update.
21255         * po/uk.po: Update.
21256         * po/vi.po: Update.
21257         * po/zh_CN.po: Update.
21258         * po/zh_TW.po: Update.
21259
21260         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21261         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21262         * sysdeps/hppa/dl-irel.h: Remove #warning.
21263         * sysdeps/hppa/entry.h: Provide prototype for
21264         __canonicalize_funcptr_for_compare and cast argument.
21265         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21266         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21267         * sysdeps/hppa/sotruss-lib.c: New file.
21268         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21269         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21270         (atomic_compare_and_exchange_bool_acq): Likewise.
21271         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21272         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21273
21274         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21275         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21276         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21277
21278 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21279
21280         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21281         called function in non-PIC case.
21282
21283 2015-01-31  David S. Miller  <davem@davemloft.net>
21284
21285         * sysdeps/sparc/sparc32/bits/atomic.h
21286         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21287         unlock not after it.
21288         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21289         volatile register usage warnings from the compiler.
21290
21291         * sysdeps/sparc/nptl/sem_init.c: Delete.
21292         * sysdeps/sparc/nptl/sem_post.c: Delete.
21293         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21294         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21295         * sysdeps/sparc/sparc32/sem_init.c: New file.
21296         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21297         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21298         padding explicitly initialized.
21299         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21300         padding for in-semaphore spinlock.
21301         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21302         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21303         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21304         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21305         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21306         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21307         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21308         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21309         version.
21310         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21311         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21312
21313 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21314
21315         [BZ #17801]
21316         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21317         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21318         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21319         New.
21320         (index_AVX_Fast_Unaligned_Load): Likewise.
21321         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21322         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21323         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21324         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21325         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21326         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21327         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21328         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21329         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21330
21331 2015-01-29  Andreas Schwab  <schwab@suse.de>
21332
21333         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21334
21335 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21336
21337         [BZ #17892]
21338         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21339
21340 2015-01-28  Martin Sebor  <msebor@redhat.com>
21341
21342         * math/README.libm-test: Clarify. Add "How to read the test output."
21343
21344 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21345
21346         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21347         Define to 0.
21348
21349 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21350
21351         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21352         (__HAVE_64B_ATOMICS): Define to 0.
21353
21354 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21355
21356         [BZ #17885]
21357         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21358         value to set as new flag.
21359
21360         [BZ #16576]
21361         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21362         and use _ARCH_PPCSQ instead.
21363         (__ieee754_sqrt): Likewise.
21364         (__ieee754_sqrtf): Likewise.
21365         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21366         _ARCH_PPCSQ is defined.
21367         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21368         fsqrt instruction.
21369         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21370         _ARCH_PPCSQ is defined.
21371         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21372         fsqrts instruction.
21373         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21374
21375 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21376
21377         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21378         bug (GCC BZ #64739).
21379
21380 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21381
21382         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21383         Mark _retval as used.
21384         (lll_futex_wake_unlock): Likewise.
21385         (lll_futex_timed_wait_requeue_pi): Likewise.
21386
21387         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21388         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21389         register variables.
21390
21391         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21392         libm_hidden_def.
21393
21394         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21395         (__bswap_64): Mark as __always_inline.
21396
21397 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21398
21399         [BZ #15378]
21400         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21401         when none of the search directories exist.
21402
21403 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21404
21405         [BZ #17869]
21406         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21407         power8 in .machine directive.
21408
21409         [BZ #17868]
21410         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21411         set dependency from opd value.
21412
21413 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21414
21415         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21416         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21417         architecture.
21418
21419 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21420
21421         [BZ #17870]
21422         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21423         with uint64_t.
21424         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21425         (uint64_t) 1.
21426         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21427         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21428         Replace 1UL with (uint64_t) 1.
21429         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21430         int with uint64_t.
21431
21432 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21433
21434         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21435         (if_freenameindex): Likewise.
21436
21437         * resource/getrlimit64.c: Add missing libc_hidden_def.
21438
21439 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21440
21441         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21442         __label__.
21443         (_FP_FMA): Likewise.
21444         (_FP_TO_INT_ROUND): Likewise.
21445         (_FP_FROM_INT): Likewise.
21446
21447 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21448
21449         [BZ #16418]
21450         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21451         Make code racy and cancel safe.
21452
21453 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21454
21455         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21456         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21457         attribution.
21458
21459         * pwd/tst-getpw.c: Rewrite.
21460
21461         [BZ #17702]
21462         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21463         (modules-names): Add moddummy1 and moddummy2.
21464         ($(objpfx)tst-rec-dlopen): Define.
21465         * dlfcn/moddummy1.c: New file.
21466         * dlfcn/moddummy2.c: New file.
21467         * dlfcn/tst-rec-dlopen.c: New file.
21468         * elf/dl-cache.c (_dl_load_cache_lookup):
21469         Return char*. Copy result with alloca/strcpy/strdup.
21470         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21471         returns char*. Free cached. If not saving realname
21472         free cached.
21473         * elf/dl-open.c (dl_open_worker): Do not assert that
21474         _r_debug->r_state is RT_CONSISTENT.
21475         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21476         returns char*.
21477
21478 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21479             Carlos O'Donell  <carlos@redhat.com>
21480
21481         [BZ #12674]
21482         * nptl/sem_waitcommon.c: New file.
21483         * nptl/sem_wait.c: Include sem_waitcommon.c.
21484         (__sem_wait_cleanup, do_futex_wait): Remove.
21485         (__new_sem_wait): Adapt.
21486         (__new_sem_trywait): New function.
21487         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21488         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21489         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21490         (sem_timedwait): Adapt.
21491         * nptl/sem_post.c (__new_sem_post): Adapt.
21492         (futex_wake): New function.
21493         (__old_sem_post): Add release MO fence.
21494         * nptl/sem_open.c (sem_open): Adapt.
21495         * nptl/sem_init.c (__new_sem_init): Adapt.
21496         (futex_private_if_supported): New function.
21497         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21498         (__old_sem_getvalue): Add using previous code.
21499         * sysdeps/nptl/internaltypes.h: Adapt.
21500         * nptl/tst-sem13.c (do_test): Adapt.
21501         * nptl/tst-sem11.c (main): Adapt.
21502         * nptl/sem_trywait.c: Remove.
21503         * nptl/DESIGN-sem.txt: Remove.
21504         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21505         (gen-as-const-headers): Remove structsem.sym.
21506         * nptl/structsem.sym: Remove.
21507         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21508         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21509         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21510         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21511         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21512         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21513         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21514         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21515         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21516         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21517         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21518         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21519         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21520         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21521         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21522         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21523         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21524         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21525         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21526         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21527         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21528         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21529
21530 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21531
21532         * INSTALL: Regenerated.
21533
21534         * po/libc.pot: Regenerated.
21535
21536 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21537             Sandra Loosemore  <sandra@codesourcery.com>
21538             Andrew Jenner  <andrew@codesourcery.com>
21539             Joseph Myers  <joseph@codesourcery.com>
21540             Nathan Sidwell  <nathan@codesourcery.com>
21541
21542         * NEWS: Mention new Nios II port.
21543         * sysdeps/nios2/Implies: New file.
21544         * sysdeps/nios2/Makefile: New file.
21545         * sysdeps/nios2/Subdirs: New file.
21546         * sysdeps/nios2/Versions: New file.
21547         * sysdeps/nios2/__longjmp.S: New file.
21548         * sysdeps/nios2/abort-instr.h: New file.
21549         * sysdeps/nios2/backtrace.c: New file.
21550         * sysdeps/nios2/bits/endian.h: New file.
21551         * sysdeps/nios2/bits/fenv.h: New file.
21552         * sysdeps/nios2/bits/link.h: New file.
21553         * sysdeps/nios2/bits/setjmp.h: New file.
21554         * sysdeps/nios2/bsd-_setjmp.S: New file.
21555         * sysdeps/nios2/bsd-setjmp.S: New file.
21556         * sysdeps/nios2/configure: New generated file.
21557         * sysdeps/nios2/configure.ac: New file.
21558         * sysdeps/nios2/crti.S: New file.
21559         * sysdeps/nios2/crtn.S: New file.
21560         * sysdeps/nios2/dl-init.c: New file.
21561         * sysdeps/nios2/dl-machine.h: New file.
21562         * sysdeps/nios2/dl-sysdep.h: New file.
21563         * sysdeps/nios2/dl-tls.h: New file.
21564         * sysdeps/nios2/dl-trampoline.S: New file.
21565         * sysdeps/nios2/gccframe.h: New file.
21566         * sysdeps/nios2/gmp-mparam.h: New file.
21567         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21568         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21569         * sysdeps/nios2/ldsodefs.h: New file.
21570         * sysdeps/nios2/libc-tls.c: New file.
21571         * sysdeps/nios2/libm-test-ulps: New file.
21572         * sysdeps/nios2/machine-gmon.h: New file.
21573         * sysdeps/nios2/math-tests.h: New file.
21574         * sysdeps/nios2/math_private.h: New file.
21575         * sysdeps/nios2/memusage.h: New file.
21576         * sysdeps/nios2/nptl/Makefile: New file.
21577         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21578         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21579         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21580         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21581         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21582         * sysdeps/nios2/nptl/tls.h: New file.
21583         * sysdeps/nios2/preconfigure: New file.
21584         * sysdeps/nios2/s_fma.c: New file.
21585         * sysdeps/nios2/s_fmaf.c: New file.
21586         * sysdeps/nios2/setjmp.S: New file.
21587         * sysdeps/nios2/sfp-machine.h: New file.
21588         * sysdeps/nios2/sotruss-lib.c: New file.
21589         * sysdeps/nios2/stackguard-macros.h: New file.
21590         * sysdeps/nios2/stackinfo.h: New file.
21591         * sysdeps/nios2/start.S: New file.
21592         * sysdeps/nios2/sysdep.h: New file.
21593         * sysdeps/nios2/tls-macros.h: New file.
21594         * sysdeps/nios2/tst-audit.h: New file.
21595         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21596         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21597         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21598         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21599         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21600         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21601         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21602         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21603         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21604         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21605         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21606         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21607         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21608         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21609         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21610         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21611         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21612         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21613         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21614         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21615         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21616         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21617         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21618         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21619         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21620         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21621         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21622         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21623         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21624         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21625         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21626         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21627         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21628         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21629         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21630         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21631         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21632         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21633         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21634         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21635         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21636         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21637         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21638         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21639
21640 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21641
21642         [BZ #17844]
21643         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21644         (getutent): Use weak_alias in non SHARED case
21645         and default_symbol_version in SHARED case.
21646         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21647         (getutent_r, pututline): Likewise.
21648         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21649         (getutid): Likewise.
21650         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21651         (getutid_r): Likewise.
21652         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21653         (getutline): Likewise.
21654         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21655         (getutline_r): Likewise.
21656         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21657         (updwtmp): Likewise.
21658
21659 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21660
21661         [BZ #17848]
21662         * sysdeps/s390/s390-32/memcmp.S
21663         (memcmp_g5): Rename to __memcmp_g5.
21664         * sysdeps/s390/s390-32/memcpy.S
21665         (memcpy_g5): Rename to __memcpy_g5.
21666         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21667         (memcpy_mvcle) Rename to __memcpy_mvcle.
21668         * sysdeps/s390/s390-32/memset.S
21669         (memset_g5): Rename to __memset_g5.
21670         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21671         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21672         and use prefixed functions.
21673         * sysdeps/s390/s390-32/multiarch/memcmp.S
21674         (memcmp_z196): Rename to __memcmp_z196.
21675         (memcmp_z10): Rename to __memcmp_z10.
21676         (memcmp): Set alias to __memcmp_g5.
21677         (bcmp): Set alias to __memcmp_g5.
21678         * sysdeps/s390/s390-32/multiarch/memcpy.S
21679         (memcpy_z196): Rename to __memcpy_z196.
21680         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21681         (memcpy_z10): Rename to __memcpy_z10.
21682         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21683         (memcpy): Set alias to __memcpy_g5.
21684         * sysdeps/s390/s390-32/multiarch/memset.S
21685         (memset_z196): Rename to __memset_z196.
21686         Jump to __memset_mvcle instead of memset_mvcle.
21687         (memset_z10): Rename to __memset_z10.
21688         Jump to __memset_mvcle instead of memset_mvcle.
21689         (memset_mvcle) Rename to __memset_mvcle.
21690         (memset): Set alias to __memset_g5.
21691         * sysdeps/s390/s390-64/memcmp.S
21692         (memcmp_z900): Rename to __memcmp_z900.
21693         * sysdeps/s390/s390-64/memcpy.S
21694         (memcpy_z900): Rename to __memcpy_z900.
21695         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21696         (memcpy_mvcle) Rename to __memcpy_mvcle.
21697         * sysdeps/s390/s390-64/memset.S
21698         (memset_z900): Rename to __memset_z900.
21699         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21700         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21701         and use prefixed functions.
21702         * sysdeps/s390/s390-64/multiarch/memcmp.S
21703         (memcmp_z196): Rename to __memcmp_z196.
21704         (memcmp_z10): Rename to __memcmp_z10.
21705         (memcmp): Set alias to __memcmp_z900.
21706         (bcmp): Set alias to __memcmp_z900.
21707         * sysdeps/s390/s390-64/multiarch/memcpy.S
21708         (memcpy_z196): Rename to __memcpy_z196.
21709         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21710         (memcpy_z10): Rename to __memcpy_z10.
21711         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21712         (memcpy): Set alias to __memcpy_z900.
21713         * sysdeps/s390/s390-64/multiarch/memset.S
21714         (memset_z196): Rename to __memset_z196.
21715         Jump to __memset_mvcle instead of memset_mvcle.
21716         (memset_z10): Rename to __memset_z10.
21717         Jump to __memset_mvcle instead of memset_mvcle.
21718         (memset_mvcle) Rename to __memset_mvcle.
21719         (memset): Set alias to __memset_z900.
21720
21721 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21722
21723         [BZ #17748]
21724         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21725         __fesetenv instead of fesetenv.
21726
21727 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21728
21729         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21730         macro.
21731
21732 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21733
21734         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21735         regression on LE.
21736
21737         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21738         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21739         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21740         strncmp-power8 object.
21741         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21742         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21743         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21744         * NEWS: Update.
21745
21746 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21747             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21748
21749         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21750         trailing byte check.
21751
21752 2015-01-13  David S. Miller  <davem@davemloft.net>
21753
21754         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21755
21756 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21757
21758         * login/logout.c (logout): Use memset rather than bzero.
21759         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21760         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21761         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21762         (_gethtbyaddr): Likewise.
21763         * locale/programs/simple-hash.c (bcopy): Macro removed.
21764
21765 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21766
21767         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21768         Add strcmp-power8 object.
21769         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21770         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21771         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21772         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21773         __strcmp_power8 implementation.
21774         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21775         * NEWS: Update.
21776
21777         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21778         Add strncpy-power8 and stpncpy-power8 objects.
21779         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21780         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21781         implementations.
21782         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21783         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21784         __stpncpy_power8 implementation.
21785         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21786         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21787         __strncpy_power8 implementation.
21788         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21789         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21790         * NEWS: Update.
21791
21792         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21793         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21794         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21795
21796         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21797         strncat-power8 object.
21798         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21799         __strcat_power8 implementation.
21800         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21801         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21802         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21803         optimized strcat for power8.
21804
21805         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21806         strcpy-power8 and stpcpy-power8 objects.
21807         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21808         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21809         implementations.
21810         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21811         multiarch stpcpy implementation for POWER8.
21812         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21813         multiarch strcpy implementation for POWER8.
21814         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21815         __strcpy_power8 function.
21816         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21817         stpcpy for POWER8.
21818         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21819         strcpy for POWER8.
21820         * NEWS: Update.
21821
21822 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21823
21824         [BZ #16009]
21825         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21826         weights and rules. Use do_xfrm_cached if data fits in cache,
21827         do_xfrm otherwise.  Moved former main loop to...
21828         * (do_xfrm_cached): New function.
21829         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21830         find_idx, find_position and stack_push.
21831         * (find_idx): New function.
21832         * (find_position): Likewise.
21833         * localedata/sort-test.sh: Added test run for do_xfrm.
21834         * localedata/xfrm-test.c (main): Added command line option
21835         -nocache to run the test with strings that are too large for
21836         the STRXFRM cache.
21837
21838 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21839
21840         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21841         variable to lll_futex_wake call, not the value itself.
21842
21843 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21844
21845         [BZ #17803]
21846         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21847         twom64.  Adjust value to 0x1p-64L.
21848         (__scalblnl): Only return standard underflowing result for K <=
21849         -64 not K <= -63; adjust exponent for underflowing result by 64
21850         not 63.
21851         * math/libm-test.inc (scalbn_test_data): Add more tests.
21852         (scalbln_test_data): Likewise.
21853
21854         [BZ #17834]
21855         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21856         0x1p63L.
21857         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21858         not HX.
21859         * math/libm-test.inc (scalbn_test_data): Add more tests.
21860         (scalbln_test_data): Likewise.
21861
21862 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21863             Stefani Seibold  <stefani@seibold.net>
21864
21865         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21866         (sysdep_routines): Add dl-vdso here, ...
21867         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21868         (sysdep_routines): ... not here.
21869         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21870         fallback when vDSO is not presented.
21871         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21872         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21873         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21874         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21875         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21876         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21877         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21878         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21879         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21880         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21881         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21882         fallback configurable symbol when vDSO is not available.
21883         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21884         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21885         be able to redefine fallback symbol when vDSO is not available.
21886         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21887         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21888
21889 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21890
21891         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21892         (TLS_INIT_TP): Add tm_capable initialization.
21893         (TLS_DEFINE_INIT_TP): Likewise.
21894         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21895         TCB.
21896         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21897         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21898         calculation.
21899         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21900         transactoion is lock elision is built and TCB tm_capable is set.
21901         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21903         (INTERNAL_SYSCALL_NCS): Likewise.
21904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21905         (INTERNAL_SYSCALL_NCS): Likewise.
21906         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21907
21908         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21909         for powerpc.
21910         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21911         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21912         and remove it for 32 bits case.
21913         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21914         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21915         initialization.
21916         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21917         Disable lock elision with rdlocks if elision is not available.
21918
21919         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21920         (sysdep_routines): Add lock elision objects.
21921         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21922         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21923         [pthread_mutex_t] (__elision): Add field.
21924         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21925         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21926         elision definitions for powerpc.
21927         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21928         implementation of lock elision for powerpc.
21929         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21930         implementation of timed lock elision for powerpc.
21931         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21932         implementation of trylock with lock elision for powerpc.
21933         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21934         implementaion of unlock for lock elision for powerpc.
21935         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21936         automatic enable lock elision for mutexes.
21937         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21938         transaction execution definitions for powerpc.
21939         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21940         definitions.
21941         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21942         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21943         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21944         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21945         * NEWS: Update.
21946
21947 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21948
21949         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21950         for #include of <shm-directory.h>.
21951
21952 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21953
21954         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21955         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21956
21957 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21958
21959         [BZ #17791]
21960         * NEWS: Mention bug fix.
21961         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21962         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21963         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21964
21965 2015-01-09  Torvald Riegel <triegel@redhat.com>
21966
21967         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21968
21969 2015-01-09  Torvald Riegel <triegel@redhat.com>
21970
21971         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21972
21973 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21974
21975         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21976         pointer and cast to uintptr_t.
21977
21978 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21979
21980         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21981         removed.
21982         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21983
21984 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21985
21986         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21987         of 0.
21988
21989 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21990
21991         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21992         <nptl/pthreadP.h> instead.
21993         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21994
21995         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21996         already defined.
21997         [__SIGRTMIN] (init): Function removed.
21998         [__SIGRTMIN] (initialized): Variable removed.
21999         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
22000         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
22001         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
22002         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
22003         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
22004         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
22005         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
22006         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
22007         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
22008         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
22009         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
22010         * sysdeps/nptl/allocrtsig.c: New file.
22011         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
22012         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
22013         * sysdeps/generic/testrtsig.h: File removed.
22014
22015         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
22016         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
22017
22018         * nptl/nptl-init.c (pthread_functions): Conditionalize
22019         .ptr__nptl_setxid initialization on [SIGSETXID].
22020
22021         * sysdeps/nptl/sys/procfs.h: New file.
22022         * nptl_db/Makefile (headers): Add it.
22023         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
22024
22025         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
22026         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
22027         * nptl/pthread_attr_setaffinity.c: Include it.
22028         * nptl/pthread_setattr_default_np.c: Likewise.
22029         * nptl/check-cpuset.h: New file.
22030
22031 2015-01-08  Richard Henderson  <rth@redhat.com>
22032
22033         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
22034         (CFLAGS-tst-execstack-prog.c): Likewise.
22035         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
22036
22037 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
22038             Sandra Loosemore  <sandra@codesourcery.com>
22039             Andrew Jenner  <andrew@codesourcery.com>
22040             Joseph Myers  <joseph@codesourcery.com>
22041             Nathan Sidwell  <nathan@codesourcery.com>
22042
22043         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
22044         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
22045         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
22046         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
22047         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
22048         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
22049         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
22050         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
22051         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
22052         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
22053         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
22054         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
22055         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
22056         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
22057         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
22058         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
22059         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
22060
22061 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22062
22063         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
22064         timespec struct member in syscall macro.
22065         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22066         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
22067         first timeval struct member in syscall macro.
22068         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
22069
22070 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
22071
22072         [BZ #17748]
22073         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
22074         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
22075         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
22076         __feupdateenv and define as weak alias of __feupdateenv.  Use
22077         libm_hidden_weak.
22078         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
22079         libm_hidden_def.
22080         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
22081         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
22082         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22083         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
22084         libm_hidden_def.
22085         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
22086         __feupdateenv and define as weak alias of __feupdateenv.  Use
22087         libm_hidden_weak.
22088         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
22089         libm_hidden_def.
22090         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
22091         __feupdateenv and define as weak alias of __feupdateenv.  Use
22092         libm_hidden_weak.
22093         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
22094         libm_hidden_def.
22095         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22096         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22097         (__feupdateenv): Likewise.
22098         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
22099         __feupdateenv and define as weak alias of __feupdateenv.  Use
22100         libm_hidden_weak.
22101         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22102         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
22103         libm_hidden_def.
22104         * sysdeps/tile/math_private.h (__feupdateenv): New inline
22105         function.
22106         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
22107         libm_hidden_def.
22108         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
22109         __feupdateenv instead of feupdateenv.
22110         (default_libc_feupdateenv_test): Likewise.
22111         (libc_feresetround_ctx): Likewise.
22112
22113 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22114
22115         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
22116         prototype.
22117
22118 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
22119
22120         * posix/regcomp.c (parse_bracket_exp): Initialize type to
22121         COLL_SYM in a couple of places to avoid uninitialized variable
22122         wanings on tilegx gcc 4.8.2.
22123
22124 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22125
22126         * sysdeps/aarch64/strcpy.S: New file.
22127         * sysdeps/aarch64/stpcpy.S: New file.
22128         * NEWS: Updated.
22129
22130 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22131
22132         * sysdeps/aarch64/strrchr.S: New file.
22133         * NEWS: Updated.
22134
22135 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22136
22137         [BZ #17658]
22138         * stdlib/setenv.c: Fix memory leak when setting large,
22139         duplicate string.
22140
22141 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22142
22143         [BZ #17273]
22144         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22145         and tabs from buffer before parsing fstab entry.
22146         * misc/tst-mntent.c (main): Add test for mount entry with
22147         trailing spaces and tabs.
22148
22149 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22150
22151         [BZ #17748]
22152         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22153         * math/fesetround.c (fesetround): Rename to __fesetround and
22154         define as weak alias of __fesetround.  Use libm_hidden_weak.
22155         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22156         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22157         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22158         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22159         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22160         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22161         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22162         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22163         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22164         __fesetround_inline.
22165         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22166         __fesetround_inline instead of __fesetround.
22167         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22168         __fesetround and define as weak alias of __fesetround.  Use
22169         libm_hidden_weak.  Call __fesetround_inline instead of
22170         __fesetround.
22171         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22172         __fesetround and define as weak alias of __fesetround.  Use
22173         libm_hidden_weak.
22174         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22175         Likewise.
22176         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22177         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22178         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22179         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22180         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22181         __fesetround and define as weak alias of __fesetround.  Use
22182         libm_hidden_weak.
22183         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22184         __fesetround instead of fesetround.
22185         (default_libc_feholdexcept_setround): Likewise.
22186         (libc_feholdsetround_ctx): Likewise.
22187         (libc_feholdsetround_noex_ctx): Likewise.
22188
22189         [BZ #17748]
22190         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22191         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22192         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22193         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22194         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22195         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22196         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22197         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22198         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22199         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22200         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22201         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22202         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22203         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22204         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22205         libm_hidden_def.
22206         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22207         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22208         Likewise.
22209         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22210         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22211         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22212         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22213         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22214         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22215         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22216         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22217         __fesetenv instead of fesetenv.
22218         (libc_feresetround_noex_ctx): Likewise.
22219         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22220         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22221         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22222         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22223         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22224         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22225         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22226         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22227         (__feupdateenv): Likewise.
22228         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22229         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22230         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22231         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22232
22233 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22234
22235         [BZ #17806]
22236         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22237         addresses have been freed.
22238
22239 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22240
22241         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22242         and nservall.
22243
22244 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22245
22246         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22247         Clean up check_pf allocation pattern. addresses
22248
22249 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22250
22251         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22252         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22253         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22254         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22255         * nptl/pthread_join.c (pthread_join): Likewise.
22256         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22257         * sysdeps/posix/waitid.c (__waitid): Likewise.
22258         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22259         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22260         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22261         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22262         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22263         Likewise.
22264         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22265         (__libc_pread64): Likewise.
22266         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22267         (__libc_pwrite): Likewise.
22268         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22269         (__libc_pwrite64): Likewsie.
22270         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22271         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22272         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22273         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22274         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22275         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22276         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22278         Likewise.
22279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22280         (__libc_pread64): Likewise.
22281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22282         Likewise.
22283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22284         (__libc_pwrite64): Likewise.
22285         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22286         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22287         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22288         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22289         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22290         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22291         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22292         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22293         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22294         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22295         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22296         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22297         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22298         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22299         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22300         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22301         Likewise.
22302
22303 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22304
22305         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22306         (CFLAGS-test-double.c): Likewise.
22307         (CFLAGS-test-ldouble.c): Likewise.
22308         (CPPFLAGS-test-ifloat.c): Likewise.
22309         (CPPFLAGS-test-idouble.c): Likewise.
22310         (CPPFLAGS-test-ildoubl.c): Likewise.
22311         (CFLAGS-test-test-fenv.c): Remove variable.
22312         (CFLAGS-test-misc.c): Likewise.
22313
22314 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22315
22316         [BZ #17797]
22317         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22318         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22319         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22320         CLOCKS_PER_SEC == 1000000.
22321         * time/clocktest.c (main): Replace %ld with %jd and cast to
22322         intmax_t.
22323
22324 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22325
22326         * sysdeps/generic/unwind-resume.h: New file.
22327         * sysdeps/gnu/unwind-resume.c: Include it.
22328         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22329         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22330         argument list.
22331         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22332         global rather than static.
22333         (_Unwind_Resume): Update user.
22334         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22335         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22336         rather than static.  Add __attribute__ ((cold)).
22337         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22338         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22339         * sysdeps/arm/arm-unwind-resume.S: New file.
22340         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22341         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22342         * sysdeps/arm/Makefile [$(subdir) = csu]
22343         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22344         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22345         Add rt-arm-unwind-resume.
22346         [$(subdir) = nptl]
22347         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22348         Add pt-arm-unwind-resume.
22349         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22350         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22351
22352 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22353
22354         [BZ #17748]
22355         * include/fenv.h (__feholdexcept): Declare.  Use
22356         libm_hidden_proto.
22357         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22358         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22359         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22360         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22361         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22362         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22363         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22364         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22365         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22366         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22367         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22368         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22369         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22370         (feholdexcept): Likewise.
22371         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22372         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22373         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22374         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22375         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22376         __feholdexcept instead of feholdexcept.
22377         (default_libc_feholdexcept_setround): Likewise.
22378
22379 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22380
22381         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22382         to avoid using stl/str to align destination.
22383
22384 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22385
22386         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22387
22388 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22389
22390         [BZ #17796]
22391         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22392         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22393         Define as weak alias not strong alias.
22394
22395 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22396
22397         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22398         bltzal with addiupc.
22399         (RTLD_START): Ditto.
22400
22401 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22402
22403         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22404         for __vdso_* functions in declarations.
22405         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22406         definitions.
22407         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22408         INTERNAL_VSYSCALL): Use struct return types to check for error.
22409
22410         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22411         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22412         function with cast from llround().
22413         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22414         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22415         Define.
22416
22417 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22418
22419         [BZ #17793]
22420         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22421         Define as weak alias not strong alias.
22422
22423         [BZ #17635]
22424         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22425         ...
22426         * ctype/ctype-extn.c: ... here.
22427         (__isblank_l): Move to ...
22428         * ctype/ctype-c99_l.c: ... here.  New file.
22429         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22430         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22431         Remove variable.
22432         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22433         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22434         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22435         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22436         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22437
22438         [BZ #17777]
22439         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22440         (posix_fadvise64): Define as weak alias not strong alias.
22441         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22442         (posix_fallocate64): Likewise.
22443         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22444         Remove variable.
22445         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22446         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22447         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22448         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22449         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22450
22451 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22452
22453         [BZ #16191]
22454         * NEWS: Mention bug fix.
22455         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22456         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22457         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22458         (HOST_STACK_END_ADDR): Likewise.
22459
22460 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22461
22462         [BZ #17748]
22463         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22464         * math/fegetround.c (fegetround): Rename to __fegetround and
22465         define as weak alias of __fegetround.  Use libm_hidden_weak.
22466         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22467         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22468         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22469         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22470         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22471         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22472         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22473         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22474         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22475         Undefine after rather than before function definition; use
22476         parentheses around function name in definition.
22477         (__fegetround): Also undefine macro after function definition.
22478         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22479         __fegetround and define as weak alias of __fegetround.  Use
22480         libm_hidden_weak.  Do not undefine as macro.
22481         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22482         Likewise.
22483         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22484         __fegetround and define as weak alias of __fegetround.  Use
22485         libm_hidden_weak.
22486         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22487         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22488         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22489         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22490         __fegetround and define as weak alias of __fegetround.  Use
22491         libm_hidden_weak.
22492         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22493         __fegetround instead of fegetround.
22494
22495         [BZ #17782]
22496         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22497         Condition macro definition on [__USE_MISC].
22498
22499         [BZ #17781]
22500         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22501         (struct sigaction): Change type of sa_flags field to int.
22502
22503         [BZ #17780]
22504         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22505         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22506         __glibc_reserved0.
22507
22508         * nptl/version.c (banner): Use single year in copyright notice.
22509
22510         * NEWS: Update copyright dates.
22511         * catgets/gencat.c (print_version): Likewise.
22512         * csu/version.c (banner): Likewise.
22513         * debug/catchsegv.sh: Likewise.
22514         * debug/pcprofiledump.c (print_version): Likewise.
22515         * debug/xtrace.sh (do_version): Likewise.
22516         * elf/ldconfig.c (print_version): Likewise.
22517         * elf/ldd.bash.in: Likewise.
22518         * elf/pldd.c (print_version): Likewise.
22519         * elf/sotruss.sh: Likewise.
22520         * elf/sprof.c (print_version): Likewise.
22521         * iconv/iconv_prog.c (print_version): Likewise.
22522         * iconv/iconvconfig.c (print_version): Likewise.
22523         * locale/programs/locale.c (print_version): Likewise.
22524         * locale/programs/localedef.c (print_version): Likewise.
22525         * login/programs/pt_chown.c (print_version): Likewise.
22526         * malloc/memusage.sh (do_version): Likewise.
22527         * malloc/memusagestat.c (print_version): Likewise.
22528         * malloc/mtrace.pl: Likewise.
22529         * manual/libc.texinfo: Likewise.
22530         * nptl/version.c (banner): Likewise.
22531         * nscd/nscd.c (print_version): Likewise.
22532         * nss/getent.c (print_version): Likewise.
22533         * nss/makedb.c (print_version): Likewise.
22534         * posix/getconf.c (main): Likewise.
22535         * scripts/test-installation.pl: Likewise.
22536         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22537
22538 2015-01-02  Will Newton  <will.newton@linaro.org>
22539
22540         * sysdeps/arm/armv7/configure: Removed.
22541         * sysdeps/arm/armv7/configure.ac: Likewise.
22542
22543 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22544
22545         * All files with FSF copyright notices: Update copyright dates
22546         using scripts/update-copyrights.
22547         * intl/plural.c: Regenerated.
22548         * locale/programs/charmap-kw.h: Likewise.
22549         * locale/programs/locfile-kw.h: Likewise.
22550
22551 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22552
22553         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22554
22555 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22556
22557         [BZ #17748]
22558         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22559         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22560         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22561         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22562         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22563         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22564         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22565         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22566         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22567         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22568         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22569         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22570         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22571         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22572         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22573         libm_hidden_def.
22574         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22575         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22576         Likewise.
22577         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22578         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22579         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22580         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22581         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22582         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22583         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22584         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22585         __fegetenv instead of fegetenv.
22586         (libc_feholdsetround_noex_ctx): Likewise.
22587
22588 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22589
22590         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22591         (Elf_MIPS_ABIFlags_v0): New structure.
22592         (EF_MIPS_FP64): Define.
22593         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22594         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22595         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22596         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22597         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22598         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22599         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22600         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22601         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22602         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22603         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22604         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22605         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22606         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22607         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22608         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22609         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22610         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22611         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22612         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22613         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22614         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22615         field.
22616         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22617         EF_MIPS_FP64.
22618         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22619         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22620         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22621         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22622         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22623         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22624         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22625         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22626         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22627         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22628         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22629         record the current FP ABI extension.
22630         (mips-mode-switch): Define to show if kernel headers support mode
22631         switching.
22632         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22633         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22634         supported SYSV ABI version to 3.
22635         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22636         feature.
22637
22638 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22639             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22640
22641         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22642         path.
22643         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22644
22645 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22646
22647         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22648         __fegetround and redefine to call __fegetround.  Remove condition
22649         on [!__NO_MATH_INLINES].
22650         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22651         function.
22652         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22653         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22654         Remove macro.
22655         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22656         instead of <fenv_libc.h>.
22657         (__llrintl): Call fegetround instead of __fegetround.
22658         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22659         instead of <fenv_libc.h>.
22660         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22661         (__lrintl): Call fegetround instead of __fegetround.
22662         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22663         instead of <fenv_libc.h>.
22664         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22665         (__rintl): Call fegetround instead of __fegetround.
22666
22667 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22668
22669         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22670         arrays.
22671
22672 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22673
22674         [BZ #17775]
22675         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22676         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22677         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22678
22679 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22680
22681         * sysdeps/i386/tls-macros.h: Include <features.h>.
22682         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22683         (TLS_IE): Likewise.
22684         (TLS_LD): Likewise.
22685         (TLS_GD): Likewise.
22686         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22687         define for GCC >= 5.0.
22688
22689 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22690
22691         * math/test-fenv.c (test_single_exception, set_single_exc,
22692         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22693         feexcp_mask_test, feenable_test, fe_single_test): Add
22694         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22695         case where they are not used.
22696         * math/libm-test.inc: Likewise.
22697         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22698         unused in the absence of FP rounding/exception support.
22699         * stdio-common/tst-printf-round.c: Likewise.
22700         * stdlib/tst-strtod-round.c: Likewise.
22701         * stdlib/tst-strtod-underflow.c: Likewise.
22702
22703 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22704
22705         [BZ #17723]
22706         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22707         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22708         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22709         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22710         libm_hidden_weak.
22711         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22712         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22713         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22714         libm_hidden_def.
22715         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22716         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22717         libm_hidden_weak.
22718         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22719         Likewise.
22720         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22721         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22722         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22723         libm_hidden_weak.
22724         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22725         libm_hidden_def.
22726         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22727         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22728         (__feraiseexcept): Likewise.
22729         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22730         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22731         libm_hidden_weak.
22732         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22733         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22734         libm_hidden_def.
22735         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22736         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22737         Use libm_hidden_def.
22738         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22739         libm_hidden_def.
22740         (feraiseexcept): Define as weak not strong alias.  Use
22741         libm_hidden_weak.
22742         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22743         New inline function.  Factored out of ...
22744         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22745         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22746         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22747         feraiseexcept.
22748         * math/w_acos.c (__acos): Likewise.
22749         * math/w_asin.c (__asin): Likewise.
22750         * math/w_ilogb.c (__ilogb): Likewise.
22751         * math/w_j0.c (y0): Likewise.
22752         * math/w_j1.c (y1): Likewise.
22753         * math/w_jn.c (yn): Likewise.
22754         * math/w_log.c (__log): Likewise.
22755         * math/w_log10.c (__log10): Likewise.
22756         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22757         * sysdeps/aarch64/fpu/math_private.h
22758         (libc_feupdateenv_test_aarch64): Likewise.
22759         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22760         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22761         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22762         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22763         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22764         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22765         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22766         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22767         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22768         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22769
22770 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22771
22772         [BZ #17732]
22773         * io/test-utime.c (main): Replace %ld with %jd and cast to
22774         intmax_t.
22775         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22776         * nptl/tst-mutex5.c: Include <stdint.h>.
22777         (do_test): Replace %ld with %jd and cast to intmax_t.
22778         * posix/tst-regex.c (run_test): Likewise.
22779         (run_test_backwards): Likewise.
22780         * rt/tst-clock.c: Include <stdint.h>.
22781         (clock_test): Replace %ld with %jd and cast to intmax_t.
22782         * rt/tst-cpuclock1.c: Include <stdint.h>.
22783         (do_test): Replace %lu with %ju and cast to uintmax_t.
22784         * rt/tst-cpuclock2.c: Include <stdint.h>.
22785         (do_test): Replace %lu with %ju and cast to uintmax_t.
22786         * rt/tst-mqueue1.c: Include <stdint.h>.
22787         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22788         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22789         intmax_t.
22790         * rt/tst-mqueue4.c (do_test): Likewise.
22791         * rt/tst-timer4.c: Include <stdint.h>.
22792         (check_ts): Replace %ld with %jd and cast to intmax_t.
22793         (do_test): Likewise.
22794         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22795         and cast to intmax_t.
22796         * sysdeps/pthread/tst-timer.c (main): Likewise.
22797         * time/clocktest.c (main): Likewise.
22798         * time/tst-posixtz.c (do_test): Likewise.
22799         * timezone/tst-timezone.c (main): Likewise.
22800
22801 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22802             H.J. Lu  <hongjiu.lu@intel.com>
22803
22804         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22805         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22806         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22807         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22808         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22809         version if bit_Fast_Unaligned_Load is set.
22810         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22811         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22812         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22813         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22814         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22815         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22816         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22817         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22818         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22819         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22820         to 4.
22821         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22822         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22823         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22824         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22825
22826 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22827
22828         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22829         instead of #if to avoid a Wundef warning.
22830         * stdlib/tst-limits.c (do_test): Likewise.
22831
22832         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22833         parallel other exception macros.
22834         (fegetenv): Convert from macro to extern inline so that it applies
22835         retroactively to inline functions already seen by the compiler.
22836         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22837
22838         * posix/Makefile (before-compile): Use $(objpfx) for
22839         posix-conf-vars-def.h.
22840
22841 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22842
22843         * posix/getconf.c (main): Use size_t for type of I.
22844         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22845         NSPEC.
22846
22847         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22848         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22849         * posix/posix-envs.def: Likewise.
22850         * sysdeps/posix/sysconf.c: Likewise.
22851         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22852         (specs): Remove array.
22853         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22854         array.
22855
22856         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22857         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22858         (__sysconf): Use CONF_IS_* macros.
22859
22860         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22861         ($(objpfx)posix-conf-vars-def.h): New target.
22862         * posix/posix-conf-vars.list: New file.
22863         * posix/posix-conf-vars.h: New file.
22864         * posix/confstr.c: Include posix-conf-vars.h.
22865         (confstr): Use CONF_IS_* macros.
22866         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22867         CONF_IS_* macros.
22868         * scripts/gen-posix-conf-vars.awk: New file.
22869
22870 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22871
22872         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22873         fegetround): Add no-op macros to avoid linknamespace issues.
22874
22875         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22876         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22877
22878         * sysdeps/unix/sysv/linux/tile/sysdep.h
22879         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22880         assembly-specific section to avoid a redefinition warning.
22881
22882         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22883         long before casting to pointer to avoid a cast warning.
22884
22885 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22886
22887         * sysdeps/tile/tilegx/Implies: New file.
22888
22889 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22890
22891         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22892
22893 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22894
22895         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22896
22897 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22898
22899         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22900         not define.
22901         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22902         <kernel-features.h>.
22903         (__utimes) [__NR_utimes]: Make code unconditional.
22904         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22905         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22906         (__ASSUME_UTIMES): Do not undefine.
22907         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22908         (__ASSUME_UTIMES): Likewise.
22909         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22910         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22911         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22912         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22913
22914 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22915
22916         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22917
22918 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22919
22920         [BZ #17747]
22921         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22922         alias to weak alias for j0l, y0l.
22923         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22924         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22925
22926         [BZ #17746]
22927         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22928         conversion.
22929
22930 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22931
22932         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22933         to zero if not already defined.
22934
22935 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22936
22937         [BZ #17724]
22938         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22939         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22940         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22941         (char *) casts added.
22942         * sysdeps/ieee754/k_standardf.c: New file.
22943         * sysdeps/ieee754/k_standardl.c: Likewise.
22944         * math/Makefile (libm-support): Remove k_standard.
22945         (libm-calls): Add k_standard.
22946
22947 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22948
22949         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22950         Optimize to avoid an unnecessary FPCR read.
22951
22952 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22953
22954         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22955         Optimize to reduce FPCR/FPSR accesses.
22956
22957 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22958
22959         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22960         Call libc_fetestexcept_aarch64.
22961
22962 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22963
22964         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22965         Call libc_fesetround_aarch64.
22966
22967 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22968
22969         [BZ #17733]
22970         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22971         (__bind): Do not define as weak alias.
22972         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22973         define.
22974         (__getsockname): Do not define as weak alias.
22975
22976 2014-12-22  Will Newton  <will.newton@linaro.org>
22977
22978         * manual/install.texi: Document that we require bison 2.7
22979         or above.
22980         * INSTALL: Regenerate.
22981         * configure.ac: Use AC_CHECK_PROG_VER instead of
22982         AC_PATH_PROG when checking for bison and check for
22983         version 2.7 or above.
22984         * configure: Regenerate.
22985
22986 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22987
22988         [BZ #17745]
22989         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22990         * sysdeps/tile/ffsll.c (ffsll): To here.
22991
22992         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22993
22994 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22995
22996         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22997         if not defined.
22998         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22999         definition.
23000         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
23001         hidden ___tls_get_addr.
23002         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
23003         hidden __tls_get_addr.
23004         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
23005         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
23006         Likewise.
23007
23008 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23009
23010         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
23011         _dl_init call.
23012
23013 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
23014
23015         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
23016         from "call _dl_init@PLT".
23017         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
23018
23019 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
23020
23021         * manual/search.texi: (Array Sort Function): Clarify stable sorting
23022         guarantees.
23023
23024 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
23025
23026         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
23027
23028 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23029
23030         [BZ #17744]
23031         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
23032         strnlen.
23033
23034 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23035
23036         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
23037         of multu on MIPSr6.
23038         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
23039         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
23040         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
23041         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
23042         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
23043
23044 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23045
23046         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
23047         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
23048         (PTR_SUBU): Use subu for mips32r6/mips64r6.
23049         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
23050         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
23051         mips32r6/mips64r6.
23052         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
23053
23054 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
23055
23056         * string/strncat.c (STRNCAT): Simplify implementation.
23057
23058 2014-12-19  David S. Miller  <davem@davemloft.net>
23059
23060         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
23061         access the quad as both a long double and as a series of 4 words.
23062
23063         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
23064         link_map->l_info array access.
23065
23066 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23067
23068         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
23069
23070         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
23071         * math/atest-exp2.c (TIMEOUT): Likewise.
23072         * math/atest-sincos.c (TIMEOUT): Likewise.
23073
23074 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23075
23076         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
23077         -Wno-error with -fno-builtin-lround.
23078
23079 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23080
23081         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
23082         Contains futex constants and functions moved over from ...
23083         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
23084         <lowlevellock-futex.h>.
23085         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23086         (lll_timedwait_tid): Add comments and parentheses around macro
23087         arguments.
23088
23089 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23090
23091         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
23092         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
23093         (__lll_private_flag): Remove.
23094         (lll_futex_wait): Likewise.
23095         (lll_futex_timed_wait): Likewise.
23096         (lll_futex_wake): Likewise.
23097         (lll_futex_requeue): Likewise.
23098         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23099         (__lll_timedwait_tid): Spell out argument names.
23100         (lll_timedwait_tid): Add comments and parentheses around macro
23101         arguments.
23102         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
23103         LLL_SHARED and LLL_PRIVATE usable from assembly code.
23104
23105 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23106
23107         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
23108         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23109         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23110         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
23111         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
23112         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
23113         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
23114         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
23115         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
23116         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
23117         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
23118         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
23119         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
23120         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
23121         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
23122         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
23123         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
23124         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23125         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23126
23127 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23128
23129         * sysdeps/x86_64/x32/Makefile: New file.
23130
23131 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23132
23133         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23134         1L with (mp_limb_t) 1.
23135
23136 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23137
23138         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23139         * nptl/libc_pthread_init.c: ... here.
23140         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23141         * nptl/register-atfork.c: ... here.
23142
23143         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23144         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23145         Use assert_perror to check its return value.
23146         (__gai_create_helper_thread): Likewise.
23147
23148         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23149
23150         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23151
23152 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23153
23154         [BZ #17725]
23155         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23156         __profil_counter.
23157         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23158         Likewise.
23159         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23160         Likewise.
23161         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23162         Likewise.
23163         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23164         (profil_counter): Likewise.
23165         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23166         (profil_counter): Likewise.
23167         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23168         Likewise.
23169         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23170         Likewise.
23171         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23172         (profil_counter): Likewise.
23173         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23174         Likewise.
23175         [!__profil_counter] (profil_counter): Define as weak alias of
23176         __profil_counter.
23177         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23178         (profil_counter): Rename to __profil_counter.
23179         [!__profil_counter] (profil_counter): Define as weak alias of
23180         __profil_counter.
23181         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23182         (profil_counter): Rename to __profil_counter.
23183         [!__profil_counter] (profil_counter): Define as weak alias of
23184         __profil_counter.
23185         * sysdeps/posix/profil.c: Update comment referring to
23186         profil_counter.
23187         (__profil): Use __profil_counter instead of profil_counter.
23188         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23189         __profil_counter.  Use __profil_counter_ushort and
23190         __profil_counter_uint in definitions.
23191         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23192         instead of profil_counter_uint and profil_counter_ushort.
23193
23194         [BZ #17722]
23195         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23196         define as weak alias of __inet_makeaddr.
23197         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23198         as weak alias of __inet_addr.
23199         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23200         as weak alias of __inet_pton.  Use libc_hidden_weak.
23201         * include/arpa/inet.h (__inet_pton): Declare.  Use
23202         libc_hidden_proto.
23203         (inet_makeaddr): Don't use libc_hidden_proto.
23204         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23205         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23206         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23207         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23208         Remove variable.
23209         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23210         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23211
23212 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23213
23214         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23215
23216 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23217
23218         * stdio-common/bug-vfprintf-nargs.c (do_test):
23219         Cast value to intptr_t to avoid format warning
23220         for usage with PRIdPTR printing macro.
23221
23222 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23223
23224         * libio/tst-widetext.c (do_test):
23225         Use format type %td instead of %Zd for ptrdiff_t
23226         in order to avoid format warning.
23227
23228 2014-12-17  Andreas Schwab  <schwab@suse.de>
23229
23230         * nscd/mem.c (gc): Add size_t cast to match printf format.
23231
23232 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23233
23234         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23235         (init): Apply PTR_MANGLE to pointers before storing them.
23236         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23237         before using them.
23238
23239 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23240
23241         [BZ #17719]
23242         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23243         define as weak alias of __memrchr.
23244         (__memrchr): Do not define as strong alias of memrchr.
23245         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23246         Remove variable.
23247         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23248         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23249         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23250
23251         [BZ #17717]
23252         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23253         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23254         (if_indextoname): Rename to __if_indextoname and define as weak
23255         alias of __if_indextoname.  Use libc_hidden_weak.
23256         (if_freenameindex): Rename to __if_freenameindex and define as
23257         weak alias of __if_freenameindex.
23258         (if_nameindex): Rename to __if_nameindex and define as weak alias
23259         of __if_nameindex.
23260         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23261         __if_nametoindex and define as weak alias of __if_nametoindex.
23262         Use libc_hidden_weak.
23263         (if_freenameindex): Rename to __if_freenameindex and define as
23264         weak alias of __if_freenameindex.
23265         (if_nameindex): Rename to __if_nameindex and define as weak alias
23266         of __if_nameindex.
23267         (if_indextoname): Rename to __if_indextoname and define as weak
23268         alias of __if_indextoname.  Use libc_hidden_weak.
23269         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23270         __if_nametoindex and define as weak alias of __if_nametoindex.
23271         Use libc_hidden_weak.
23272         (if_freenameindex): Rename to __if_freenameindex and define as
23273         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23274         (if_nameindex_netlink): Use __if_freenameindex instead of
23275         if_freenameindex.
23276         (if_nameindex): Rename to __if_nameindex and define as weak alias
23277         of __if_nameindex.  Use libc_hidden_weak.
23278         (if_indextoname): Rename to __if_indextoname and define as weak
23279         alias of __if_indextoname.  Use libc_hidden_weak.
23280         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23281         libc_hidden_proto.
23282         [!_ISOMAC] (__if_freenameindex): Likewise.
23283         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23284         if_nametoindex.
23285         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23286         variable.
23287         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23288         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23289         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23290         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23291         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23292         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23293         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23294
23295         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23296         Remove variable.
23297         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23298         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23299
23300 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23301
23302         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23303         subscript above bounds'
23304
23305         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23306         bounds.
23307
23308 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23309
23310         * libio/tst-fopenloc.c: Use test-skeleton.c.
23311
23312         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23313         (entry): Rename to ITEM.
23314         (do_test, comp): Adjust.
23315
23316         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23317
23318 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23319
23320         * string/tester.c: Include <libc-internal.h>.
23321         (test_memset): Ignore -Wmemset-transposed-args.
23322
23323 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23324
23325         * misc/tst-mntent2.c (do_test): Fix warning.
23326
23327 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23328
23329         * elf/tst-unique4lib.cc(a): Mark as used.
23330
23331 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23332
23333         [BZ #17630]
23334         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23335         names.
23336
23337 2014-12-16  Allan McRae  <allan@archlinux.org>
23338
23339         * stdio-common/Makefile (tests): Re-add bug26.
23340
23341 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23342
23343         [BZ #17657]
23344         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23345         static array.
23346
23347 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23348
23349         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23350         (__lll_lock_wait): Likewise.
23351         (__lll_timedlock_wait): Likewise.
23352         (__lll_timedwait_tid): Likewise.
23353         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23354         (__lll_robust_timedlock_wait): Likewise.
23355         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23356         (lll_cond_trylock): Likewise.
23357         (__lll_lock): Likewise.
23358         (__lll_robust_lock): Likewise.
23359         (__lll_cond_lock): Likewise.
23360         (lll_robust_cond_lock): Likewise.
23361         (__lll_timedlock): Likewise.
23362         (__lll_robust_timedlock): Likewise.
23363         (__lll_unlock): Likewise.
23364         (__lll_robust_unlock): Likewise.
23365         (lll_wait_tid): Likewise.
23366         (lll_timedwait_tid): Likewise.
23367
23368 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23369
23370         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23371
23372 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23373
23374         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23375
23376 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23377
23378         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23379         * stdio-common/tst-sprintf.c: Likewise.
23380
23381 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23382
23383         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23384
23385 2014-12-15  Jeff Law  <law@redhat.com>
23386
23387         [BZ #16617]
23388         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23389         on the heap.  (CVE-2012-3406)
23390         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23391         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23392         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23393
23394 2014-12-15  Will Newton  <will.newton@linaro.org>
23395
23396         * manual/install.texi: Bump required version of texinfo
23397         to 4.7 from 4.5.
23398         * INSTALL: Regenerated.
23399         * configure.ac: Check for makeinfo version 4.7 and above.
23400         * configure: Regenerated.
23401
23402 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23403
23404         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23405         PREFIX, string constant to insert between directory and name.
23406         * sysdeps/posix/shm_open.c: Update caller.
23407         * sysdeps/posix/shm_unlink.c: Likewise.
23408         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23409         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23410         (SEM_SHM_PREFIX): New macro.
23411         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23412         [$(have-thread-library) = no].
23413         * nptl/Makefile (libpthread-routines): Add shm-directory.
23414         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23415         * sysdeps/nptl/shm-directory.h: New file.
23416         * sysdeps/posix/shm-directory.c
23417         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23418         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23419         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23420         INTERNAL_SYSCALL.
23421         (__where_is_shmfs): Function removed.
23422         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23423         Variables removed.
23424         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23425         Use SHM_GET_NAME.
23426         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23427
23428         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23429         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23430         unconditional for use inside libpthread.
23431         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23432
23433 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23434
23435         * nptl/pthread_getaffinity.c: New file.
23436         * nptl/pthread_setaffinity.c: New file.
23437         * nptl/pthread_getname.c: New file.
23438         * nptl/pthread_setname.c: New file.
23439
23440         * nptl/pthread_create.c (START_THREAD_DEFN)
23441         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23442
23443 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23444             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23445
23446         * resolv/res_send.c (send_vc): Disable warning resplen may
23447         be used uninitialized.
23448
23449 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23450
23451         * nptl/tst-mutex6.c
23452         (ATTR_NULL): New define checks ATTR against NULL.
23453         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23454         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23455
23456 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23457
23458         [BZ #17581]
23459         * malloc/hooks.c
23460         (mem2mem_check): Revert my previous change.
23461         (malloc_check_get_size): Revert my previous change.
23462         (mem2chunk_check): Revert my previous change.
23463
23464 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23465
23466         * sysdeps/posix/shm-directory.c: New file.
23467         * sysdeps/posix/shm-directory.h: New file.
23468         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23469         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23470         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23471         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23472         Transmute EPERM to EACCES.
23473         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23474         from ...
23475         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23476         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23477
23478 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23479
23480         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23481         pointer and cast to uintptr_t.
23482         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23483         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23484         Add cast to avoid warning.
23485         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23486
23487 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23488
23489         * nptl/semaphore.h: Move to ...
23490         * sysdeps/pthread/semaphore.h: ... here.
23491         * Makefile (installed-headers): Change nptl/semaphore.h to
23492         sysdeps/pthread/semaphore.h.
23493
23494 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23495
23496         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23497         generated error format strings.
23498
23499         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23500         -Wformat-extra-args warnings for scanf formats.
23501         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23502         test of zero-length format (duh).
23503         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23504         corner-case scanf format test.
23505         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23506         generated fprintf format string.
23507         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23508         corner-case sprintf format tests.
23509         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23510         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23511         -Wformat-extra-args warnings throughout.
23512         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23513         (CFLAGS-scanf4.c): Likewise.
23514         (CFLAGS-scanf7.c): Likewise.
23515         (CFLAGS-tst-sprintf.c): Likewise.
23516         (CFLAGS-tst-printf.c): Likewise.
23517         (CFLAGS-tst-printfsz.c): Likewise.
23518
23519 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23520
23521         * include/cpio.h: New file.
23522         * include/fmtmsg.h: Likewise.
23523
23524         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23525         corresponding format argument to size_t.
23526         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23527         arguments.
23528         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23529         corresponding format argument to size_t.
23530         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23531         arguments.
23532         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23533         corresponding format argument to size_t.
23534         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23535         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23536         (CFLAGS-tst-mbswcs2.c): Likewise.
23537         (CFLAGS-tst-mbswcs3.c): Likewise.
23538         (CFLAGS-tst-mbswcs4.c): Likewise.
23539         (CFLAGS-tst-mbswcs5.c): Likewise.
23540         (CFLAGS-tst-trans.c): Likewise.
23541
23542 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23543
23544         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23545         rather than assuming they won't contain any '%'s.
23546
23547 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23548
23549         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23550         inhibit_loop_to_libcall to avoid recursive calls.
23551         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23552         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23553
23554 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23555
23556         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23557         prototype.
23558
23559 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23560
23561         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23562         integer value instead of boolean.
23563
23564 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23565
23566         * malloc/malloc.c: Fix powerof2 check.
23567
23568 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23569
23570         * locale/programs/locfile.h (maybe_swap_uint32):
23571         Remove inline and add unused attribute.
23572
23573 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23574
23575         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23576         Truncating assembler expression to a .long expression.
23577
23578 2014-12-11  Andreas Schwab  <schwab@suse.de>
23579
23580         * elf/rtld.c (struct map_args): Constify str member.
23581         (do_preload): Constify fname argument.
23582
23583 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23584
23585         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23586         constants definition.
23587
23588 2014-12-11  Andreas Schwab  <schwab@suse.de>
23589
23590         [BZ #16657]
23591         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23592         FORCE_ELISION instead of DO_ELISION.
23593         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23594         Remove.
23595         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23596         Likewise.
23597
23598         * iconvdata/gconv-modules: Remove duplicate entry.
23599
23600 2014-12-11  Will Newton  <will.newton@linaro.org>
23601
23602         Merge gettext 0.19.3 into intl/.
23603
23604         This involves a number of cosmetic changes to comments
23605         and ANSI function definitions and prototypes throughout
23606         all the files. The gettext copyright header is used but
23607         with the date ranges taken from the glibc copy.
23608
23609         * NEWS: Add gettext merge to 2.21.
23610         * intl/bindtextdom.c: Switch to gettext copyright.
23611         Use ANSI definitions and prototypes.
23612         Use gl_* locking primitives rather than __libc_* ones.
23613         Use __builtin_expect rather than __glibc_likely/unlikely.
23614         * intl/dcgettext.c: Switch to gettext copyright.
23615         Use ANSI definitions and prototypes.
23616         * intl/dcigettext.c: Switch to gettext copyright.
23617         Use ANSI definitions and prototypes.
23618         (INTDIV0_RAISES_SIGFPE): New define.
23619         Use gl_* locking primitives rather than __libc_* ones.
23620         Include eval-plural.h instead of plural-eval.c.
23621         Use __builtin_expect rather than __glibc_likely/unlikely.
23622         * intl/dcngettext.c: Switch to gettext copyright.
23623         Use ANSI definitions and prototypes.
23624         * intl/dgettext.c: Likewise.
23625         * intl/dngettext.c: Likewise.
23626         * intl/plural-eval.c: Renamed to...
23627         * intl/eval-plural.h: ...this.
23628         * intl/explodename.c: Switch to gettext copyright.
23629         Use ANSI definitions and prototypes.
23630         (_nl_explode_name): Use strchr instead of __rawmemchr.
23631         * intl/finddomain.c: Switch to gettext copyright.
23632         Use ANSI definitions and prototypes.
23633         Use gl_* locking primitives rather than __libc_* ones.
23634         (_nl_find_domain): Use malloc rather than alloca for
23635         allocation of temporary locale name.
23636         * intl/gettext.c: Switch to gettext copyright.
23637         Use ANSI definitions and prototypes.
23638         * intl/gettextP.h: Switch to gettext copyright.
23639         Use ANSI definitions and prototypes.
23640         Use gl_* locking primitives rather than __libc_* ones.
23641         * intl/gmo.h: Switch to gettext copyright.
23642         (struct sysdep_string): Move struct segment_pair outside of
23643         struct definition.
23644         * intl/hash-string.c: Use ANSI definitions and prototypes.
23645         * intl/hash-string.h: Switch to gettext copyright.
23646         Use ANSI definitions and prototypes.
23647         * intl/l10nflist.c: Switch to gettext copyright.
23648         Use ANSI definitions and prototypes.
23649         (_nl_normalize_codeset): Avoid integer overflow.
23650         * intl/loadinfo.h: Switch to gettext copyright.
23651         Use ANSI definitions and prototypes.
23652         (LIBINTL_DLL_EXPORTED): New define.
23653         (PATH_SEPARATOR): New define.
23654         * intl/loadmsgcat.c: Switch to gettext copyright.
23655         * intl/localealias.c: Switch to gettext copyright.
23656         Use ANSI definitions and prototypes.
23657         (_nl_expand_alias): Use PATH_SEPARATOR.
23658         * intl/ngettext.c: Switch to gettext copyright.
23659         Use ANSI definitions and prototypes.
23660         * intl/plural-exp.c: Likewise.
23661         * intl/plural-exp.h: Switch to gettext copyright.
23662         Use ANSI definitions and prototypes.
23663         (struct expression): Move definition of enum operator outside
23664         of struct definition.
23665         * intl/plural.c: Regenerate.
23666         * intl/plural.y: Switch to gettext copyright.
23667         Use ANSI definitions and prototypes.
23668         Port to bison 3.0.
23669         * intl/textdomain.c: Switch to gettext copyright.
23670         Use ANSI definitions and prototypes.
23671         Use gl_* locking primitives rather than __libc_* ones.
23672
23673 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23674
23675         * debug/warning-nop.c: Add used atrribute.
23676
23677 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23678
23679         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23680
23681         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23682         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23683         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23684
23685 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23686             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23687
23688         [BZ #17634]
23689         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23690         Undefine after defining function.  Define as weak alias of
23691         __wcschr.  Use libc_hidden_weak.
23692         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23693         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23694         (libc_hidden_def): Also define __GI___wcschr alias.
23695         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23696         __wcschr and define as weak alias of __wcschr.
23697         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23698         __wcschr.
23699         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23700         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23701         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23702         libc_hidden_weak.  Do not use libc_hidden_def.
23703         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23704         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23705         __GI___wcschr alias.
23706         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23707         [IS_IN (libc)] (wcschr): Define as macro expanding to
23708         __redirect_wcschr.
23709         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23710         [IS_IN (libc)] (__wcschr_power6): Likewise.
23711         [IS_IN (libc)] (__wcschr_power7): Likewise.
23712         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23713         instead of wcschr.
23714         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23715         __libc_wcschr.
23716         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23717         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23718         __wcschr and define as weak alias of __wcschr.  Use
23719         libc_hidden_builtin_def.
23720         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23721         as weak alias of __wcschr.  Use libc_hidden_weak.
23722         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23723         wcschr.
23724         * time/era.c (_nl_init_era_entries): Likewise.
23725         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23726         variable.
23727         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23728         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23729
23730 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23731
23732         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23733         format for long int variable.
23734
23735 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23736
23737         [BZ #10672]
23738         * manual/search.texi: (Array Sort Function): Remove claim how to make
23739         qsort stable.
23740
23741 2014-12-10  Andreas Schwab  <schwab@suse.de>
23742
23743         [BZ #12847]
23744         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23745         user-controlled locks.
23746
23747 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23748
23749         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23750         register.
23751
23752 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23753
23754         * configure.ac (--disable-werror): New configure option.
23755         (enable_werror): New AC_SUBST.
23756         * configure: Regenerated.
23757         * config.make.in (enable-werror): New variable.
23758         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23759         -Wno-error=undef.
23760         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23761         * manual/install.texi (Configuring and compiling): Document
23762         --disable-werror.
23763         * INSTALL: Regenerated.
23764         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23765         (CFLAGS-tst-chk2.c): Likewise.
23766         (CFLAGS-tst-chk3.c): Likewise.
23767         (CFLAGS-tst-chk4.cc): Likewise.
23768         (CFLAGS-tst-chk5.cc): Likewise.
23769         (CFLAGS-tst-chk6.cc): Likewise.
23770         (CFLAGS-tst-lfschk1.c): Likewise.
23771         (CFLAGS-tst-lfschk2.c): Likewise.
23772         (CFLAGS-tst-lfschk3.c): Likewise.
23773         (CFLAGS-tst-lfschk4.cc): Likewise.
23774         (CFLAGS-tst-lfschk5.cc): Likewise.
23775         (CFLAGS-tst-lfschk6.cc): Likewise.
23776
23777         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23778         (main): Disable -Wdeprecated-declarations around calls to
23779         register_printf_function.
23780
23781         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23782         (do_test): Disable -Wdiv-by-zero around some calls to
23783         fwrite_unlocked and fread_unlocked.
23784
23785         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23786         (DIAG_POP_NEEDS_COMMENT): Likewise.
23787         (_DIAG_STR1): Likewise.
23788         (_DIAG_STR): Likewise.
23789         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23790         * stdio-common/bug21.c: Include <libc-internal.h>.
23791         (do_test): Disable -Wformat around call to sscanf.
23792         * stdio-common/scanf14.c: Include <libc-internal.h>.
23793         (main): Disable -Wformat around some calls to scanf functions.
23794
23795 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23796
23797         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23798
23799 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23800
23801         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23802         stack variable alignment.
23803
23804 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23805
23806         [BZ #17682]
23807         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23808         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23809         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23810         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23811         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23812         __getrlimit instead of getrlimit.
23813         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23814         __gettimeofday instead of gettimeofday.
23815         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23816         Likewise.
23817         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23818         Likewise.
23819         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23820         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23821         Remove variable.
23822         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23823         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23824
23825 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23826
23827         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23828         for wide-character tests.
23829
23830 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23831
23832         * io/openat64.c: #include <libc-internal.h>
23833         (__openat64): Prototypify.  Use ignore_value on MODE.
23834         * io/openat.c: Likewise.
23835         * misc/reboot.c: #include <libc-internal.h>
23836         (reboot): Prototypify.  Use ignore_value on HOWTO.
23837         * misc/ptrace.c: #include <libc-internal.h>
23838         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23839
23840 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23841
23842         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23843         XPG4, UNIX98 and XOPEN2K.
23844         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23845         Remove variable.
23846         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23847
23848 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23849
23850         * libio/fileops.c: Use ISO C style for function definitions.
23851         * libio/iofopen.c: Likewise.
23852         * libio/wfileops.c: Likewise.
23853
23854         [BZ #17653]
23855         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23856         offset on EOF.
23857         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23858         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23859         (fgets_func): Function pointer to fgets and fgetws.
23860         (do_ftell_test): Add test to verify ftell value after read
23861         EOF.
23862         (do_test): Set fgets_func.
23863
23864         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23865         O_TRUNC flag for w and w+ modes.
23866         (do_rewind_test): Likewise.
23867         (do_ftell_test): Likewise.
23868         (do_write_test): Likewise.
23869
23870         [BZ #17647]
23871         * libio/fileops.c (do_ftell): Seek only when there are
23872         unflushed writes.
23873         * libio/wfileops.c (do_ftell_wide): Likewise.
23874         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23875         test case.
23876         (do_one_test): Call it.
23877
23878 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23879
23880         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23881         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23882         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23883         Remove variable.
23884         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23885         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23886         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23887
23888 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23889
23890         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23891         Remove variable.
23892         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23893
23894         [BZ #17668]
23895         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23896         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23897         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23898         __freeifaddrs.  Use libc_hidden_weak.
23899         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23900         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23901         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23902         __freeifaddrs.  Use libc_hidden_weak.
23903         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23904         __getifaddrs and define as weak alias of __getifaddrs.  Use
23905         libc_hidden_weak.
23906         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23907         __freeifaddrs.  Use libc_hidden_weak.
23908         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23909         Remove variable.
23910         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23911         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23912
23913 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23914
23915         [BZ #17601]
23916         * sysdeps/mips/start.S (__start): Use indirect jump to call
23917         __libc_start_main.
23918
23919 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23920
23921         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23922
23923         * nptl/tst-mutex1.c: Include <stdbool.h>.
23924         [!ATTR] (ATTR_NULL): New macro.
23925         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23926         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23927         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23928
23929         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23930         to char *.
23931
23932         [BZ #17665]
23933         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23934         Change conditional to [__USE_MISC].
23935
23936         [BZ #17664]
23937         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23938         fgets_unlocked.
23939         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23940         __fgets_unlocked.
23941         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23942         fgets_unlocked.
23943         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23944         Remove variable.
23945         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23946         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23947         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23948         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23949         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23950         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23951         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23952         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23953         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23954
23955         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23956
23957 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23958
23959         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23960         Remove strpbrk objects.
23961         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23962         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23963         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23964         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23965         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23966         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23967
23968         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23969         Remove strcspn objects.
23970         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23971         (__libc_ifunc_impl_list): Remove strcspn implementation.
23972         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23973         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23974         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23975         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23976
23977         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23978         Remove strspn objetcs.
23979         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23980         (__libc_ifunc_impl_list): Remove strspn implementation.
23981         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23982         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23983         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23984         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23985
23986 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23987
23988         [BZ #17581]
23989         * malloc/hooks.c
23990         (mem2mem_check): Add a terminator to the chain of checking blocks.
23991         (malloc_check_get_size): Use it here.
23992         (mem2chunk_check): Ditto.
23993
23994 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23995
23996         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23997         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23998
23999 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
24000
24001         * bits/ioctl-types.h: Indent preprocessor directives correctly.
24002
24003         * nptl/nptl-init.c: Include libc-internal.h.
24004         (__pthread_initialize_minimal_internal): Use ROUND_UP.
24005
24006         * elf/ldconfig.c (search_dir): Expand comment.
24007
24008 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
24009
24010         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
24011         variable.
24012         (linknamespace-symlist-stdlibs-tests): Likewise.
24013         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
24014         instead of $(objpfx)symlist-stdlibs.
24015         (linknamespace-libs-isoc): New variable.
24016         (linknamespace-libs): Use $(linknamespace-libs-isoc).
24017         (linknamespace-libs-ISO): New variable.
24018         (linknamespace-libs-ISO99): Likewise.
24019         (linknamespace-libs-ISO11): Likewise.
24020         (linknamespace-libs-XPG3): Likewise.
24021         (linknamespace-libs-XPG4): Likewise.
24022         (linknamespace-libs-POSIX): Likewise.
24023         (linknamespace-libs-UNIX98): Likewise.
24024         (linknamespace-libs-XOPEN2K): Likewise.
24025         (linknamespace-libs-POSIX2008): Likewise.
24026         (linknamespace-libs-XOPEN2K8): Likewise.
24027         ($(objpfx)symlist-stdlibs): Replace by
24028         $(linknamespace-symlist-stdlibs-tests).  Use
24029         $(linknamespace-libs-$*) as set of libraries.
24030         ($(linknamespace-header-tests)): Update dependencies.  Use
24031         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
24032         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
24033         * conform/linknamespace.pl: Remove comment about considering
24034         definitions of symbols from irrelevant libraries.
24035
24036 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
24037
24038         [BZ #13862]
24039         * elf/dl-tls.c: Include <atomic.h>.
24040         (oom): Remove #ifdef SHARED/#endif.
24041         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
24042         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
24043         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
24044         big enough.
24045         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
24046         * nptl/Makefile (tests): Add tst-stack4.
24047         (modules-names): Add tst-stack4mod.
24048         ($(objpfx)tst-stack4): New.
24049         (tst-stack4mod.sos): Likewise.
24050         ($(objpfx)tst-stack4.out): Likewise.
24051         ($(tst-stack4mod.sos)): Likewise.
24052         (clean): Likewise.
24053         * nptl/tst-stack4.c: New file.
24054         * nptl/tst-stack4mod.c: Likewise.
24055
24056 2014-11-27  J. Brown  <jb999@gmx.de>
24057
24058         * sysdeps/x86/bits/string.h: Add recent CPUs.
24059
24060 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24061
24062         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
24063         sigblock.
24064
24065         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
24066         feof.
24067
24068         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
24069         variable.
24070
24071 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
24072
24073         * nscd/connections.c: Include libc-internal.h because of macro
24074         usage ignore_value.
24075
24076 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24077
24078         * string/bits/string3.h (__warn_memset_zero_len): Don't
24079         declare for gcc newer than 5.0.
24080         (memset): Don't test for zero-length __LEN for gcc newer than
24081         5.0.
24082
24083 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24084
24085         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
24086         size_t for %zu format.
24087
24088         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
24089         difference, not %ju.
24090
24091 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24092
24093         * include/libc-internal.h (ignore_value): New macro.
24094         * nscd/connections.c (restart): Wrap calls to setuid and setgid
24095         with ignore_value.
24096
24097         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
24098         definition.
24099
24100         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
24101         pthread_cleanup_push to void *.
24102
24103         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
24104         Undefine.
24105
24106         [BZ #16619]
24107         [BZ #16740]
24108         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
24109         instead of 1L << 52.
24110
24111         * libio/bug-rewind.c (do_test): Check fwscanf return values.
24112         * libio/bug-rewind2.c (do_test): Likewise.
24113
24114         * debug/test-stpcpy_chk-ifunc.c: Remove file.
24115         * debug/test-strcpy_chk-ifunc.c: Likewise.
24116         * wcsmbs/test-wcschr-ifunc.c: Likewise.
24117         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24118         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24119         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24120         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24121         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24122         * Rules [$(multi-arch) = no] (tests): Do not filter out
24123         $(tests-ifunc).
24124         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24125         * debug/Makefile (tests-ifunc): Remove variable.
24126         (tests): Do not add $(tests-ifunc).
24127         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24128         (tests): Do not add $(tests-ifunc).
24129         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24130         [TEST_IFUNC]: Remove conditionals.
24131         * string/test-string.h (TEST_IFUNC): Remove macro.
24132         [TEST_IFUNC]: Remove conditionals.
24133
24134         * string/test-strchr.c [!WIDE] (L): New macro.
24135         [WIDE] (L): Likewise.
24136         (check1): Use CHAR instead of char.  Use L on string and character
24137         constants.
24138
24139 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24140
24141         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24142         tests.
24143         * sysdeps/powerpc/bits/atomic.h
24144         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24145         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24146         (atomic_exchange_and_add_acq): Likewise.
24147         (atomic_exchange_and_add_rel): Likewise.
24148         * sysdeps/powerpc/powerpc32/bits/atomic.h
24149         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24150         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24151         * sysdeps/powerpc/powerpc64/bits/atomic.h
24152         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24153         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24154
24155 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24156
24157         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24158         Change synchronization of __sched_fifo_min_prio and
24159         __sched_fifo_max_prio.
24160         * nptl/pthread_mutexattr_getprioceiling.c
24161         (pthread_mutexattr_getprioceiling): Likewise.
24162         * nptl/pthread_mutexattr_setprioceiling.c
24163         (pthread_mutexattr_setprioceiling): Likewise.
24164         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24165         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24166         Likewise.
24167
24168 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24169
24170         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24171         void.
24172
24173 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24174
24175         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24176         third argument const.
24177
24178 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24179
24180         fnmatch: work around GCC compiler warning bug with uninit var
24181         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24182         This works around a bug with x86-64 GCC 4.9.2 and earlier
24183         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24184         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24185         used uninitialized in this function [-Wmaybe-uninitialized]".
24186
24187 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24188
24189         * posix/bug-regex31.c (main): Return RES not 0.
24190
24191 2014-11-25  Anton Blanchard <anton@samba.org>
24192
24193         * sysdeps/powerpc/bits/atomic.h
24194         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24195
24196 2014-11-24  Sterling Augustine  <saugustine@google.com>
24197
24198         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24199
24200 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24201
24202         [BZ #17608]
24203         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24204
24205 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24206
24207         [BZ #17633]
24208         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24209         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24210         variable.
24211         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24212         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24213
24214 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24215
24216         * string/strncpy.c (strncpy): Improve performance by using memset.
24217
24218 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24219
24220         * string/strcpy.c (strcpy):
24221         Improve performance by using strlen and memcpy.
24222
24223 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24224
24225         * string/strcoll_l.c (get_next_seq): __always_inline.
24226         * string/strcoll_l.c (do_compare): __always_inline.
24227
24228 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24229
24230         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24231         defined.
24232         * include/mqueue.h: Likewise.
24233         * include/stdlib.h: Likewise.
24234
24235         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24236         (get_null_defines): Adjust.
24237         * sunrpc/Makefile: Adjust comment.
24238         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24239         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24240         (CFLAGS-interp.c): Likewise.
24241         (CFLAGS-ldconfig.c): Likewise.
24242         (CPPFLAGS-.os): Likewise.
24243         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24244         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24245         * extra-modules.mk (extra-modules.mk): Likewise.
24246         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24247         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24248         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24249         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24250         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24251         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24252         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24253         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24254         * iconvdata/Makefile (CPPFLAGS): Likewise.
24255         (cpp-srcs-left): Add libof for all iconvdata routines.
24256         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24257         * include/assert.h: Likewise.
24258         * include/ctype.h: Likewise.
24259         * include/errno.h: Likewise.
24260         * include/libc-symbols.h: Likewise.
24261         * include/math.h: Likewise.
24262         * include/netdb.h: Likewise.
24263         * include/resolv.h: Likewise.
24264         * include/stdio.h: Likewise.
24265         * include/stdlib.h: Likewise.
24266         * include/string.h: Likewise.
24267         * include/sys/stat.h: Likewise.
24268         * include/wctype.h: Likewise.
24269         * intl/l10nflist.c: Likewise.
24270         * libidn/idn-stub.c: Likewise.
24271         * libio/libioP.h: Likewise.
24272         * nptl/libc_multiple_threads.c: Likewise.
24273         * nptl/pthreadP.h: Likewise.
24274         * posix/regex_internal.h: Likewise.
24275         * resolv/res_hconf.c: Likewise.
24276         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24277         * sysdeps/arm/memmove.S: Likewise.
24278         * sysdeps/arm/sysdep.h: Likewise.
24279         * sysdeps/generic/_itoa.h: Likewise.
24280         * sysdeps/generic/symbol-hacks.h: Likewise.
24281         * sysdeps/gnu/errlist.awk: Likewise.
24282         * sysdeps/gnu/errlist.c: Likewise.
24283         * sysdeps/i386/i586/memcpy.S: Likewise.
24284         * sysdeps/i386/i586/memset.S: Likewise.
24285         * sysdeps/i386/i686/memcpy.S: Likewise.
24286         * sysdeps/i386/i686/memmove.S: Likewise.
24287         * sysdeps/i386/i686/mempcpy.S: Likewise.
24288         * sysdeps/i386/i686/memset.S: Likewise.
24289         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24290         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24291         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24292         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24293         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24294         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24295         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24296         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24297         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24298         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24299         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24300         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24301         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24302         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24303         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24304         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24305         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24306         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24307         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24308         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24309         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24310         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24311         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24312         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24313         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24314         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24315         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24316         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24317         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24318         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24319         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24320         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24321         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24322         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24323         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24324         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24325         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24326         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24327         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24328         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24329         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24330         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24331         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24332         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24333         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24334         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24335         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24336         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24337         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24338         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24339         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24340         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24341         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24342         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24343         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24344         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24345         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24346         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24347         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24348         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24349         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24350         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24351         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24352         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24353         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24354         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24355         * sysdeps/posix/closedir.c: Likewise.
24356         * sysdeps/posix/opendir.c: Likewise.
24357         * sysdeps/posix/readdir.c: Likewise.
24358         * sysdeps/posix/rewinddir.c: Likewise.
24359         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24360         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24361         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24362         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24363         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24364         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24365         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24366         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24367         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24368         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24369         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24370         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24371         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24372         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24373         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24374         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24375         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24376         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24377         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24378         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24379         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24380         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24381         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24382         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24383         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24384         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24385         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24386         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24387         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24388         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24389         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24390         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24391         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24392         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24393         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24394         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24395         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24396         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24397         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24398         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24399         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24400         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24401         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24402         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24403         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24404         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24405         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24406         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24407         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24408         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24409         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24410         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24411         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24412         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24413         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24414         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24415         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24416         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24417         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24418         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24419         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24420         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24421         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24422         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24423         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24424         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24425         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24426         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24427         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24428         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24429         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24430         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24431         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24432         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24433         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24434         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24435         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24436         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24437         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24438         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24439         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24440         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24441         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24442         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24443         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24444         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24445         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24446         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24447         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24448         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24449         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24450         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24451         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24452         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24453         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24454         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24455         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24456         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24457         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24458         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24459         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24460         * sysdeps/unix/alpha/sysdep.S: Likewise.
24461         * sysdeps/unix/alpha/sysdep.h: Likewise.
24462         * sysdeps/unix/make-syscalls.sh: Likewise.
24463         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24464         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24465         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24466         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24467         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24468         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24469         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24470         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24471         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24472         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24473         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24474         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24475         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24476         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24477         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24478         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24479         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24480         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24481         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24482         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24483         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24484         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24485         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24486         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24487         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24488         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24489         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24492         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24493         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24494         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24495         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24496         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24497         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24498         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24499         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24500         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24501         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24502         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24503         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24504         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24505         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24506         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24507         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24508         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24509         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24510         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24511         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24512         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24513         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24514         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24515         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24516         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24517         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24518         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24519         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24520         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24521         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24522         * sysdeps/x86_64/memcpy.S: Likewise.
24523         * sysdeps/x86_64/memmove.c: Likewise.
24524         * sysdeps/x86_64/memset.S: Likewise.
24525         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24526         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24527         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24528         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24529         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24530         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24531         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24532         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24533         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24534         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24535         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24536         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24537         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24538         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24539         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24540         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24541         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24542         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24543         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24544         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24545         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24546         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24547         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24548         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24549         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24550         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24551         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24552         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24553         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24554         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24555         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24556         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24557         * sysdeps/x86_64/strcmp.S: Likewise.
24558
24559         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24560
24561         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24562         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24563         * elf/rtld-Rules: Likewise.
24564         * elf/setup-vdso.h: Likewise.
24565         * include/assert.h: Likewise.
24566         * include/bits/stdlib-float.h: Likewise.
24567         * include/errno.h: Likewise.
24568         * include/sys/stat.h: Likewise.
24569         * include/unistd.h: Likewise.
24570         * sysdeps/aarch64/setjmp.S: Likewise.
24571         * sysdeps/alpha/setjmp.S: Likewise.
24572         * sysdeps/arm/__longjmp.S: Likewise.
24573         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24574         * sysdeps/arm/setjmp.S: Likewise.
24575         * sysdeps/arm/sysdep.h: Likewise.
24576         * sysdeps/generic/_itoa.h: Likewise.
24577         * sysdeps/generic/dl-sysdep.h: Likewise.
24578         * sysdeps/generic/ldsodefs.h: Likewise.
24579         * sysdeps/i386/dl-tls.h: Likewise.
24580         * sysdeps/i386/setjmp.S: Likewise.
24581         * sysdeps/m68k/setjmp.c: Likewise.
24582         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24583         * sysdeps/mach/hurd/opendir.c: Likewise.
24584         * sysdeps/posix/getcwd.c: Likewise.
24585         * sysdeps/posix/opendir.c: Likewise.
24586         * sysdeps/posix/profil.c: Likewise.
24587         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24588         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24589         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24590         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24591         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24592         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24593         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24594         * sysdeps/s390/dl-tls.h: Likewise.
24595         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24596         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24597         * sysdeps/sh/sh3/setjmp.S: Likewise.
24598         * sysdeps/sh/sh4/setjmp.S: Likewise.
24599         * sysdeps/unix/alpha/sysdep.h: Likewise.
24600         * sysdeps/unix/arm/sysdep.S: Likewise.
24601         * sysdeps/unix/i386/sysdep.S: Likewise.
24602         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24603         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24604         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24605         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24606         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24607         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24608         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24609         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24610         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24611         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24612         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24613         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24614         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24617         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24618         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24619         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24620         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24621         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24622         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24623         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24624         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24625         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24626         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24627         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24628         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24629         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24630         * sysdeps/x86_64/setjmp.S: Likewise.
24631
24632         * include/math.h: Use IS_IN instead of IS_IN_libm.
24633         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24634         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24635         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24636         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24637         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24638         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24639         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24640         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24641         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24642         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24643         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24644         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24645         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24646         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24647         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24648         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24649         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24650         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24651         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24652         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24653         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24654         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24655         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24656         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24657         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24658         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24659         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24660         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24661         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24662         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24663         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24664         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24665         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24667         Likewise.
24668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24669         Likewise.
24670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24671         Likewise.
24672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24673         Likewise.
24674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24675         Likewise.
24676         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24677         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24678         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24679         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24680         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24681         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24682         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24683         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24685         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24686         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24687         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24688         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24689         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24690         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24691         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24692         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24693         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24694         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24695         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24696         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24697         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24698         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24699         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24700         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24702         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24703
24704         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24705         * nptl/pthreadP.h: Likewise.
24706         * nptl_db/structs.def: Likewise.
24707         * sysdeps/arm/sysdep.h: Likewise.
24708         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24709         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24710         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24711         * sysdeps/unix/alpha/sysdep.h: Likewise.
24712         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24713         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24714         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24715         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24716         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24717         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24718         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24719         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24720         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24721         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24722         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24723         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24724         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24725         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24728         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24729         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24730         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24731         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24732         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24733         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24734         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24735         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24736         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24737         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24738
24739         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24740         * nptl/pthreadP.h: Likewise.
24741         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24742         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24743         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24744         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24745         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24746         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24747         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24748         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24749         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24750         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24751         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24752         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24754         Likewise.
24755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24756         Likewise.
24757         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24758         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24759         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24760         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24761         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24762         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24763         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24764         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24765
24766         * dlfcn/dladdr.c: Use IS_IN.
24767         * dlfcn/dladdr1.c: Likewise.
24768         * dlfcn/dlclose.c: Likewise.
24769         * dlfcn/dlerror.c: Likewise.
24770         * dlfcn/dlinfo.c: Likewise.
24771         * dlfcn/dlmopen.c: Likewise.
24772         * dlfcn/dlopen.c: Likewise.
24773         * dlfcn/dlsym.c: Likewise.
24774         * dlfcn/dlvsym.c: Likewise.
24775
24776         * include/ifaddrs.h: Use IS_IN.
24777         * inet/check_pf.c: Likewise.
24778         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24779         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24780
24781         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24782         IS_IN_ldconfig.
24783         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24784         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24785
24786         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24787         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24788         IS_IN (libc).
24789
24790         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24791
24792         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24793         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24794         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24795         * include/libc-symbols.h (IS_IN_LIB): New macro.
24796         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24797         * include/netdb.h: Likewise.
24798         * include/stap-probe.h: Remove all uses of IN_LIB.
24799
24800         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24801         instead of IN_MODULE.
24802         * include/libc-symbols.h (IN_MODULE): Define using
24803         MODULE_NAME.
24804         (PASTE_NAME, PASTE_NAME1): New macros.
24805         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24806         of IN_LIB.
24807         (STAP_PROBE_ASM): Likewise.
24808
24809 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24810
24811         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24812         __mach_init in dlopened libc.
24813
24814 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24815
24816         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24817         * sysdeps/arm/preconfigure: Regenerate.
24818
24819 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24820
24821         * nptl/pthread_create.c (__pthread_create_2_1): Set
24822         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24823         when copying values from IATTR into PD.
24824
24825 2014-11-21  Will Newton  <will.newton@linaro.org>
24826             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24827
24828         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24829         Refactor inline-asm.  Also add comment.
24830
24831         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24832         ElfW macro instead of hardcoded Elf64 types.
24833         (la_aarch64_gnu_pltenter): Likewise.
24834         * sysdeps/aarch64/dl-machine.h
24835         (elf_machine_runtime_setup): Use ElfW(Addr).
24836
24837         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24838         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24839         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24840         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24841         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24842         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24843         (R_AARCH64_TLS_DTPMOD): This.
24844         (R_AARCH64_TLS_DTPREL64): Rename to ...
24845         (R_AARCH64_TLS_DTPREL): This.
24846         (R_AARCH64_TLS_TPREL64): Rename to ...
24847         (R_AARCH64_TLS_TPREL): This.
24848         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24849         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24850         R_AARCH64_TLS_TPREL64.
24851         (elf_machine_rela): Likewise.
24852
24853 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24854
24855         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24856         by setting it to 0.  64b atomics are not supported currently.
24857
24858 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24859
24860         [BZ #16469]
24861         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24862         search domain names.
24863
24864 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24865
24866         [BZ #16469]
24867         * NEWS: Update.
24868         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24869         trailing dot.
24870         * posix/tst-getaddrinfo5.c: New.
24871         * posix/Makefile (tests): Add it.
24872
24873 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24874
24875         [BZ #14498]
24876         * NEWS: Fixed.
24877         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24878         after parsing line but before break_if_match.
24879         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24880         if there is a protocol mismatch.
24881
24882 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24883
24884         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24885         because the potential race is on the user-supplied stream.
24886
24887 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24888
24889         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24890         string literal if not passed a buffer.
24891         * manual/job.texi (ctermid): Update reasoning, note deviation
24892         from posix, suggest mtasurace when not passed a buffer, for
24893         future non-preliminary safety notes.
24894
24895 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24896
24897         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24898         of not passing it a buffer.
24899         Reported by Peng Haitao.
24900
24901 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24902
24903         * manual/Makefile ($(objpfx)stamp-summary): Require
24904         check-safety.sh to pass.
24905         * manual/check-safety.sh: Wish for verification that every
24906         @deftypefn and @deftypefun is followed by a @safety remark.
24907
24908 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24909
24910         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24911
24912         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24913         PTHREAD_CANCEL_ASYNCHRONOUS.
24914         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24915         send SIGCANCEL.
24916
24917         * nptl/default-sched.h: New file.
24918         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24919         * nptl/pthread_create.c: Include it.
24920         (__pthread_create_2_1): Use collect_default_sched instead of making
24921         Linux syscalls here directly.
24922
24923 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24924
24925         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24926         __pthread_once): Use C11 atomics.
24927
24928 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24929
24930         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24931
24932 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24933
24934         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24935         atomic_thread_fence_acquire, atomic_thread_fence_release,
24936         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24937         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24938         atomic_compare_exchange_weak_relaxed,
24939         atomic_compare_exchange_weak_acquire,
24940         atomic_compare_exchange_weak_release,
24941         atomic_exchange_acquire, atomic_exchange_release,
24942         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24943         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24944         atomic_fetch_and_acquire,
24945         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24946
24947 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24948
24949         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24950         USE_ATOMIC_COMPILER_BUILTINS): Define.
24951         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24952         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24953         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24954         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24955         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24956         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24957         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24958         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24959         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24960         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24961         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24962         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24963         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24964         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24965         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24966         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24967         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24968         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24969         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24970         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24971         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24972         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24973         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24974         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24975         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24976         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24977         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24978         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24979         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24980         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24981         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24982         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24983         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24984         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24985         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24986         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24987         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24988         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24989         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24990         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24991
24992 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24993
24994         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24995         the sched_priority value here.  It was already checked when the user
24996         called pthread_attr_setschedparam.
24997
24998         * nptl/tst-bad-schedattr.c: New file.
24999         * nptl/Makefile (tests): Add it.
25000
25001 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
25002             Florian Weimer  <fweimer@redhat.com>
25003             Joseph Myers  <joseph@codesourcery.com>
25004             Adam Conrad  <adconrad@0c3.net>
25005             Andreas Schwab  <schwab@suse.de>
25006             Brooks  <bmoses@google.com>
25007
25008         [BZ #17625]
25009         * wordexp-test.c (__dso_handle): Add prototype.
25010         (__register_atfork): Likewise.
25011         (__app_register_atfork): New function.
25012         (registered_forks): New global.
25013         (register_fork): New function.
25014         (test_case): Add 3 new tests for WRDE_CMDSUB.
25015         (main): Call __app_register_atfork.
25016         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
25017         fork count is non-zero fail the test.
25018         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
25019         is set.
25020         (parse_dollars): Remove check for WRDE_NOCMD.
25021         (parse_dquote): Likewise.
25022
25023 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25024
25025         * Makeconfig (built-modules): List non-library modules to be
25026         built.
25027         (module-cppflags): Include libc-modules.h for
25028         everything except shlib-versions.v.i.
25029         (CPPFLAGS): Use it.
25030         (before-compile): Add libc-modules.h.
25031         ($(common-objpfx)libc-modules.h,
25032         $(common-objpfx)libc-modules.stmp): New targets.
25033         (common-generated): Add libc-modules.h and libc-modules.stmp.
25034         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
25035         * include/libc-symbols.h: Don't include libc-modules.h.
25036         * include/libc-modules.h: Remove file.
25037         * scripts/gen-libc-modules.awk: New script to generate
25038         libc-modules.h.
25039         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
25040         Depend on libc-modules.stmp.
25041
25042         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
25043
25044         * Makeconfig (in-module): Get value of libof set for the
25045         translation unit.
25046         (CPPFLAGS): Use $(in-module).
25047         * Makerules: Don't suffix routine names for nonlib.
25048         * include/libc-modules.h: New file.
25049         * include/libc-symbols.h: Include libc-modules.h
25050         (IS_IN): New macro to replace IS_IN_* macros.
25051         * elf/Makefile: Set libof-* for each routine.
25052         * elf/rtld-Rules: Likewise.
25053         * extra-modules.mk: Likewise.
25054         * iconv/Makefile: Likewise.
25055         * iconvdata/Makefile: Likewise.
25056         * locale/Makefile: Likewise.
25057         * malloc/Makefile: Likewise.
25058         * nss/Makefile: Likewise.
25059         * sysdeps/gnu/Makefile: Likewise.
25060         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
25061         * sysdeps/unix/sysv/linux/Makefile: Likewise.
25062         * sysdeps/s390/s390-64/Makefile: Likewise.
25063         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
25064         CPPFLAGS for nscd instead of nonlib.
25065
25066 2014-11-18  Roland McGrath  <roland@hack.frob.com>
25067
25068         * nptl/createthread.c: New file.
25069
25070         * nptl/createthread.c: Moved ...
25071         * sysdeps/unix/sysv/linux/createthread.c: ... here.
25072
25073         * nptl/createthread.c: Add proper top-line comment.
25074         (do_clone): Folded into ...
25075         (create_thread): ... here.  Take new arguments STOPPED_START and
25076         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
25077         increment __nptl_threads, do event-reporting logic, do
25078         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
25079         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
25080         resource cleanup if sched_setaffinity or sched_setscheduler fails,
25081         just send SIGCANCEL.
25082         * nptl/pthread_create.c: Forward-declare create_thread before
25083         including createthread.c.
25084         (start_thread): Use new macro START_THREAD_DEFN to replace defining
25085         declaration, and new macro START_THREAD_SELF to replace argument.
25086         Remove return statement.
25087         (report_thread_creation): New function.
25088         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
25089         synchronization logic, and __nptl_nthreads increment here, around
25090         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
25091         PD->parent_cancelhandling here, before create_thread.  When
25092         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
25093         __deallocate_stack, and ENOMEM translation here.
25094
25095 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
25096
25097         [BZ #17616]
25098         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
25099         (mptwo): Rename to __mptwo.
25100         (__inv): Use __mptwo instead of mptwo.
25101         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
25102         (mptwo): Rename to __mptwo.
25103         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
25104         of mpone and __mptwo instead of mptwo.
25105         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
25106         instead of mpone.
25107         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25108         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
25109         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
25110         of mpone and __mptwo instead of mptwo.
25111         (__mpranred): Use __mpone instead of mpone.
25112         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
25113         variable.
25114         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25115         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25116         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25117         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25118         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25119         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25120         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25121         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25122         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25123         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25124         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25125         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25126         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25127         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25128         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25129         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25130         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25131         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25132         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25133
25134 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25135
25136         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25137         replace BSD Handler xref with BSD Signal Handling.
25138
25139 2014-11-17  Richard Henderson  <rth@redhat.com>
25140
25141         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25142         (_FP_PACK_RAW_2): Remove.
25143         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25144         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25145         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25146         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25147         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25148         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25149         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25150         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25151         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25152         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25153         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25154         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25155         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25156         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25157         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25158         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25159
25160 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25161
25162         * signal/signal.h [__USE_MISC]
25163         (struct sigvec): Remove type.
25164         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25165         (sigvec): Remove declaration.
25166         * sysdeps/posix/sigvec.c: Moved ...
25167         * signal/sigvec.c: ... here, replacing old file.
25168         (struct sigvec): New type, copied from old signal.h definition.
25169         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25170         (__sigvec): Convert definition to prototype.
25171         (sigvec): Replace weak_alias with compat_symbol.
25172         * signal/Versions (libc: GLIBC_2.21): New version set.
25173         * include/signal.h: Remove __sigvec declaration.
25174         * sysdeps/unix/bsd/sigvec.c: Remove file.
25175         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25176         * manual/signal.texi (BSD Handler): Remove subsection.
25177         Move siginterrupt up to ...
25178         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25179         (Blocking in BSD): Fold subsection into its parent.
25180         * NEWS: Mention sigvec removal.
25181
25182 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25183
25184         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25185         (DLA_FMS): Make definition conditional only on [__FMA4__].
25186         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25187         definition.
25188
25189         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25190         Make definition conditional only on [PROF].
25191         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25192         definition.
25193         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25194         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25195
25196         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25197         !__GNUC__].
25198         * include/signal.h (__sigpause): Move declaration above call to
25199         libc_hidden_proto.
25200         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25201         variable.
25202         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25203         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25204
25205 2014-11-14  David S. Miller  <davem@davemloft.net>
25206
25207         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25208         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25209
25210 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25211
25212         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25213         * configure: Regenerated.
25214         * manual/install.texi (Tools for Compilation): Document a
25215         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25216         compiler verified to work.
25217         * INSTALL: Regenerated.
25218
25219         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25220         redeclare with asm name.
25221         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25222         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25223         including <string.h>.
25224         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25225         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25226         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25227         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25228         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25229         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25230         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25231
25232 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25233
25234         * stdlib/strtol.c (__strtol): Use prototype definition.
25235
25236         [BZ #17594]
25237         * stdlib/strtol.c (SYM__): New macro.
25238         (SYM__1): Likewise.
25239         (__strtol): Likewise.
25240         (strtol): Rename to __strtol and define as weak alias of
25241         __strtol.  Use libc_hidden_weak.
25242
25243 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25244
25245         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25246         Use numbered labels in inline assembly.
25247
25248 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25249
25250         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25251         Add setjmp LIBC_PROBE.
25252         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25253         Likewise.
25254         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25255         Add longjmp, longjmp_target LIBC_PROBE.
25256         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25257         Likewise.
25258
25259 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25260
25261         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25262         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25263         to get rid of unused variable warning.
25264
25265 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25266
25267         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25268         Check for unwind_backtrace ==  NULL only in SHARED case.
25269         (__backchain_backtrace): Compile only in SHARED case.
25270         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25271         Likewise.
25272         (__backchain_backtrace): Declare as static.
25273
25274 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25275
25276         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25277         (__libc_multiple_threads_ptr): Variable moved ...
25278         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25279
25280 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25281
25282         * conform/GlibcConform.pm: New file.
25283         * conform/conformtest.pl: Use GlibcConform module.
25284         * conform/linknamespace.pl: New file.
25285         * conform/list-header-symbols.pl: Likewise.
25286         * conform/Makefile (linknamespace-symlists-base): New variable.
25287         (linknamespace-symlists-tests): Likewise.
25288         (linknamespace-header-base): Likewise.
25289         (linknamespace-header-tests): Likewise.
25290         (tests-special): Add new tests.
25291         ($(linknamespace-symlists-tests)): New rule.
25292         (linknamespace-libs): New variable.
25293         ($(objpfx)symlist-stdlibs): New rule.
25294         ($(linknamespace-header-tests)): Likewise.
25295         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25296         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25297         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25298         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25299         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25300         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25301         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25302         (test-xfail-ISO/math.h/linknamespace): Likewise.
25303         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25304         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25305         (test-xfail-ISO/time.h/linknamespace): Likewise.
25306         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25307         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25308         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25309         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25310         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25311         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25312         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25313         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25314         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25315         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25316         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25317         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25318         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25319         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25320         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25321         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25322         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25323         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25324         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25325         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25326         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25327         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25328         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25329         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25330         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25331         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25332         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25333         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25334         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25335         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25336         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25337         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25338         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25339         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25340         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25341         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25342         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25343         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25344         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25345         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25346         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25347         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25348         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25349         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25350         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25351         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25352         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25353         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25354         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25355         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25356         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25357         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25358         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25359         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25360         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25361         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25362         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25363         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25364         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25365         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25366         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25367         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25368         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25369         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25370         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25371         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25372         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25373         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25374         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25375         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25376         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25377         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25378         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25379         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25380         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25381         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25382         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25383         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25384         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25385         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25386         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25387         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25388         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25389         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25390         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25391         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25392         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25393         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25394         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25395         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25396         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25397         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25398         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25399         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25400         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25401         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25402         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25403         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25404         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25405         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25406         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25407         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25408         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25409         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25410         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25411         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25412         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25413         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25414         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25415         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25416         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25417         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25418         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25419         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25420         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25421         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25422         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25423         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25424         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25425         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25426         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25427         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25428         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25429         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25430         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25431         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25432         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25433         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25434         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25435         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25436         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25437         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25438         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25439         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25440         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25441         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25442         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25443         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25444         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25445         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25446         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25447         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25448         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25449         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25450         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25451         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25452         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25453         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25454         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25455         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25456
25457         [BZ #17589]
25458         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25459         of fgets_unlocked.
25460
25461         [BZ #17585]
25462         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25463         (memmem): Rename to __memmem and define as weak alias of
25464         __memmem.  Use libc_hidden_weak.
25465         (__memmem): Use libc_hidden_def.
25466         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25467         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25468         memmem.
25469
25470         [BZ #17582]
25471         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25472         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25473         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25474         and define as weak alias of __fgets_unlocked.  Use
25475         libc_hidden_weak.
25476         (__fgets_unlocked): Use libc_hidden_def.
25477         * include/stdio.h (__fgets_unlocked): Declare.  Use
25478         libc_hidden_proto.
25479         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25480         __fgets_unlocked instead of fgets_unlocked.
25481         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25482         (GET_NPROCS_CONF_PARSER): Likewise.
25483         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25484         (GET_NPROCS_CONF_PARSER): Likewise.
25485
25486         [BZ #17574]
25487         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25488         weak alias of __wmemset.  Use libc_hidden_weak.
25489         (__wmemset): Use libc_hidden_def.
25490         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25491         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25492         of wmemset.
25493
25494         [BZ #17573]
25495         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25496         with asm name __mempcpy.
25497         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25498
25499         [BZ #17572]
25500         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25501         and define as weak alias of __rawmemchr.
25502         (__rawmemchr): Do not define as strong alias of rawmemchr.
25503
25504         [BZ #17571]
25505         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25506         alias of __qsort_r.
25507         (qsort): Call __qsort_r instead of qsort_r.
25508         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25509         (__qsort_r): Declare.  Call libc_hidden_proto.
25510         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25511         instead of qsort_r.
25512         * nscd/gai.c (__qsort_r): Define to qsort_r.
25513         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25514         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25515         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25516
25517         [BZ #17570]
25518         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25519         define as weak alias of __malloc_info.
25520
25521         [BZ #17584]
25522         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25523         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25524         (__rewinddir): Use libc_hidden_def.
25525         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25526         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25527         (__rewinddir): Use libc_hidden_def.
25528         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25529         weak alias of __rewinddir.  Don't use libc_hidden_def.
25530         (__rewinddir): Use libc_hidden_def.
25531         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25532         (__rewinddir): Use libc_hidden_proto.
25533         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25534         rewinddir.
25535         (__getcwd): Use __rewinddir instead of rewinddir.
25536
25537         [BZ #17583]
25538         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25539         alias of __fileno.  Use libc_hidden_weak.
25540         (__fileno): Use libc_hidden_def.
25541         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25542         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25543         alias of __ftello.
25544         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25545         __ftello.
25546         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25547         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25548         libc_hidden_def.
25549         (fread_unlocked): Don't use libc_hidden_ver.
25550         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25551         and define as weak alias of __fread_unlocked.  Don't use
25552         libc_hidden_def.
25553         (__fread_unlocked): Use libc_hidden_def.
25554         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25555         (ftello): Don't use libc_hidden_proto.
25556         (__ftello): Declare.  Use libc_hidden_proto.
25557         (fread_unlocked): Don't use libc_hidden_proto.
25558         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25559         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25560         and __ftello instead of fileno, fread_unlocked and ftello.
25561
25562 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25563
25564         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25565         GOT12.
25566         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25567         Likewise.
25568         (_dl_start_user): Likewise.
25569         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25570
25571 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25572             Siddhesh Poyarekar  <siddhesh@redhat.com>
25573
25574         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25575         Move argv and envp down instead of moving argc up.
25576         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25577
25578 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25579
25580         [BZ #17506]
25581         * test-skeleton.c (main): Return successful if one of
25582         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25583         * string/tst-strcoll-overflow.c: Define expected status.
25584
25585 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25586
25587         [BZ #17475]
25588         * locale/iso-639.def: Define Bhili and Tulu language codes.
25589
25590 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25591
25592         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25593
25594 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25595
25596         [BZ #17555]
25597         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25598
25599 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25600
25601         * configure.ac: Updated check of minimal required version to
25602         2.22.
25603         * manual/install.texi (Tools for Compilation): Updated version
25604         number.
25605         * configure: Regenerated.
25606         * INSTALL: Likewise.
25607
25608 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25609
25610         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25611         __tls_get_addr.
25612
25613 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25614
25615         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25616         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25617         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25618         libc_hidden_weak.
25619         (waitpid): Define as alias of __waitpid.
25620         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25621         __waitpid.
25622         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25623         libc_hidden_weak.
25624         (waitpid): Define as alias of __waitpid.
25625         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25626         __libc_waitpid alias.
25627         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25628         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25629         Likewise.
25630         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25631         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25632         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25633         alias.
25634         * sysdeps/unix/sysv/linux/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
25640 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25641
25642         * manual/llio.texi: Add comment that write safety has been
25643         fixed in Linux.
25644
25645         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25646         (localplt-build-dso): Add elf/ld.so.
25647         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25648         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25649         and free for ld.so.
25650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25651         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25653         Likewise.
25654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25655         Likewise.
25656         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25657         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25658         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25659         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25660         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25661         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25662         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25663         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25664         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25665         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25666         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25667
25668 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25669
25670         [BZ #14132]
25671         * include/libc-symbols.h (INTUSE): Remove macro.
25672         (INTDEF): Likewise.
25673         (INTVARDEF): Likewise.
25674         (_INTVARDEF): Likewise.
25675         (INTDEF2): Likewise.
25676         (INTVARDEF2): Likewise.
25677         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25678         rtld_hidden_def instead of INTVARDEF.
25679         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25680         (_dl_starting_up_internal): Remove declaration.
25681         (_dl_starting_up): Use rtld_hidden_proto.
25682         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25683         declaration.
25684         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25685         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25686         _dl_starting_up.
25687         * elf/dl-writev.h (_dl_writev): Likewise.
25688         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25689         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25690         _dl_starting_up_internal.
25691
25692 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25693
25694         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25695         test-skeleton.c.
25696
25697 2014-11-05  Will Newton  <will.newton@linaro.org>
25698
25699         * benchtests/Makefile: (bench-malloc): Add malloc thread
25700         scalability benchmark.
25701         * benchtests/bench-malloc-threads.c: New file.
25702
25703 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25704
25705         * sysdeps/aarch64/strchrnul.S: New file.
25706
25707 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25708
25709         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25710         definition.
25711         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25712         Likwise.
25713         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25714         Likewise.
25715         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25716         Likewise.
25717         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25718         Likewise.
25719         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25720         Likewise.
25721
25722 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25723
25724         * catgets/test-gencat.c: Use test-skeleton.c.
25725         * catgets/tst-catgets.c: Likewise.
25726         * csu/tst-empty.c: Likewise.
25727         * elf/tst-audit2.c: Likewise.
25728         * elf/tst-global1.c: Likewise.
25729         * elf/tst-pathopt.c: Likewise.
25730         * elf/tst-piemod1.c: Likewise.
25731         * elf/tst-tls10.c: Likewise.
25732         * elf/tst-tls11.c: Likewise.
25733         * elf/tst-tls12.c: Likewise.
25734         * gnulib/tst-gcc.c: Likewise.
25735         * iconvdata/tst-e2big.c: Likewise.
25736         * iconvdata/tst-loading.c: Likewise.
25737         * iconv/tst-iconv1.c: Likewise.
25738         * iconv/tst-iconv2.c: Likewise.
25739         * inet/test-inet6_opt.c: Likewise.
25740         * inet/tst-gethnm.c: Likewise.
25741         * inet/tst-network.c: Likewise.
25742         * inet/tst-ntoa.c: Likewise.
25743         * intl/tst-codeset.c: Likewise.
25744         * intl/tst-gettext2.c: Likewise.
25745         * intl/tst-gettext3.c: Likewise.
25746         * intl/tst-ngettext.c: Likewise.
25747         * intl/tst-translit.c: Likewise.
25748         * io/test-stat.c: Likewise.
25749         * libio/test-fmemopen.c: Likewise.
25750         * libio/tst-freopen.c: Likewise.
25751         * libio/tst-sscanf.c: Likewise.
25752         * libio/tst-ungetwc1.c: Likewise.
25753         * libio/tst-ungetwc2.c: Likewise.
25754         * libio/tst-widetext.c: Likewise.
25755         * localedata/tst-ctype.c: Likewise.
25756         * localedata/tst-digits.c: Likewise.
25757         * localedata/tst-leaks.c: Likewise.
25758         * localedata/tst-mbswcs1.c: Likewise.
25759         * localedata/tst-mbswcs2.c: Likewise.
25760         * localedata/tst-mbswcs3.c: Likewise.
25761         * localedata/tst-mbswcs4.c: Likewise.
25762         * localedata/tst-mbswcs5.c: Likewise.
25763         * localedata/tst-setlocale.c: Likewise.
25764         * localedata/tst-trans.c: Likewise.
25765         * localedata/tst-wctype.c: Likewise.
25766         * localedata/tst-xlocale1.c: Likewise.
25767         * login/tst-grantpt.c: Likewise.
25768         * malloc/tst-calloc.c: Likewise.
25769         * malloc/tst-malloc.c: Likewise.
25770         * malloc/tst-mallocstate.c: Likewise.
25771         * malloc/tst-mcheck.c: Likewise.
25772         * malloc/tst-mtrace.c: Likewise.
25773         * malloc/tst-obstack.c: Likewise.
25774         * math/atest-exp2.c: Likewise.
25775         * math/atest-exp.c: Likewise.
25776         * math/atest-sincos.c: Likewise.
25777         * math/test-matherr.c: Likewise.
25778         * math/test-misc.c: Likewise.
25779         * math/test-powl.c: Likewise.
25780         * math/tst-definitions.c: Likewise.
25781         * misc/tst-dirname.c: Likewise.
25782         * misc/tst-efgcvt.c: Likewise.
25783         * misc/tst-fdset.c: Likewise.
25784         * misc/tst-hsearch.c: Likewise.
25785         * misc/tst-mntent2.c: Likewise.
25786         * nptl/tst-sem7.c: Likewise.
25787         * nptl/tst-sem8.c: Likewise.
25788         * nptl/tst-sem9.c: Likewise.
25789         * nss/test-netdb.c: Likewise.
25790         * posix/tst-fnmatch.c: Likewise.
25791         * posix/tst-getlogin.c: Likewise.
25792         * posix/tst-gnuglob.c: Likewise.
25793         * posix/tst-mmap.c: Likewise.
25794         * pwd/tst-getpw.c: Likewise.
25795         * resolv/tst-inet_ntop.c: Likewise.
25796         * rt/tst-timer.c: Likewise.
25797         * stdio-common/test-fseek.c: Likewise.
25798         * stdio-common/test-popen.c: Likewise.
25799         * stdio-common/test-vfprintf.c: Likewise.
25800         * stdio-common/tst-cookie.c: Likewise.
25801         * stdio-common/tst-fileno.c: Likewise.
25802         * stdio-common/tst-gets.c: Likewise.
25803         * stdio-common/tst-obprintf.c: Likewise.
25804         * stdio-common/tst-perror.c: Likewise.
25805         * stdio-common/tst-sprintf2.c: Likewise.
25806         * stdio-common/tst-sprintf3.c: Likewise.
25807         * stdio-common/tst-sprintf.c: Likewise.
25808         * stdio-common/tst-swprintf.c: Likewise.
25809         * stdio-common/tst-tmpnam.c: Likewise.
25810         * stdio-common/tst-unbputc.c: Likewise.
25811         * stdio-common/tst-wc-printf.c: Likewise.
25812         * stdlib/tst-environ.c: Likewise.
25813         * stdlib/tst-fmtmsg.c: Likewise.
25814         * stdlib/tst-limits.c: Likewise.
25815         * stdlib/tst-rand48-2.c: Likewise.
25816         * stdlib/tst-rand48.c: Likewise.
25817         * stdlib/tst-random2.c: Likewise.
25818         * stdlib/tst-random.c: Likewise.
25819         * stdlib/tst-strtol.c: Likewise.
25820         * stdlib/tst-strtoll.c: Likewise.
25821         * stdlib/tst-tls-atexit.c: Likewise.
25822         * stdlib/tst-xpg-basename.c: Likewise.
25823         * string/test-ffs.c: Likewise.
25824         * string/tst-bswap.c: Likewise.
25825         * string/tst-inlcall.c: Likewise.
25826         * string/tst-strtok.c: Likewise.
25827         * string/tst-strxfrm.c: Likewise.
25828         * sysdeps/x86_64/tst-audit10.c: Likewise.
25829         * sysdeps/x86_64/tst-audit3.c: Likewise.
25830         * sysdeps/x86_64/tst-audit4.c: Likewise.
25831         * sysdeps/x86_64/tst-audit5.c: Likewise.
25832         * time/tst-ftime_l.c: Likewise.
25833         * time/tst-getdate.c: Likewise.
25834         * time/tst-mktime3.c: Likewise.
25835         * time/tst-mktime.c: Likewise.
25836         * time/tst-posixtz.c: Likewise.
25837         * time/tst-strptime2.c: Likewise.
25838         * time/tst-strptime3.c: Likewise.
25839         * wcsmbs/tst-btowc.c: Likewise.
25840         * wcsmbs/tst-mbrtowc.c: Likewise.
25841         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25842         * wcsmbs/tst-wchar-h.c: Likewise.
25843         * wcsmbs/tst-wcpncpy.c: Likewise.
25844         * wcsmbs/tst-wcrtomb.c: Likewise.
25845         * wcsmbs/tst-wcsnlen.c: Likewise.
25846         * wcsmbs/tst-wcstof.c: Likewise.
25847
25848 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25849
25850         [BZ #14132]
25851         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25852         INTDEF.
25853         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25854         declaration.
25855         (_dl_mcount): Use rtld_hidden_proto.
25856         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25857         _dl_mcount.
25858         * elf/rtld.c (_rtld_global_ro): Likewise.
25859
25860         [BZ #14132]
25861         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25862         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25863         of _dl_init_internal.
25864         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25865         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25866         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25867         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25868         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25869         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25870         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25871         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25872         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25873         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25874         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25875         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25876         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25877         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25878         * sysdeps/tile/dl-start.S (_start): Likewise.
25879         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25880         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25881
25882         [BZ #14132]
25883         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25884         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25885         (rtld_progname): Make macro definition unconditional.
25886         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25887         INTDEF.
25888         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25889         (dl_main): Likewise.
25890         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25891         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25892         instead of _dl_argv_internal.
25893         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25894         __GI__dl_argv instead of INTUSE(_dl_argv).
25895         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25896         __GI__dl_argv instead of _dl_argv_internal.
25897
25898         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25899         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25900         macro.
25901         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25902         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25903         New macro.
25904         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25905         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25906         macro.
25907         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25908         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25909
25910 2014-11-04  Andreas Schwab  <schwab@suse.de>
25911
25912         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25913
25914 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25915
25916         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25917         mtvsrd instruction in binary form.
25918
25919 2014-11-03  Andreas Schwab  <schwab@suse.de>
25920
25921         [BZ #17522]
25922         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25923         for less than MB_LEN_MAX use a local buffer of that size.
25924         * libio/tst-fputws.c: New file.
25925         * libio/Makefile (tests): Add tst-fputws.
25926
25927 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25928
25929         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25930         the size of the fpu_fr.fpu_dregs[] array.
25931
25932 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25933
25934         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25935         (__nanosleep): Do not define as alias.
25936         (nanosleep): Define as alias of __nanosleep.
25937         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25938         __libc_nanosleep name.
25939
25940 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25941
25942         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25943         install.texi in comment.
25944
25945 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25946
25947         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25948         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25949         ... add here and use lwsync or sync ...
25950         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25951         ... and add here using lwsync.
25952
25953 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25954
25955         * elf/dl-machine-reject-phdr.h: New file.
25956         * elf/dl-load.c: #include that.
25957         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25958         if that returned true.
25959
25960 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25961
25962         [BZ #17496]
25963         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25964         gen-as-const-headers chunk.  Add a big scare comment after the last
25965         safe place to touch before-compile.
25966
25967 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25968
25969         * manual/install.texi (Tools for Compilation): Update autoconf
25970         version requirements.
25971         * INSTALL: Regenerated.
25972
25973         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25974         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25975         (__libc_pselect): Likewise.
25976
25977         [BZ #14138]
25978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25982
25983 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25984
25985         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25986         correct barrier instruction.
25987         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25988         Likewise.
25989         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25990         Likewise.
25991
25992 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25993
25994         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25995         after defining inlines.  Instead, just use parens to defeat macro
25996         expansion of __isctype in its declaration.
25997
25998 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25999
26000         * include/sys/uio.h (__libc_readv): Remove declaration.
26001         (__libc_writev): Likewise.
26002         * misc/readv.c (__libc_readv): Rename to __readv.
26003         (__readv): Do not define as alias.
26004         (readv): Define as alias of __readv.
26005         * misc/writev.c (__libc_writev): Rename to __writev.
26006         (__writev): Do not define as alias.
26007         (writev): Define as alias of __writev.
26008         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
26009         (__readv): Do not define as alias.
26010         (readv): Define unconditionally as alias of __readv.
26011         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
26012         (__writev): Do not define as alias.
26013         (writev): Define unconditionally as alias of __writev.
26014         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
26015         name.
26016         (writev): Do not define __libc_writev name.
26017
26018 2014-10-30  Roland McGrath  <roland@hack.frob.com>
26019
26020         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
26021         (convert_charseq): New function, broken out of ...
26022         (use_from_charmap): ... here.  Call it.
26023         (use_to_charmap): Use convert_charseq and free instead of duplicating
26024         its code with a variable-length stack struct.
26025
26026 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
26027
26028         * include/fcntl.h (__libc_creat): Remove declaration.
26029         * io/creat.c (__libc_creat): Rename to creat.
26030         (creat): Do not define as alias.
26031         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
26032         of creat instead of __libc_creat.
26033         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
26034         to creat.
26035         (creat): Do not define as alias.
26036         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
26037         __libc_creat.
26038         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
26039         __libc_creat name.
26040         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
26041         Likewise.
26042
26043 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
26044
26045         * manual/llio.texi: Add comments discussing why write() may be
26046         considered MT-unsafe on Linux.
26047
26048 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
26049
26050         * dl-load.c (local_strdup): Remove.
26051         (expand_dynamic_string_token): Use __strdup.
26052         (decompose_rpath): Likewise.
26053         (_dl_map_object): Likewise.
26054
26055 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
26056
26057         [BZ #14132]
26058         * sysdeps/generic/unwind-dw2-fde.c
26059         (__register_frame_info_bases_internal): Do not declare.
26060         (__register_frame_info_table_bases_internal): Likewise.
26061         (__deregister_frame_info_bases_internal): Likewise.
26062         (__register_frame_info_bases): Declare and use hidden_proto before
26063         definition.  Use hidden_def instead of INTDEF.
26064         (__register_frame_info_table_bases): Likewise.
26065         (__deregister_frame_info_bases): Likewise.
26066         (__register_frame_info): Do not use INTUSE.
26067         (__register_frame): Likewise.
26068         (__register_frame_info_table): Likewise.
26069         (__register_frame_table): Likewise.
26070         (__deregister_frame_info): Likewise.
26071         (__deregister_frame): Likewise.
26072
26073 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
26074
26075         * sysdeps/unix/sysv/linux/arm/kernel-features.h
26076         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
26077         not undefine.
26078         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
26079         Likewise.
26080         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
26081         Likewise.
26082
26083 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
26084
26085         [BZ #14138]
26086         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
26087         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
26088         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
26089         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
26090         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
26091         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
26092         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
26093         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
26094         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
26095         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
26096         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
26097         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
26098         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
26099         syscall.
26100         (setfsuid): Likewise.
26101         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
26102         (setfsuid): Likewise.
26103         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
26104         (setfsuid): Likewise.
26105         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
26106         Likewise.
26107         (setfsuid): Likewise.
26108         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
26109         (setfsuid): Likewise.
26110         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
26111         Likewise.
26112         (setfsuid): Likewise.
26113
26114 2014-10-27  Andreas Schwab  <schwab@suse.de>
26115
26116         [BZ #17501]
26117         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
26118         check for Slow_SSE4_2 feature bit.
26119         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
26120         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
26121         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
26122         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
26123
26124 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26125
26126         * configure.ac: Validate compiler version with a empirical test of
26127         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26128         $CC -v output.
26129         * configure: Regenerated.
26130
26131         * inet/htons.c (htons): Prototypify.
26132         * inet/htonl.c (htonl): Likewise.
26133
26134 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26135
26136         * string/strncat.c (strncat): Improve performance by using strlen.
26137
26138 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26139
26140         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26141
26142 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26143
26144         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26145         Call libc_fetestexcept_aarch64.
26146
26147 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26148
26149         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26150         Call libc_feholdexcept_aarch64.
26151
26152 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26153
26154         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26155         Call get_rounding_mode.
26156
26157 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26158
26159         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26160         Simplify logic.
26161
26162 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26163
26164         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26165         Simplify logic.
26166
26167 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26168
26169         [BZ #14138]
26170         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26171         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26172         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26173         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26174         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26175         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26176         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26177         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26178         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26179         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26180         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26181         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26182         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26183         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26184         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26185         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26186         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26187         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26188         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26189         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26190         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26191         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26192         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26193         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26194         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26195         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26196         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26197         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26198         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26199         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26200         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26201         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26202         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26203         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26204         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26205         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26206         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26207         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26208         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26209         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26210         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26211         syscall.
26212         (geteuid): Likewise.
26213         (getgid): Likewise.
26214         (getuid): Likewise.
26215         (getresgid): Likewise.
26216         (getresuid): Likewise.
26217         (getgroups): Likewise.
26218         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26219         (geteuid): Likewise.
26220         (getgid): Likewise.
26221         (getuid): Likewise.
26222         (getresgid): Likewise.
26223         (getresuid): Likewise.
26224         (getgroups): Likewise.
26225         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26226         (geteuid): Likewise.
26227         (getgid): Likewise.
26228         (getuid): Likewise.
26229         (getresgid): Likewise.
26230         (getresuid): Likewise.
26231         (getgroups): Likewise.
26232         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26233         Likewise.
26234         (geteuid): Likewise.
26235         (getgid): Likewise.
26236         (getuid): Likewise.
26237         (getresgid): Likewise.
26238         (getresuid): Likewise.
26239         (getgroups): Likewise.
26240         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26241         (geteuid): Likewise.
26242         (getgid): Likewise.
26243         (getuid): Likewise.
26244         (getresgid): Likewise.
26245         (getresuid): Likewise.
26246         (getgroups): Likewise.
26247         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26248         Likewise.
26249         (geteuid): Likewise.
26250         (getgid): Likewise.
26251         (getuid): Likewise.
26252         (getgroups): Likewise.
26253
26254         [BZ #14138]
26255         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26256         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26257         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26258         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26259         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26260         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26261         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26262         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26263         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26264         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26265         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26266         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26267         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26268         __chown.
26269         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26270         (lchown): Likewise.
26271         (fchown): Likewise.
26272         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26273         Likewise.
26274         (lchown): Likewise.
26275         (fchown): Likewise.
26276         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26277         (lchown): Likewise.
26278         (fchown): Likewise.
26279         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26280         Likewise.
26281         (lchown): Likewise.
26282         (fchown): Likewise.
26283
26284 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26285
26286         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26287         Simplify logic.
26288
26289 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26290
26291         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26292         Cleanup logic.
26293
26294 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26295
26296         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26297         Remove unused include.
26298
26299 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26300
26301         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26302         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26303         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26304         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26305
26306 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26307             Helge Deller <deller@gmx.de>
26308
26309         [BZ #17508]
26310         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26311         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26312         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26313
26314 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26315
26316         [BZ #14132]
26317         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26318         Remove macro definition.
26319         (__ashrdi3_v_glibc20): Likewise.
26320         (__lshrdi3_v_glibc20): Likewise.
26321         (__cmpdi2_v_glibc20): Likewise.
26322         (__ucmpdi2_v_glibc20): Likewise.
26323         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26324         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26325         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26326         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26327         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26328         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26329
26330 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26331
26332         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26333         old GNU extension [0] syntax.
26334         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26335         alloca rather than an array member with variable length.
26336         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26337         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26338         (parse_opt): ... here.  Likewise use alloca there.
26339         Validate the -i argument before checking for rootness.
26340         (send_shutdown): New function, broken out of ...
26341         (parse_opt): ... here.
26342
26343 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26344
26345         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26346         macro to get at the _rt_local_ro field.
26347         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26348         ([PIC] case) or _dl_hwcap ([!PIC] case).
26349         * sysdeps/arm/setjmp.S: Likewise.
26350
26351         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26352         * sysdeps/arm/configure.ac: New check to define it.
26353         * sysdeps/arm/configure: Regenerated.
26354         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26355         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26356         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26357         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26358         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26359         Use move/movt pair instead of a load.
26360         (LDST_GLOBAL): Macro removed.
26361         (LDR_GLOBAL): New macro replaces it.
26362         (LDR_HIDDEN): New macro.
26363         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26364         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26365
26366         * setjmp/tst-setjmp-static.c: New file.
26367         * setjmp/Makefile (tests): Add it.
26368         (tests-static): New variable.
26369
26370 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26371
26372         [BZ #17485]
26373         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26374
26375 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26376
26377         [BZ #14132]
26378         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26379
26380 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26381
26382         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26383
26384 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26385
26386         * io/fts.c (dirent_not_directory): New function.
26387         (fts_build): Call it.
26388
26389 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26390
26391         * nptl/version.c (__nptl_main): Use normal __write rather than
26392         INTERNAL_SYSCALL.
26393         (banner): Update copyright years.
26394
26395         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26396         gettimeofday.
26397         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26398         * nptl/pthread_cond_timedwait.c: Likewise.
26399         * nptl/pthread_mutex_timedlock.c: Likewise.
26400         * nptl/sem_timedwait.c: Likewise.
26401
26402         * sysdeps/nptl/bits/libc-lock.h
26403         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26404         (__libc_lock_init_recursive): Return void, not 0.
26405         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26406         (__libc_rwlock_init): Likewise.
26407         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26408
26409 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26410
26411         [BZ #15215]
26412         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26413         (__pthread_once_slow): ... here.
26414         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26415         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26416
26417 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26418
26419         [BZ #15215]
26420         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26421         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26422         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26423         * nptl/pthread_once.c (__pthread_once): Likewise.
26424         Update comments.
26425
26426 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26427
26428         [BZ #14138]
26429         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26430         name.
26431         (writev): Use __libc_writev as strong name.
26432         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26433         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26434
26435 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26436
26437         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26438
26439         * sysdeps/i386/nptl/tls.h
26440         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26441         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26442         New macros.
26443         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26444         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26445         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26446         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26447         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26448         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26449
26450         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26451         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26452         on [__NR_futex].
26453         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26454         broken out of ...
26455         (__pthread_mutex_init): ... here.  Call it.
26456         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26457         Conditionalize PI cases on [__NR_futex].
26458         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26459         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26460         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26461
26462         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26463         conditional on [SIGSETXID].
26464         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26465         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26466         is defined.  Likewise for SIGSETXID.
26467         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26468         Conditionalize definitions on [SIGSETXID].
26469         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26470         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26471         unblocking on [SIGCANCEL].
26472
26473         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26474         [__NR_set_robust_list].
26475
26476 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26477
26478         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26479         (do_compare): Likewise.
26480
26481 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26482
26483         [BZ #15884]
26484         * string/strcoll_l.c: Don't include stdio.h.
26485         (coll_seq): Remove members idxarr and rulearr.
26486         (get_next_seq_cached): Remove function.
26487         (get_next_seq): Likewise.
26488         (get_next_seq_nocache): Rename to get_next_seq.
26489         (do_compare): Remove function.
26490         (do_compare_nocache): Rename to do_compare.
26491         (STRCOLL): Remove weight and rules cache.
26492
26493 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26494
26495         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26496         * sysdeps/arm/sfp-machine.h: ... to here.
26497         * sysdeps/arm/Implies: Remove arm/soft-fp.
26498
26499 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26500
26501         * conform/data/sys/utsname.h-data (*_t): Allow.
26502         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26503         [POSIX] (WEXITED): Do not expect constant.
26504         [POSIX] (WSTOPPED): Likewise.
26505         [POSIX] (WNOHANG): Likewise.
26506         [POSIX] (WNOWAIT): Likewise.
26507         [POSIX] (siginfo_t): Do not expect type or elements.
26508         [POSIX] (pid_t): Do not expect type.
26509         [POSIX] (signal.h): Do not allow header.
26510         [POSIX] (sys/resource.h): Likewise.
26511         [POSIX] (si_*): Do not allow pattern.
26512         [POSIX] (W*): Likewise.
26513         [POSIX] (P_*): Likewise.
26514         [POSIX] (BUS_*): Likewise.
26515         [POSIX] (CLD_*): Likewise.
26516         [POSIX] (FPE_*): Likewise.
26517         [POSIX] (ILL_*): Likewise.
26518         [POSIX] (POLL_*): Likewise.
26519         [POSIX] (SEGV_*): Likewise.
26520         [POSIX] (SI_*): Likewise.
26521         [POSIX] (TRAP_*): Likewise.
26522         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26523         variable.
26524
26525 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26526
26527         [BZ #12926]
26528         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26529         infinite loop when __recvmsg returns 0.
26530
26531 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26532
26533         * CANCEL-FCT-WAIVE: Remove file.
26534         * CANCEL-FILE-WAIVE: Likewise.
26535
26536         [BZ #14132]
26537         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26538         instead of INTVARDEF.
26539         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26540         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26541         rtld_hidden_data_def instead of INTVARDEF.
26542         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26543         * elf/dl-deps.c (expand_dst): Likewise.
26544         * elf/dl-load.c (_dl_dst_count): Likewise.
26545         (_dl_dst_substitute): Likewise.
26546         (decompose_rpath): Likewise.
26547         (_dl_init_paths): Likewise.
26548         (open_path): Likewise.
26549         (_dl_map_object): Likewise.
26550         * elf/rtld.c (dl_main): Likewise.
26551         (process_dl_audit): Likewise.
26552         (process_envvars): Likewise.
26553         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26554         Remove declaration.
26555         (__libc_enable_secure): Use rtld_hidden_proto.
26556
26557 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26558
26559         * elf/dl-load.c
26560         (add_path): New function broken out of _dl_rtld_di_serinfo.
26561         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26562
26563 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26564
26565         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26566         parentheses around macro arguments.
26567         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26568         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26569         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26570         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26571         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26572         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26573         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26574         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26575         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26576         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26577         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26578         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26579         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26580         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26581         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26582         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26583         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26584         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26585         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26586         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26587         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26588         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26589         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26590         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26591         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26592         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26593         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26594         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26595         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26596         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26597         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26598         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26599         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26600         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26601         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26602         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26603         Likewise.
26604         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26605         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26606         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26607         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26608         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26609         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26610         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26611         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26612         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26613         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26614         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26615         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26616         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26617         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): 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         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26632         (_FP_FRAC_SRS_1): Likewise.
26633         (_FP_FRAC_CLZ_1): Likewise.
26634         (_FP_MUL_MEAT_1_imm): Likewise.
26635         (_FP_MUL_MEAT_1_wide): Likewise.
26636         (_FP_MUL_MEAT_1_hard): Likewise.
26637         (_FP_SQRT_MEAT_1): Likewise.
26638         (_FP_FRAC_ASSEMBLE_1): Likewise.
26639         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26640         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26641         (__FP_CLZ_2): Likewise.
26642         (_FP_MUL_MEAT_2_wide): Likewise.
26643         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26644         (_FP_MUL_MEAT_2_gmp): Likewise.
26645         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26646         (_FP_SQRT_MEAT_2): Likewise.
26647         (_FP_FRAC_ASSEMBLE_2): Likewise.
26648         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26649         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26650         (_FP_FRAC_CLZ_4): Likewise.
26651         (_FP_MUL_MEAT_4_wide): Likewise.
26652         (_FP_MUL_MEAT_4_gmp): Likewise.
26653         (_FP_SQRT_MEAT_4): Likewise.
26654         (_FP_FRAC_ASSEMBLE_4): Likewise.
26655         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26656         * soft-fp/op-common.h (_FP_CMP): Likewise.
26657         (_FP_CMP_EQ): Likewise.
26658         (_FP_CMP_UNORD): Likewise.
26659         (_FP_TO_INT): Likewise.
26660         (_FP_FROM_INT): Likewise.
26661         [!__FP_CLZ] (__FP_CLZ): Likewise.
26662         (_FP_DIV_HELP_imm): Likewise.
26663         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26664         Likewise.
26665         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26666         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26667         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26668         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26669         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26670         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26671         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26672         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26673         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26674         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26675         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26676         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26677         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26678         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26679         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26680         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26681         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26682         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26683         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26684         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26685         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26686         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26687         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26688         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26689         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26690         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26691         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26692         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26693         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26694         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26695         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26696         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26697         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26698         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26699         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26700         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26701         (FP_UNPACK_RAW_SP): Likewise.
26702         (FP_PACK_RAW_S): Likewise.
26703         (FP_PACK_RAW_SP): Likewise.
26704         (FP_UNPACK_S): Likewise.
26705         (FP_UNPACK_SP): Likewise.
26706         (FP_UNPACK_SEMIRAW_S): Likewise.
26707         (FP_UNPACK_SEMIRAW_SP): Likewise.
26708         (FP_PACK_S): Likewise.
26709         (FP_PACK_SP): Likewise.
26710         (FP_PACK_SEMIRAW_S): Likewise.
26711         (FP_PACK_SEMIRAW_SP): Likewise.
26712         (_FP_SQRT_MEAT_S): Likewise.
26713         (FP_CMP_S): Likewise.
26714         (FP_CMP_EQ_S): Likewise.
26715         (FP_CMP_UNORD_S): Likewise.
26716         (FP_TO_INT_S): Likewise.
26717         (FP_FROM_INT_S): Likewise.
26718
26719         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26720
26721         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26722         (FP_EX_INVALID_IMZ): Likewise.
26723         (FP_EX_INVALID_IMZ_FMA): Likewise.
26724         (FP_EX_INVALID_ISI): Likewise.
26725         (FP_EX_INVALID_ZDZ): Likewise.
26726         (FP_EX_INVALID_IDI): Likewise.
26727         (FP_EX_INVALID_SQRT): Likewise.
26728         (FP_EX_INVALID_CVI): Likewise.
26729         (FP_EX_INVALID_VC): Likewise.
26730         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26731         "invalid" exceptions.
26732         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26733         (_FP_ADD_INTERNAL): Likewise.
26734         (_FP_MUL): Likewise.
26735         (_FP_FMA): Likewise.
26736         (_FP_DIV): Likewise.
26737         (_FP_CMP_CHECK_NAN): Likewise.
26738         (_FP_SQRT): Likewise.
26739         (_FP_TO_INT): Likewise.
26740         (FP_EXTEND): Likewise.
26741
26742 2014-10-09  Allan McRae  <allan@archlinux.org>
26743
26744         * po/fr.po: Update French translation from translation project.
26745
26746 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26747
26748         [BZ #14132]
26749         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26750         of INTDEF.
26751         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26752         (__cxa_atexit): Use libc_hidden_proto.
26753         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26754
26755         [BZ #14132]
26756         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26757         declaration.
26758         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26759         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26760         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26761         [!_ISOMAC] (__iswctype_internal): Likewise.
26762         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26763         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26764         alias.
26765         (fcntl): Remove __fcntl_internal alias.
26766         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26767         __connect_internal alias.
26768         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26769         Likewise.
26770
26771         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26772         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26773         FP_DENORM_ZERO.
26774         (_FP_CHECK_FLUSH_ZERO): New macro.
26775         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26776         (_FP_CMP): Likewise.
26777         (_FP_CMP_EQ): Likewise.
26778         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26779         FP_DENORM_ZERO.
26780         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26781         (FP_TRUNC): Likewise.
26782
26783         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26784         treated as invalid conversion, not as normal exponent.
26785
26786         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26787         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26788         (_FP_CMP_EQ): Likewise.
26789         (_FP_CMP_UNORD): Likewise.
26790         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26791         (FP_CMP_EQ_D): Likewise.
26792         (FP_CMP_UNORD_D): Likewise.
26793         * soft-fp/extended.h (FP_CMP_E): Likewise.
26794         (FP_CMP_EQ_E): Likewise.
26795         (FP_CMP_UNORD_E): Likewise.
26796         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26797         (FP_CMP_EQ_Q): Likewise.
26798         (FP_CMP_UNORD_Q): Likewise.
26799         * soft-fp/single.h (FP_CMP_S): Likewise.
26800         (FP_CMP_EQ_S): Likewise.
26801         (FP_CMP_UNORD_S): Likewise.
26802         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26803         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26804         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26805         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26806         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26807         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26808         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26809         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26810         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26811         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26812         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26813         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26814         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26815         to FP_CMP_Q.
26816         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26817         FP_CMP_Q.
26818         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26819         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26820         FP_CMP_EQ_Q.
26821         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26822         FP_CMP_Q.
26823         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26824         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26825         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26826         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26827         FP_CMP_EQ_Q.
26828         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26829         FP_CMP_Q.
26830         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26831         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26832         FP_CMP_EQ_Q.
26833         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26834         FP_CMP_Q.
26835         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26836         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26837         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26838         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26839         FP_CMP_EQ_Q.
26840
26841         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26842         a subnormal result, set the underflow exception if trapping on
26843         underflow is enabled.
26844         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26845         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26846         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26847         redefine to 0.
26848         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26849         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26850         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26851         * soft-fp/extendxftf2.c (__extendxftf2): Use
26852         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26853
26854         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26855         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26856         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26857         FP_HANDLE_EXCEPTIONS.
26858         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26859         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26860         FP_HANDLE_EXCEPTIONS.
26861         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26862         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26863         FP_HANDLE_EXCEPTIONS.
26864         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26865         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26866         FP_HANDLE_EXCEPTIONS.
26867
26868 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26869
26870         [BZ #14132]
26871         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26872         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26873         use INTUSE.
26874         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26875         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26876         Remove alias.
26877         (__adjtimex): Define using libc_hidden_ver.
26878         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26879         Remove declaration.
26880         (ntp_gettime): Call __adjtimex directly.
26881         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26882         Remove declaration.
26883         (ntp_gettimex): Call __adjtimex directly.
26884         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26885         __adjtimex_internal alias.
26886
26887 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26888
26889         [BZ #17460]
26890         * nscd/nscd.c (more_help): Rewrite list of tables collection
26891         using xstrdup and asprintf.
26892
26893         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26894
26895 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26896             Roland McGrath  <roland@hack.frob.com>
26897
26898         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26899         (do_lookup_unique): ... local function 'enter' here; update callers.
26900
26901 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26902
26903         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26904         compat_symbol calls on [SHARED].
26905         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26906         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26907         Remove.
26908         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26909         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26910         (oldsetrlimit): Remove.
26911         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26913         (lchown): New syscall entry.
26914         (oldsetrlimit): Remove.
26915         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26916         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26917         (oldsetrlimit): Remove.
26918         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26919
26920         [BZ #14138]
26921         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26922         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26923         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26924         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26925         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26926         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26927         (fchown): Likewise.
26928         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26929         (fchown): Likewise.
26930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26931         Likewise.
26932
26933 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26934
26935         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26936         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26937         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26938         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26939         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26940         Likewise.
26941         (__old_sem_post): Likewise.
26942
26943 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26944
26945         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26946         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26947         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26948         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26949         Use INLINE_VSYSCALL macro.
26950         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26951         __vdso_clock_gettime.
26952         * sysdeps/unix/sysv/linux/tile/init-first.c
26953         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26954         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26955         __vdso_clock_gettime.
26956
26957         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26958         to set up frame more cleanly.
26959
26960         * sysdeps/tile/memcmp.c: New file.
26961
26962         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26963
26964         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26965         * sysdeps/tile/tilegx/strcasestr.c: New file.
26966         * sysdeps/tile/tilegx/strnlen.c: New file.
26967         * sysdeps/tile/tilegx/strstr.c: New file.
26968
26969         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26970
26971 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26972
26973         * nptl/tst-setuid3.c: Write errors to stdout.
26974
26975 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26976
26977         * elf/dl-deps.c
26978         (preload): New functions broken out of _dl_map_object_deps.
26979         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26980
26981 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26982
26983         [BZ #14138]
26984         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26985         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26986
26987 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26988
26989         * sysdeps/mips/strcmp.S: New.
26990
26991 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26992
26993         [BZ #14138]
26994         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26995         (linkat): Likewise.
26996         (mkdirat): Likewise.
26997         (readlinkat): Likewise.
26998         (renameat): Likewise.
26999         (symlinkat): Likewise.
27000         (unlinkat): Likewise.
27001         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
27002         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
27003         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
27004         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
27005         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
27006         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
27007         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
27008
27009 2014-09-30  Will Newton  <will.newton@linaro.org>
27010
27011         * math/math.h: Define long double math functions if
27012         _LIBC_TEST is defined.
27013         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
27014
27015         * localedata/Makefile: Move assignment to tests-special
27016         into an ifdef testing run-built-tests.
27017         * timezone/Makefile: Likewise.
27018
27019 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
27020
27021         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
27022         with $(BASH) not $(SHELL).
27023
27024 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
27025             Matthew LeGendre  <legendre1@llnl.gov>
27026
27027         [BZ #17411]
27028         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
27029         l_reloc_result.
27030
27031 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27032
27033         * stdio-common/printf_fp.c
27034         (hack_digit): New function, broken out of ...
27035         (__printf_fp): ... local function here.  Update call sites.
27036         hack_digit now takes an additional parameter that is a pointer
27037         to a struct of the referenced locals.  Those locals moved inside
27038         the struct and references updated.
27039
27040 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27041
27042         * aclocal.m4: Require autoconf 2.69.
27043         * configure: Regenerated.
27044         * sysdeps/aarch64/configure: Likewise.
27045         * sysdeps/alpha/configure: Likewise.
27046         * sysdeps/arm/armv7/configure: Likewise.
27047         * sysdeps/arm/configure: Likewise.
27048         * sysdeps/ia64/configure: Likewise.
27049         * sysdeps/mach/configure: Likewise.
27050         * sysdeps/mips/configure: Likewise.
27051         * sysdeps/s390/configure: Likewise.
27052         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
27053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
27054
27055         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
27056         file.
27057         * sysdeps/ia64/configure.ac: Likewise.
27058
27059 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
27060
27061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
27062         specify symbol version for ld.so.  Do not include entry for
27063         libpthread.
27064         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27065         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27066         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27067
27068         [BZ #14171]
27069         * Makeconfig [$(build-shared) = yes]
27070         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
27071         makefiles.
27072         [$(build-shared) = yes && $(soversions.mk-done) = t]
27073         ($(common-objpfx)gnu/lib-names.h): Remove rule.
27074         [$(build-shared) = yes && $(soversions.mk-done) = t]
27075         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
27076         to Makerules.
27077         [$(build-shared) = yes && $(soversions.mk-done) = t]
27078         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
27079         here.
27080         [$(build-shared) = yes && $(soversions.mk-done) = t]
27081         (common-generated): Don't append gnu/lib-names.h and
27082         gnu/lib-names.stmp here.
27083         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
27084         (lib-names-h-abi): New variable.
27085         [$(build-shared) = yes && $(soversions.mk-done) = t]
27086         (lib-names-stmp-abi): Likewise.
27087         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27088         abi-variants] (before-compile): Append
27089         $(common-objpfx)$(lib-names-h-abi).
27090         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27091         abi-variants] (common-generated): Append gnu/lib-names.h.
27092         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27093         abi-variants] (install-others-nosubdir): Depend on
27094         $(inst_includedir)/$(lib-names-h-abi).
27095         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27096         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
27097         [$(build-shared) = yes && $(soversions.mk-done) = t]
27098         ($(common-objpfx)$(lib-names-h-abi)): New rule.
27099         [$(build-shared) = yes && $(soversions.mk-done) = t]
27100         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
27101         [$(build-shared) = yes && $(soversions.mk-done) = t]
27102         (common-generated): Append $(lib-names-h-abi) and
27103         $(lib-names-stmp-abi).
27104         * scripts/lib-names.awk: Do not handle multi being set.
27105         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
27106         Remove variable.
27107         (abi-lp64_be-ld-soname): Likewise.
27108         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
27109         Likewise.
27110         (abi-hard-ld-soname): Likewise.
27111         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
27112         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
27113         Remove variable.
27114         (abi-o32_hard-ld-soname): Likewise.
27115         (abi-o32_soft_2008-ld-soname): Likewise.
27116         (abi-o32_hard_2008-ld-soname): Likewise.
27117         (abi-n32_soft-ld-soname): Likewise.
27118         (abi-n32_hard-ld-soname): Likewise.
27119         (abi-n32_soft_2008-ld-soname): Likewise.
27120         (abi-n32_hard_2008-ld-soname): Likewise.
27121         (abi-n64_soft-ld-soname): Likewise.
27122         (abi-n64_hard-ld-soname): Likewise.
27123         (abi-n64_soft_2008-ld-soname): Likewise.
27124         (abi-n64_hard_2008-ld-soname): Likewise.
27125         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27126         Likewise.
27127         (abi-64-v2-ld-soname): Likewise.
27128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27129         ld.so entries.
27130         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27131         variable.
27132         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27133         entry.
27134         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27135         variable.
27136         (abi-64-ld-soname): Likewise.
27137         (abi-x32-ld-soname): Likewise.
27138         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27139         entry.
27140         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27141
27142 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27143
27144         [BZ #14138]
27145         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27146         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27147         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27148         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27149         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27150         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27151         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27152         syscall entry for GLIBC_2.2 symbol version.
27153         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27154         Likewise.
27155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27156         (setrlimit): Likewise.
27157         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27158         Likewise.
27159
27160 2014-09-23  Will Newton  <will.newton@linaro.org>
27161
27162         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27163         _LINUX_ARM_SYSDEP_H include guard too.
27164         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27165         define.
27166
27167 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27168
27169         * sysdeps/unix/sysv/linux/eventfd.c:
27170         Make first argument unsigned.
27171         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27172         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27173
27174 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27175
27176         [BZ #16852]
27177         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27178         * socket/sys/socket.h: Likewise.
27179         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27180
27181 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27182
27183         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27184
27185 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27186
27187         * time/tst-ftime.c: New test.
27188         * time/Makefile (tests): Add tst-ftime.
27189
27190 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27191
27192         * soft-fp/extended.h: Fix comment formatting.
27193         * soft-fp/op-1.h: Likewise.
27194         * soft-fp/op-2.h: Likewise.
27195         * soft-fp/op-4.h: Likewise.
27196         * soft-fp/op-8.h: Likewise.
27197         * soft-fp/op-common.h: Likewise.
27198         * soft-fp/soft-fp.h: Likewise.
27199
27200         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27201
27202 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27203
27204         [BZ #6652]
27205         * Makeconfig (soversions-default-setname): Remove variable.
27206         ($(common-objpfx)soversions.i): Don't pass default_setname to
27207         soversions.awk.
27208         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27209         oldest_abi to abi-versions.awk.
27210         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27211         * config.make.in (oldest-abi): Remove variable.
27212         * configure.ac (--enable-oldest-abi): Remove configure option.
27213         * configure: Regenerated.
27214         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27215         text.
27216         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27217         * scripts/soversions.awk: Do not handle default_setname variable.
27218         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27219         variable.
27220         * sysdeps/mach/hurd/configure: Regenerated.
27221         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27222         variable.
27223         * sysdeps/unix/sysv/linux/configure: Regenerated.
27224
27225 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27226
27227         * elf/Makefile (CFLAGS-interp.c): Remove.
27228         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27229         path string.
27230         * elf/interp.c: Include generated runtime-linker.h
27231
27232         * Makerules (lib%.so): Don't include $(+interp) in
27233         prerequisites.
27234         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27235         * dlfcn/eval.c: Remove file.
27236
27237         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27238         macros.
27239
27240         [BZ #17266]
27241         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27242         4.2 and newer.
27243
27244         [BZ #17370]
27245         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27246
27247 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27248             Jakub Jelinek  <jakub@redhat.com>
27249
27250         [BZ #17266]
27251         * libio/stdio.h: Check definition of __fortify_function
27252         instead of __extern_always_inline to include bits/stdio2.h.
27253         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27254         check if __extern_always_inline is defined.
27255         [__USE_MISC || __USE_XOPEN]: Likewise.
27256         [__USE_ISOC99] Likewise.
27257         * misc/sys/cdefs.h (__fortify_function): Define only if
27258         __extern_always_inline is defined.
27259         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27260         __extern_always_inline and __extern_inline only for g++-4.3
27261         and newer or a compatible gcc.
27262
27263 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27264
27265         [BZ #17371]
27266         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27267         last change to handle zero prefix length.
27268
27269 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27270
27271         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27272         _SC_REGEX_VERSION.
27273
27274         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27275         _POSIX_RAW_SOCKETS.
27276
27277 2014-09-13  Allan McRae  <allan@archlinux.org>
27278
27279         * po/ru.po: Update Russian translation from translation project.
27280
27281 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27282
27283         * locale/programs/locale.c (show_locale_vars): Inline local function
27284         into its sole call site.  Clean up some style nits.
27285         (print_item): New function, broken out of ...
27286         (show_info): ... local function here.  Clean up style nits.
27287
27288         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27289         out of ...
27290         (set_class_defaults): ... local function set_default here.
27291         Define set_default as a macro locally to pass constant parameters.
27292         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27293         rather than a shared local.
27294
27295         * stdlib/rpmatch.c (try): New function, broken out of ...
27296         (rpmatch): ... local function here.  Also, prototypify definition.
27297
27298 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27299
27300         * scripts/soversions.awk: Do not handle configuration names.
27301         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27302         vendor and os variables to soversions.awk.
27303         * configure.ac: Do not modify gnu-* host_os.
27304         * configure: Regenerated
27305         * shlib-versions: Remove first column with configuration names.
27306         * nptl/shlib-versions: Likewise.
27307         * nptl_db/shlib-versions: Likewise.
27308         * sysdeps/hppa/shlib-versions: Likewise.
27309         * sysdeps/m68k/shlib-versions: Likewise.
27310         * sysdeps/mach/hurd/shlib-versions: Likewise.
27311         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27312         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27313         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27314         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27315         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27316         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27317         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27318         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27320         Likewise.
27321         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27322         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27323         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27324         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27325         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27326         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27327         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27328         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27329
27330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27331         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27333         Regenerated.
27334         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27336         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27337
27338         * shlib-versions: Remove OS-specific entries.  Moved to files in
27339         sysdeps.
27340         * sysdeps/mach/hurd/shlib-versions: New file.
27341         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27342
27343         * nptl/shlib-versions: Remove architecture-specific entries.
27344         Moved to files in sysdeps.
27345         * shlib-versions: Likewise.
27346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27347         file.
27348         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27349         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27350         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27351         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27352
27353         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27354         (UDP_NO_CHECK6_RX): Likewise.
27355
27356 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27357
27358         * sysdeps/posix/sysconf.c (__sysconf): Spell
27359         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27360
27361 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27362
27363         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27364         loading.
27365         * iconv/Versions (__gconv_transliterate): Export for use from
27366         gconv modules.
27367         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27368         (struct __gconv_trans_data, __gconv_trans_fct,
27369         __gconv_trans_context_fct, __gconv_trans_query_fct,
27370         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27371         definitions.
27372         (struct __gconv_step_data): Remove __trans member.
27373         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27374         longer hidden.  Remove unused trans_data argument.
27375         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27376         (__gconv_translit_find): Remove declaration.
27377         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27378         prototype.
27379         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27380         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27381         trans_data argument.  Add hidden definition.
27382         (__gconv_translit_find): Remove.
27383         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27384         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27385         * iconv/skeleton.c: Remove transliteration initialization.
27386         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27387         __gconv_step_data initialization.
27388         * libio/iofwide.c (__libio_translit_): Remove.
27389         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27390         * wcsmbs/btowc.c (__btowc): Likewise.
27391         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27392         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27393         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27394         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27395         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27396         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27397         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27398         * wcsmbs/wctob.c (wctob): Likewise.
27399
27400 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27401
27402         [BZ #16194]
27403         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27404         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27405         register usage.
27406         * sysdeps/x86/Makefile: Adjust.
27407
27408 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27409             Roland McGrath  <roland@hack.frob.com>
27410
27411         * locale/weight.h: Add include guard.
27412         (findidx): Make static rather than auto; take new parameters
27413         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27414         * locale/weightwc.h: Likewise.
27415         * posix/fnmatch_loop.c
27416         (FCT): Change type of EXTRA from int32_t to wint_t.
27417         Don't include either header inside the function.
27418         Call FINDIDX rather than findidx, and pass new arguments.
27419         #undef FINDIDX at the end of the file.
27420         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27421         FINDIDX before including fnmatch_loop.c for the non-wide version.
27422         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27423         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27424         for the wide version.
27425         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27426         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27427         Pass new arguments to findidx.
27428         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27429         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27430         Don't #include it inside the function.  Pass new arguments to findidx.
27431         * posix/regex_internal.h
27432         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27433         (re_string_elem_size_at): Don't #include it inside the function.
27434         Pass new arguments to findidx.
27435         * string/strcoll_l.c: #include WEIGHT_H at top level.
27436         (get_next_seq): Don't #include it inside the function.
27437         Pass new arguments to findidx.
27438         (get_next_seq_nocache): Likewise.
27439         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27440         (STRXFRM): Don't #include it inside the function.
27441         Pass new arguments to findidx.
27442
27443 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27444
27445         [BZ #17344]
27446         * malloc/malloc.c (unlink): Turn asserts into a call to
27447         malloc_printerr.
27448
27449 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27450
27451         [BZ #17370]
27452         * libio/wfileops (do_ftell_wide): Free OUT.
27453
27454 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27455
27456         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27457
27458 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27459
27460         [BZ #17363]
27461         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27462         group if the current group is empty.
27463
27464 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27465
27466         * benchtests/bench-memset.c (test_main): Add more test from size
27467         from 32 to 512 bytes.
27468         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27469         Add POWER8 memset object.
27470         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27471         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27472         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27473         implementation.
27474         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27475         Likewise.
27476         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27477         multiarch POWER8 memset optimization.
27478         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27479         POWER8 memset optimization.
27480
27481         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27482         Remove bzero multiarch objects.
27483         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27484         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27485         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27486         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27487         Remove define.
27488         [__bzero]: Redefine to specific name.
27489         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27490         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27491         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27492         define.
27493         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27494         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27495
27496 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27497
27498         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27499         warnings into errors.
27500
27501         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27502         __cxa_thread_atexit_impl prototype.
27503
27504 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27505
27506         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27507         Fix capitalization of error message.
27508
27509 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27510
27511         * sysdeps/mips/preconfigure: Modify ABI tests.
27512
27513 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27514
27515         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27516
27517 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27518             Carlos O'Donell  <carlos@systemhalted.org>
27519
27520         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27521         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27522         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27523         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27524         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27525         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27526         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27527         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27528         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27529         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27530         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27531         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27532         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27533         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27534         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27535         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27536         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27537         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27538         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27539         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27540         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27541         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27542         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27543         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27544         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27545         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27546         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27547         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27548         Deconditionalize the code that was previously under [RESET_PID].
27549         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27550         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27551         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27552         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27553         include sysdep.h.
27554
27555 2014-09-08  Allan McRae  <allan@archlinux.org>
27556
27557         * version.h (RELEASE): Set to "development".
27558         (VERSION): Set to "2.20.90"
27559
27560 2014-09-07  Allan McRae  <allan@archlinux.org
27561
27562         * version.h (RELEASE): Set to "stable".
27563         (VERSION): Set to "2.20"
27564         * include/features.h (__GLIBC_MINOR__): Set to 20.
27565
27566         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27567         Liebler.
27568
27569         * po/ko.po: Update Korean translation from translation project.
27570
27571 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27572
27573         [BZ #17354]
27574         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27575         macro for handling signed relocations.
27576
27577 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27578
27579         [BZ #17325]
27580         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27581         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27582         assert.
27583         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27584         * iconvdata/ibm935.c (BODY): Likewise.
27585         * iconvdata/ibm937.c (BODY): Likewise.
27586         * iconvdata/ibm939.c (BODY): Likewise.
27587         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27588         assert.
27589         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27590         script.
27591         * iconvdata/run-iconv-test.sh: New test loop for checking for
27592         decoder crashers.
27593
27594 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27595
27596         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27597         libm_hidden_ver.
27598
27599 2014-09-01  Allan McRae  <allan@archlinux.org>
27600
27601         * po/eo.po: Update Esperanto translation from translation project.
27602
27603         * po/ca.po: Update Catalan translation from translation project.
27604
27605 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27606
27607         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27608         __proc_dostop call.
27609
27610 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27611
27612         [BZ #17319]
27613         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27614         to call set_thread_area instead of hand written asm.
27615         (__NR_set_thread_area): Removed define.
27616         (TLS_FLAG_WRITABLE): Likewise.
27617         (__ASSUME_SET_THREAD_AREA): Remove check.
27618         (TLS_EBX_ARG): Remove define.
27619         (TLS_LOAD_EBX): Likewise.
27620
27621 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27622
27623         Simplify atomicity of socket creation in bind.
27624
27625         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27626         looking up the name after linking the file.
27627
27628 2014-08-27  Allan McRae  <allan@archlinux.org>
27629
27630         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27631
27632 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27633
27634         [BZ #17187]
27635         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27636         trans_compare, open_translit, __gconv_translit_find):
27637         Remove module loading code.
27638
27639 2014-08-26  Allan McRae  <allan@archlinux.org>
27640
27641         * po/vi.po: Update Vietnamese translation from translation project.
27642
27643         * po/uk.po: Update Ukrainian translation from translation project.
27644
27645         * po/fr.po: Update French translation from translation project.
27646
27647         * po/ru.po: Update Russian translation from translation project.
27648
27649         * po/pl.po: Update Polish translation from translation project.
27650
27651         * po/cs.po: Update Czech translation from translation project.
27652
27653         * po/de.po: Update German translation from translation project.
27654
27655         * po/bg.po: Update Bulgarian translation from translation project.
27656
27657         * po/sv.po: Update Sweedish translation from translation project.
27658
27659         * po/nl.po: Update Dutch translation from translation project.
27660
27661         * po/es.po: Update Spanish translation from translation project.
27662
27663 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27664
27665         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27666
27667         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27668         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27669         (CPPFLAGS-iconvconfig): Likewise.
27670         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27671
27672         * include/libc-symbols.h: Remove unnecessary check for
27673         NOT_IN_libc.
27674         * nptl/pthreadP.h: Likewise.
27675         * sysdeps/aarch64/setjmp.S: Likewise.
27676         * sysdeps/alpha/setjmp.S: Likewise.
27677         * sysdeps/arm/sysdep.h: Likewise.
27678         * sysdeps/i386/setjmp.S: Likewise.
27679         * sysdeps/m68k/setjmp.c: Likewise.
27680         * sysdeps/posix/getcwd.c: Likewise.
27681         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27682         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27683         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27684         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27685         * sysdeps/sh/sh3/setjmp.S: Likewise.
27686         * sysdeps/sh/sh4/setjmp.S: Likewise.
27687         * sysdeps/unix/alpha/sysdep.h: Likewise.
27688         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27689         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27690         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27691         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27694         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27695         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27696         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27697         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27698         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27699         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27700         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27701         * sysdeps/x86_64/setjmp.S: Likewise.
27702
27703 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27704
27705         [BZ #17263]
27706         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27707         <stdint.h>.
27708         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27709         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27710
27711 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27712
27713         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27714
27715         [BZ #17262]
27716         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27717         and __x86_64__ when disabling x87 inline functions.
27718
27719 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27720
27721         [BZ #17259]
27722         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27723         asm statement with __cpuid_count.
27724
27725 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27726
27727         * configure.ac: Change __ehdr_start code to dereference the struct.
27728         Run readelf on the output to look for relocations.
27729         * configure: Regenerated.
27730
27731 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27732
27733         [BZ #17261]
27734         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27735         value to 0.
27736         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27737
27738 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27739
27740         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27741
27742 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27743
27744         [BZ #16892]
27745         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27746         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27747
27748 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27749
27750         * malloc/malloc.c: Fix typo in comment.
27751
27752 2014-08-09  Allan McRae  <allan@archlinux.org>
27753
27754         * Regenerate libc.po.
27755
27756 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27757
27758         * intl/tst-gettext2.sh: Check every lang file for creation.
27759
27760 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27761
27762         * sysdeps/aarch64/fpu/math_private.h
27763         (libc_feholdsetround_noex_aarch64_ctx): New function.
27764
27765 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27766
27767         * sysdeps/arm/armv6/strcpy.S (strcpy):
27768         Fix performance issue in misaligned cases.
27769
27770 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27771
27772         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27773         Move definition from termios.h.
27774         (struct termio): Likewise.
27775         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27776         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27777         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27778         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27779         Likewise.
27780         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27781         Move definition to ioctl-types.h
27782         (struct termio): Likewise.
27783         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27784         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27785         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27786         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27787         Likewise.
27788
27789 2014-08-05  Richard Henderson  <rth@redhat.com>
27790
27791         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27792         exceptions.
27793         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27794         Add fraiseexcpt.
27795         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27796         Use __feraiseexcept.
27797         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27798         Protect libm symbols with IS_IN_libm.
27799
27800         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27801
27802 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27803
27804         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27805
27806 2014-08-04  Will Newton  <will.newton@linaro.org>
27807
27808         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27809         file.
27810
27811 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27812
27813         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27814         variants for each function.
27815
27816 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27817
27818         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27819         appended ...
27820         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27821         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27822         appended ...
27823         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27824         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27825         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27826         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27827         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27828         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27829         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27830         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27831         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27832         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27833         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27834         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27835         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27836         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27837         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27838         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27839         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27840         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27841         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27842         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27843         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27844         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27845         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27846         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27847         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27848         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27849         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27850         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27851         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27852         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27853         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27854         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27855         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27856         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27857         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27858         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27859         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27860         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27861         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27862         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27863         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27864         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27865         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27866         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27867         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27868         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27869         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27870         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27871         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27872         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27873         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27874         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27875         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27876         Update #include.
27877         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27878         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27879
27880 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27881
27882         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27883         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27884         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27885         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27886         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27887         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27888
27889 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27890
27891         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27892         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27893         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27894         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27895
27896 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27897
27898         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27899         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27900         (__libc_vfork): Define function under this name.
27901         (__vfork): Define as an alias.
27902         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27903         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27904
27905 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27906
27907         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27908         that was previously under [RESET_PID].
27909         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27910
27911 2014-08-04  Andreas Schwab  <schwab@suse.de>
27912
27913         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27914
27915 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27916
27917         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27918         (main): Likewise.
27919
27920 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27921
27922         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27923
27924 2014-08-01  Richard Henderon  <rth@redhat.com>
27925
27926         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27927         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27928         typo in exact zero test.
27929         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27930         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27931         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27932
27933 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27934
27935         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27936         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27937         * sysdeps/arm/sysdep.h: ... here.
27938         [!__ASSEMBLER__]: Include <stdint.h>.
27939
27940 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27941
27942         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27943         (HAVE_WCTYPE_H): Likewise.
27944         (HAVE_ISWCTYPE): Likewise.
27945         (ENABLE_NLS): Likewise.
27946         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27947         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27948
27949         * posix/regex_internal.c: Check if DEBUG is defined and is
27950         set.
27951
27952         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27953         (HAVE_MBSRTOWCS): Likewise.
27954         * posix/fnmatch.c: Include string.h unconditionally.
27955
27956 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27957
27958         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27959         reversal.
27960
27961 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27962
27963         * sysdeps/generic/safe-fatal.h: New file.
27964         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27965         * nptl/forward.c: Include it.
27966         (__pthread_unwind): Use __safe_fatal as default action, rather
27967         than a bogus use of INTERNAL_SYSCALL that could never work.
27968
27969         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27970         * configure.ac (libc_cv_builtin_trap): New test.
27971         * configure: Regenerated.
27972         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27973         (ABORT_INSTRUCTION): Define using __builtin_trap.
27974
27975         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27976         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27977         * sysdeps/nptl/nptl-signals.h: New file.
27978         * nptl/pthreadP.h: Include <nptl-signals.h>.
27979
27980 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27981
27982         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27983         (ONE_DIRECTION): Define.
27984         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27985         (ONE_DIRECTION): Define.
27986         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27987         (ONE_DIRECTION): Define.
27988
27989 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27990
27991         * sysdeps/s390/Makefile: Delete file.
27992         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27993         * sysdeps/s390/__longjmp.c: Delete file.
27994         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27995         Remove fields __flags and __reserved.
27996         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27997         and add versioning.
27998         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27999         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
28000         * sysdeps/s390/rtld-setjmp.S: Likewise.
28001         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
28002         * sysdeps/s390/s390-32/__longjmp.c: ... here.
28003         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
28004         * sysdeps/s390/s390-32/setjmp.S: ... here.
28005         Add versioning.
28006         (__sigsetjmp): Remove setting __flags field.
28007         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
28008         * sysdeps/s390/s390-64/__longjmp.c: ... here.
28009         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
28010         * sysdeps/s390/s390-64/setjmp.S: ... here.
28011         Add versioning.
28012         (__sigsetjmp): Remove setting __flags field.
28013         * sysdeps/s390/setjmp.S: Delete file.
28014         * sysdeps/s390/sigjmp.c: Likewise.
28015         * sysdeps/s390/v1-longjmp.c: Likewise.
28016         * sysdeps/s390/v1-setjmp.h: Likewise.
28017         * sysdeps/s390/v1-sigjmp.c: Likewise.
28018         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
28019         Remove v1-longjmp_chk.
28020         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
28021         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
28022         Include debug/longjmp_chk.c and add versioning.
28023         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
28024         Include nptl/pt-longjmp.c and add versioning.
28025         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
28026         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
28027         Include __longjmp.c.
28028         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
28029         Move to ...
28030         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
28031         (__getcontext): Remove setting __flags field.
28032         Add versioning.
28033         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
28034         Don't restore upper high grps.
28035         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
28036         Likewise.
28037         (__swapcontext): Remove setting uc_flags field.
28038         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
28039         Delete file.
28040         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
28041         Include __longjmp.c.
28042         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
28043         Move to ...
28044         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
28045         (__getcontext): Remove setting __flags field.
28046         Add versioning.
28047         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
28048         (__swapcontext): Remove setting uc_flags field.
28049         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
28050         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
28051         Remove fields uc_high_gprs and __reserved.
28052         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
28053         New file with reverted content.
28054         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
28055         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
28056         Regenerated.
28057         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
28058         Regenerated.
28059
28060 2014-07-31  Andreas Schwab  <schwab@suse.de>
28061
28062         * config.h.in (HAVE_IFUNC): Define to 0.
28063         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
28064         definedness.
28065
28066 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
28067
28068         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28069         memmove-avx-unaligned, memcpy-avx-unaligned and
28070         mempcpy-avx-unaligned.
28071         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28072         Add tests for AVX memcpy functions.
28073         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
28074         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
28075         memcpy_chk.
28076         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
28077         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
28078         memmove_chk.
28079         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
28080         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
28081         mempcpy_chk.
28082         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
28083         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
28084         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
28085
28086 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28087
28088         [BZ #17213]
28089         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
28090         powerpc64le.
28091
28092 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
28093
28094         [BZ #16839]
28095         * manual/llio.texi: Add section about open file description locks.
28096         * manual/examples/ofdlocks.c: Example of open file description
28097         lock usage.
28098         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
28099         F_OFD_SETLK, and F_OFD_SETLKW.
28100
28101 2014-07-23  Allan McRae  <allan@archlinux.org>
28102
28103         * po/es.po: Update Spanish translation from translation project.
28104
28105 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
28106
28107         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
28108
28109 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
28110
28111         [BZ #17078]
28112         * sysdeps/arm/dl-machine.h (elf_machine_rela)
28113         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
28114         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
28115
28116 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
28117
28118         [BZ #17088]
28119         * math/fesetenv.c (__fesetenv)
28120         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
28121         * math/feupdateenv.c (__feupdateenv)
28122         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
28123
28124         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28125         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28126         (__ASSUME_SOCKETCALL): Do not define.
28127
28128         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28129         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28130         (__ASSUME_SOCKETCALL): Do not define.
28131         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28132         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28133         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28134         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28135         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28136         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28137         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28138         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28139
28140         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28141         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28142         (__ASSUME_SOCKETCALL): Do not define.
28143         (__ASSUME_IPC64): Define unconditionally.
28144         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28145         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28146         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28147         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28148         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28149         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28150         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28151         Likewise.
28152
28153         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28154         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28155         (__ASSUME_SOCKETCALL): Do not define.
28156         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28157         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28158         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28159         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28160         (__ASSUME_REQUEUE_PI): Define unconditionally.
28161         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28162         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28163         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28164         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28165         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28166         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28167
28168         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28169         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28170         (__ASSUME_SOCKETCALL): Do not define.
28171         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28172         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28173         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28174         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28175         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28176         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28177
28178         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28179         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28180         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28181         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28182         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28183         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28184         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28185         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28186         (__ASSUME_GETCPU_SYSCALL): Likewise.
28187
28188         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28189         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28190         cases for individual architectures.
28191         * sysdeps/gnu/configure: Regenerated.
28192         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28193         LIBC_SLIBDIR_RTLDDIR.
28194         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28195         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28196         LIBC_SLIBDIR_RTLDDIR.
28197         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28199         LIBC_SLIBDIR_RTLDDIR.
28200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28201         Regenerated.
28202         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28203         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28204         file.
28205         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28206         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28207         file.
28208         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28209         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28210         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28211         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28212
28213         * sysdeps/aarch64/shlib-versions: Move to ...
28214         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28215         * sysdeps/alpha/shlib-versions: Move to ...
28216         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28217         * sysdeps/arm/shlib-versions: Move to ...
28218         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28219         * sysdeps/hppa/shlib-versions: Move all contents except for
28220         libgcc_s entry to ...
28221         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28222         entry from ...
28223         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28224         * sysdeps/ia64/shlib-versions: Move to ...
28225         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28226         entry from ...
28227         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28228         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28229         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28230         * sysdeps/microblaze/shlib-versions: Move to ...
28231         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28232         * sysdeps/mips/shlib-versions: Move to ...
28233         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28234         entry from ...
28235         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28236         * sysdeps/tile/shlib-versions: Move to ...
28237         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28238         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28239         from ...
28240         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28241         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28242         entry from ...
28243         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28244
28245 2014-07-17  Will Newton  <will.newton@linaro.org>
28246
28247         * sysdeps/arm/bits/atomic.h
28248         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28249         (__arch_compare_and_exchange_bool_16_int): Likewise.
28250         (__arch_compare_and_exchange_bool_64_int): Likewise.
28251
28252         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28253         into an #else block.
28254
28255 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28256
28257         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28258         just Linux configurations.  Test empirically that the compiler sets
28259         __ARM_EABI__, rather than using the tuple to decide.
28260         * sysdeps/arm/preconfigure: Regenerated.
28261         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28262         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28263         contents appended ...
28264         * sysdeps/arm/configure.ac: ... here.
28265         * sysdeps/arm/configure: Regenerated.
28266
28267 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28268
28269         * nptl/pthread_kill.c: New file.
28270         * nptl/pthread_sigmask.c: New file.
28271         * nptl/pthread_sigqueue.c: New file.
28272
28273         * sysdeps/nptl/lowlevellock.h: New file.
28274         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28275         * sysdeps/nptl/lowlevellock-futex.h: New file.
28276
28277         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28278         Remove dead declarations.
28279
28280 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28281
28282         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28283         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28284         config-cflags-avx2.
28285         * sysdeps/x86_64/configure.ac: Likewise.
28286         * sysdeps/i386/configure: Regenerated.
28287         * sysdeps/x86_64/configure: Likewise.
28288         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28289         memset-avx2 only if config-cflags-avx2 is yes.
28290         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28291         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28292         defined.
28293         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28294         only if HAVE_AVX2_SUPPORT is defined.
28295         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28296
28297 2014-07-14  Alan Modra  <amodra@gmail.com>
28298
28299         [BZ #17153]
28300         * elf/elf.h (DT_PPC64_NUM): Correct value.
28301         * NEWS: Add to fixed bug list.
28302
28303 2014-07-13  Jim Meyering  <meyering@fb.com>
28304
28305         [BZ 17150]
28306         regex: don't deref NULL upon heap allocation failure
28307         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28308         failure in one more place.
28309         To trigger the segfault, configure grep -with-included-regex,
28310         build it, and run these commands:
28311         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28312
28313 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28314
28315         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28316
28317 2014-07-11  Richard Henderson  <rth@redhat.com>
28318
28319         * sysdeps/aarch64/libm-test-ulps: Update.
28320
28321 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28322
28323         [BZ #17135]
28324         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28325         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28326         (__nptl_setxid): Initialize error member.  Call
28327         __nptl_setxid_error.
28328         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28329         * nptl/descr.h (struct xid_command): Add error member.
28330         * nptl/tst-setuid3.c: New file.
28331         * nptl/Makefile (tests): Add it.
28332
28333 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28334
28335         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28336         New define.
28337         (__lll_trylock): Use __lll_base_trylock.
28338         (__lll_cond_trylock): Likewise.
28339
28340 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28341
28342         * nptl/pthread_create.c (start_thread): Use atomic_or and
28343         lll_futex_wake directly rather than lll_robust_dead.
28344         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28345         (lll_robust_dead): Macro removed.
28346         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28347         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28348         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28349         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28350         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28351         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28352         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28353         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28354         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28355         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28356         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28357         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28358         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28359         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28360         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28361
28362         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28363         Use atomic_compare_and_exchange_val_acq directly rather than
28364         lll_robust_trylock.
28365         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28366         (__lll_robust_trylock, lll_robust_trylock): Removed.
28367         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28368         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28369         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28370         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28371         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28372         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28373         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28374         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28375         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28376         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28377         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28378         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28379         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28380         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28381
28382 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28383
28384         * manual/locale.texi (Locale Names): New section documenting
28385         locale name syntax.  Adjust menu and node chaining accordingly.
28386         (Choosing Locale): Reference Locale Names, Locale Categories.
28387         Mention setting LC_ALL=C.  Reflect that name syntax is now
28388         documented.
28389         (Locale Categories): New section title.  Reference Locale Names.
28390         LC_ALL is an environment variable, but not a category.
28391         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28392         description, now in Locale Name.  Reference that section.  Locale
28393         name syntax is now documented.
28394
28395 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28396
28397         [BZ #17137]
28398         * locale/findlocale.c (name_present, valid_locale_name): New
28399         functions.
28400         (_nl_find_locale): Use the loc_name variable to store name
28401         candidates.  Call name_present and valid_locale_name to check and
28402         validate locale names.  Return an error if the locale is invalid.
28403
28404 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28405
28406         * locale/setlocale.c (setlocale): Use strdup for allocating
28407         composite name copy.
28408
28409 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28410
28411         Sync up with gnulib.
28412         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28413         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28414         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28415         and _GL_ARG_NONNULL.
28416         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28417         [!_LIBC]: Include code for Windows and Cygwin.
28418         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28419         Include prototype for int strerror_r.
28420         [!_LIBC] (is_open): New function.
28421         (flush_stdout): New function.
28422         (print_errno_message): Use it.
28423         (error): Likewise.
28424         (error_at_line): Likewise.
28425         (error_tail) Add function attribute macros.  Use
28426         __builtin_expect.
28427
28428         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28429
28430         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28431
28432         * io/ftw.c: Include sys/param.h unconditionally.
28433
28434         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28435
28436         [BZ #17125]
28437         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28438         libc_freeres_ptr.
28439         (freecache): New function to free CACHE on exit.
28440
28441         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28442         initialization.
28443
28444 2014-07-09  David S. Miller  <davem@davemloft.net>
28445
28446         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28447
28448         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28449         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28450         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28451         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28452         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28453         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28454         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28455         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28456         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28457         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28458         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28459         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28460         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28461
28462 2014-07-09  Andreas Schwab  <schwab@suse.de>
28463
28464         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28465         output.
28466         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28467         (do_test): Likewise.
28468
28469         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28470
28471 2014-07-09  Will Newton  <will.newton@linaro.org>
28472
28473         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28474         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28475         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28476         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28477         * sysdeps/hppa/start.S (_start): Likewise.
28478
28479 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28480
28481         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28482
28483         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28484         defined.
28485
28486 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28487
28488         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28489         after checking that it is non-NULL.
28490
28491         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28492
28493 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28494
28495         * sysdeps/powerpc/memmove.c: Remove file.
28496         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28497         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28498         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28499         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28500         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28501         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28502         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28503         string memmove instead of removed powerpc one.
28504
28505         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28506         [weak_alias]: Fix compiler warning due trailing data.
28507         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28508         [weak_alias]: Likewise.
28509         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28510         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28511
28512         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28513         (__libc_ifunc_impl_list): Add memmove functions.
28514
28515 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28516
28517         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28518         Remove code.
28519         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28520         Likewise.
28521         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28522         Likewise.
28523         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28524         Likewise.
28525         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28526         Likewise.
28527         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28528         Likewise.
28529         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28530         Likewise.
28531         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28532         Likewise.
28533         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28534         Likewise.
28535         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28536         Likewise.
28537         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28538         Likewise.
28539         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28540         Likewise.
28541         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28542         Likewise.
28543         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28544         Likewise.
28545         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28546         Likewise.
28547         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28548         Likewise.
28549         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28550         Likewise.
28551
28552 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28553
28554         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28555         to avoid alignment traps in non-cacheable memory.
28556         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28557
28558         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28559         multiarch objects.
28560         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28561         file: multiarch power7 memmove.
28562         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28563         multiarch default memmove.
28564         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28565         multiarch memove for powerpc32/power4.
28566
28567         * string/bcopy.c: Use full path to include memmove.c.
28568         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28569         multiarch objects.
28570         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28571         bcopy for powerpc64.
28572         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28573         bcopy for powerpc64.
28574         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28575         and memmove implementations.
28576         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28577         optimized multiarch memmove for POWER7/powerpc64.
28578         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28579         default multiarch memmove for powerpc64.
28580         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28581         multiarch for powerpc64.
28582         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28583         for POWER7/powerpc64.
28584         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28585         memmove for POWER7/powerpc64.
28586
28587         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28588         glibc default one.
28589
28590         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28591         __ELF_NATIVE_CLASS equal to 64.
28592
28593 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28594
28595         * sysdeps/nptl/lowlevellock.h: File removed.
28596
28597         * NEWS: NPTL is no longer an add-on!
28598         * nptl/internaltypes.h: Moved ...
28599         * sysdeps/nptl/internaltypes.h: ... here.
28600         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28601         * sysdeps/nptl/fork.c: Likewise.
28602         * sysdeps/nptl/gai_misc.h: Likewise.
28603         * sysdeps/nptl/librt-cancellation.c: Likewise.
28604         * sysdeps/nptl/jmp-unwind.c: Likewise.
28605         * sysdeps/nptl/setxid.h: Likewise.
28606         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28607         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28608         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28609         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28610         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28611         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28612         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28613         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28614         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28615         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28616         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28617         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28618         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28619         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28620         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28621         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28622         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28623         * nptl/Makeconfig: Moved ...
28624         * sysdeps/nptl/Makeconfig: ... here.
28625         * nptl/configure: File removed.
28626         * nptl/ANNOUNCE: File removed.
28627         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28628         * sysdeps/unix/sysv/linux/configure: Regenerated.
28629
28630         * nptl/Makefile (routines): Add libc_pthread_init,
28631         libc_multiple_threads, register-atfork and unregister-atfork.
28632         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28633         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28634         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28635         pthread-pi-defines.sym, structsem.sym.
28636         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28637         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28638         [$(subdir) = nptl] (tests): Add tst-setgetname.
28639         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28640         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28641         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28642         [!LIBC_SIGACTION]: Remove aliases.
28643         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28644         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28645         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28646         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28647         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28648         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28649         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28650         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28651         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28652         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28653         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28654         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28655         __libc_allocate_rtsig_private.
28656         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28657         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28658         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28659         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28660         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28661         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28662         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28663         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28664         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28665         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28666         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28667         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28668         * nptl/internaltypes.h: ... here.
28669         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28670         * sysdeps/nptl/jmp-unwind.c: ... here.
28671         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28672         * nptl/libc-lowlevellock.c: ... here.
28673         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28674         * nptl/libc_multiple_threads.c: ... here.
28675         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28676         * nptl/libc_pthread_init.c: ... here.
28677         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28678         * nptl/lowlevelbarrier.sym: ... here.
28679         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28680         * nptl/lowlevelcond.sym: ... here.
28681         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28682         * nptl/lowlevellock.c: ... here.
28683         * nptl/lowlevellock.h: Moved ...
28684         * sysdeps/nptl/lowlevellock.h: ... here.
28685         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28686         * nptl/lowlevelrobustlock.c: ... here.
28687         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28688         * nptl/lowlevelrobustlock.sym: ... here.
28689         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28690         * nptl/lowlevelrwlock.sym: ... here.
28691         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28692         * nptl/pt-fork.c: ... here.
28693         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28694         * nptl/pthread-pi-defines.sym: ... here.
28695         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28696         * nptl/pthread_attr_getaffinity.c: ... here.
28697         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28698         * nptl/pthread_attr_setaffinity.c: ... here.
28699         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28700         * nptl/pthread_mutex_cond_lock.c: ... here.
28701         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28702         Update #include.
28703         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28704         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28705         * nptl/pthread_once.c: ... here, replacing old file.
28706         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28707         * nptl/pthread_yield.c: ... here.
28708         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28709         * nptl/register-atfork.c: ... here.
28710         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28711         * nptl/sem_post.c: ... here.
28712         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28713         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28714         * nptl/sem_timedwait.c: ... here.
28715         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28716         * nptl/sem_trywait.c: ... here.
28717         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28718         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28719         * nptl/sem_wait.c: ... here.
28720         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28721         * nptl/structsem.sym: ... here.
28722         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28723         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28724         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28725         * nptl/unregister-atfork.c: ... here.
28726         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28727         * nptl/unwindbuf.sym: ... here.
28728         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28729         * sysdeps/nptl/fork.c: ... here.
28730         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28731         * sysdeps/nptl/fork.h: ... here.
28732         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28733         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28734         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28735         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28736         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28737         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28738         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28739         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28740         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28741         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28742         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28743         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28744         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28745         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28746         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28747         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28748         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28749         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28750         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28751         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28752         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28753         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28754         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28755         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28756         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28757         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28758         * sysdeps/unix/sysv/linux/raise.c: ... here.
28759         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28760         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28761         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28762         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28763         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28764         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28765         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28766         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28767         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28768         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28769         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28770         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28771         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28772         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28773         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28774
28775 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28776
28777         * sysdeps/generic/memcopy.h: Add comment for
28778         MEMCPY_OK_FOR_FWD_MEMMOVE.
28779
28780 2014-07-04  Will Newton  <will.newton@linaro.org>
28781
28782         * string/memchr.c: Merge from gnulib.
28783         [_LIBC]: Remove conditionals.
28784         (__ptr_t): Remove define.
28785         (LONG_MAX_32_BITS): Likewise.
28786         (LONG_MAX): Likewise.
28787         (MEMCHR): Use ANSI prototype and optimize algorithm.
28788
28789         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28790
28791 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28792
28793         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28794         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28795
28796         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28797         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28798         in a bare environment with no <stdlib.h> installed.
28799         * sysdeps/nptl/configure: Regenerated.
28800
28801         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28802
28803         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28804         AC_EGREP_CPP for kernel header checks, so they only succeed if
28805         including <linux/version.h> actually works right.
28806         * sysdeps/unix/sysv/linux/configure: Regenerated.
28807
28808         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28809         value so it's not diagnosed as unused.
28810
28811         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28812         thing) with "ifeq ($(subdir),rt)".
28813
28814 2014-07-03  Richard Henderson  <rth@redhat.com>
28815
28816         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28817         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28818         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28819
28820         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28821         (math_force_eval): New.
28822
28823         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28824         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28825
28826         * sysdeps/alpha/fpu/s_round.c: Remove file.
28827         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28828
28829         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28830         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28831         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28832         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28833         (_dl_start, print_statistics): Likewise.
28834         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28835         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28836
28837         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28838         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28839         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28840         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28841         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28842         (HP_SMALL_TIMING_AVAIL): Define.
28843         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28844         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28845         (HP_SMALL_TIMING_AVAIL): Define.
28846         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28847         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28848
28849         * sysdeps/aarch64/hp-timing.h: New file.
28850
28851         * sysdeps/generic/hp-timing.h: Remove dead comment.
28852         * sysdeps/generic/hp-timing-common.h: New file.
28853         * sysdeps/alpha/hp-timing.h: Include it.
28854         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28855         * sysdeps/i386/i686/hp-timing.h: Likewise.
28856         * sysdeps/ia64/hp-timing.h: Likewise.
28857         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28858         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28859         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28860         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28861         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28862         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28863         (hp_timing_t): New.
28864
28865         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28866         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28867         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28868         * elf/rtld.c (_dl_start_final): Likewise.
28869         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28870         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28871         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28872         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28873         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28874         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28875         (HP_TIMING_DIFF_INIT): Remove.
28876         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28877         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28878         (HP_TIMING_DIFF_INIT): Remove.
28879         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28880         * sysdeps/i386/i686/hp-timing.c: Remove file.
28881         * sysdeps/x86_64/hp-timing.c: Remove file.
28882         * sysdeps/ia64/hp-timing.c: Remove file.
28883         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28884         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28885         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28886         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28887
28888         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28889         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28890         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28891         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28892         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28893         (HP_TIMING_ACCUM): Remove.
28894         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28895         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28896         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28897
28898         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28899         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28900         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28901         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28902         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28903         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28904         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28905         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28906
28907         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28908
28909 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28910
28911         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28912
28913 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28914
28915         Sync up with gettext.
28916         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28917         [_MSC_VER]: Include malloc.h
28918         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28919         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28920         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28921         TEMP_FAILURE_RETRY.  Cast return of alloca.
28922         [!_LIBC] Call gl_rwlock_init.
28923         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28924
28925 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28926
28927         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28928         before checking its value.
28929
28930 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28931
28932         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28933
28934         * debug/memcpy_chk.c: Don't include pagecopy.h.
28935         * debug/mempcpy_chk.c: Likewise.
28936         * string/memcpy.c: Likewise.
28937         * string/memmove.c: Likewise.
28938         * sysdeps/powerpc/memmove.c: Likewise.
28939         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28940         definition of PAGE_COPY_FWD_MAYBE here...
28941         * sysdeps/generic/pagecopy.h: ... from here.
28942         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28943
28944 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28945             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28946
28947         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28948         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28949         optimizations.
28950         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28951         (__libc_ifunc_impl_list): Likewise.
28952         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28953         multiarch strcat for PPC64.
28954         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28955         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28956
28957 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28958
28959         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28960
28961 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28962
28963         * intl/loadmsgcat.c: Remove declaration of
28964         get_sysdep_segment_value.
28965         (get_sysdep_segment_value): Use ISO C style.
28966         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28967         semicolon.  Fix typo and formatting in comment.
28968         (_nl_unload_domain): Use ISO C style.
28969
28970         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28971
28972 2014-07-02  Will Newton  <will.newton@linaro.org>
28973
28974         * malloc/obstack.c: Merge from gnulib master.
28975         [HAVE_CONFIG_H]: Remove conditional code.
28976         [!_LIBC]: Include config.h.
28977         [!ELIDE_CODE]: Don't include inttypes.h, include
28978         stdint.h unconditionally.
28979         (print_and_abort): Mark as _Noreturn.
28980         (_obstack_allocated_p): Mark as __attribute_pure__.
28981         (obstack_free): Rename to __obstack_free.
28982         [!__attribute__]: Remove conditional code.
28983         * malloc/obstack.h: Merge from gnulib master.
28984         [__cplusplus]: Move conditional down.
28985         [!__attribute_pure__]: Define __attribute_pure__ here
28986         if it is not already defined.
28987         (_obstack_memory_used): Mark as __attribute_pure__.
28988         [!__obstack_free]: Define as obstack_free.
28989         [__GNUC__]: Remove check for ancient NeXT gcc.
28990
28991 2014-07-02  Will Newton  <will.newton@linaro.org>
28992             Paul Eggert  <eggert@cs.ucla.edu>
28993
28994         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28995
28996 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28997
28998         * resolv/gethnamaddr.c: Add comment warning that the file is
28999         not maintained.
29000
29001 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
29002
29003         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
29004         entries.
29005
29006         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
29007         entry for aio_cancel and aio_cancel64.
29008         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
29009         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
29010         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
29011         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
29012         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
29013         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
29014         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
29015         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
29016         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
29017         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
29018         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
29019         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
29020         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
29021
29022 2014-07-01  Roland McGrath  <roland@hack.frob.com>
29023
29024         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
29025         * nptl/pthread_mutex_lock.c: Likewise.
29026         * nptl/pthread_mutex_timedlock.c: Likewise.
29027         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
29028
29029 2014-07-01  Richard henderson  <rth@redhat.com>
29030
29031         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
29032         (__isnan, __isnanl): Remove.
29033         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
29034
29035         * sysdeps/alpha/fpu/libm-test-ulps: Update.
29036
29037 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
29038
29039         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
29040
29041 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29042
29043         * resolv/nss_dns/dns-host.c (getanswer_r)
29044         [MULTI_PTRS_ARE_ALIASES]: Remove code.
29045
29046 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
29047
29048         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29049         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
29050         undefine.
29051         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
29052         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
29053
29054 2014-07-01  Roland McGrath <roland@hack.frob.com>
29055
29056         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
29057         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
29058
29059         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
29060         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
29061
29062         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
29063         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
29064         ... here.
29065         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
29066         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
29067
29068         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
29069         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
29070         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
29071         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
29072
29073         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
29074         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
29075         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
29076         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
29077         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
29078         Moved ...
29079         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
29080         ... here.
29081         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
29082         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
29083         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
29084         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
29085         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
29086         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
29087         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
29088         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
29089         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
29090         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
29091         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
29092         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
29093         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
29094         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
29095         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
29096         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
29097         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
29098         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
29099         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
29100         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
29101         ... here.
29102         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
29103         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
29104         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
29105         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
29106         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
29107         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
29108         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
29109         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
29110
29111 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
29112
29113         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
29114         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
29115         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
29116         Add sysdep.
29117
29118 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29119
29120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29121
29122 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29123
29124         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29125         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29126
29127         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29128
29129         * sysdeps/arm/libm-test-ulps: Regenerated.
29130
29131 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29132             Roland McGrath <roland@hack.frob.com>
29133
29134         * test-skeleton.c (signal_handler): Kill the whole process group
29135         before killing the child individually.
29136         (main): Report any failure on `setpgid'.
29137
29138 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29139
29140         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29141         from _TLS_H to _ARM_NPTL_TLS_H.
29142         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29143         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29144
29145 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29146
29147         [BZ #16539]
29148         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29149         (__expm1l): Return argument unchanged when small but not
29150         subnormal.
29151
29152         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29153         include macro name.
29154         (_FP_UNPACK_RAW_1_P): Likewise.
29155         (_FP_PACK_RAW_1): Likewise.
29156         (_FP_PACK_RAW_1_P): Likewise.
29157         (_FP_MUL_MEAT_1_wide): Likewise.
29158         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29159         (_FP_MUL_MEAT_1_hard): Likewise.
29160         (_FP_DIV_MEAT_1_imm): Likewise.
29161         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29162         (_FP_DIV_MEAT_1_udiv): Likewise.
29163         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29164         (_FP_UNPACK_RAW_2): Likewise.
29165         (_FP_UNPACK_RAW_2_P): Likewise.
29166         (_FP_PACK_RAW_2): Likewise.
29167         (_FP_PACK_RAW_2_P): Likewise.
29168         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29169         (_FP_MUL_MEAT_2_wide): Likewise.
29170         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29171         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29172         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29173         (_FP_MUL_MEAT_2_gmp): Likewise.
29174         (_FP_DIV_MEAT_2_udiv): Likewise.
29175         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29176         (_FP_FRAC_SRL_4): Likewise.
29177         (_FP_FRAC_SRST_4): Likewise.
29178         (_FP_FRAC_SRS_4): Likewise.
29179         (_FP_UNPACK_RAW_4): Likewise.
29180         (_FP_UNPACK_RAW_4_P): Likewise.
29181         (_FP_PACK_RAW_4): Likewise.
29182         (_FP_PACK_RAW_4_P): Likewise.
29183         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29184         (_FP_MUL_MEAT_4_wide): Likewise.
29185         (_FP_MUL_MEAT_4_gmp): Likewise.
29186         (umul_ppppmnnn): Likewise.
29187         (_FP_DIV_MEAT_4_udiv): Likewise.
29188         (__FP_FRAC_ADD_4): Likewise.
29189         (__FP_FRAC_SUB_3): Likewise.
29190         (__FP_FRAC_SUB_4): Likewise.
29191         (__FP_FRAC_DEC_3): Likewise.
29192         (__FP_FRAC_DEC_4): Likewise.
29193         (__FP_FRAC_ADDI_4): Likewise.
29194         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29195         (_FP_FRAC_SRL_8): Likewise.
29196         (_FP_FRAC_SRS_8): Likewise.
29197
29198         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29199         include macro name.
29200         (FP_UNPACK_RAW_EP): Likewise.
29201         (FP_PACK_RAW_E): Likewise.
29202         (FP_PACK_RAW_EP): Likewise.
29203         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29204         (_FP_ISSIGNAN): Likewise.
29205         (_FP_ADD_INTERNAL): Likewise.
29206         (_FP_FMA): Likewise.
29207         (_FP_CMP): Likewise.
29208         (_FP_SQRT): Likewise.
29209         (_FP_TO_INT): Likewise.
29210         (_FP_FROM_INT): Likewise.
29211         (FP_EXTEND): Likewise.
29212         (_FP_DIV_MEAT_N_loop): Likewise.
29213
29214 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29215
29216         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29217         throughout.
29218
29219 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29220
29221         [BZ #17097]
29222         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29223         result with correct sign in case of exponents that produce
29224         overflow except for X very close to 1.
29225
29226 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29227
29228         mktime: merge #if/#ifdef usage from glibc
29229         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29230         as that works with both Glibc's and Gnulib's style.
29231         See thread starting at Siddhesh Poyarekar's bug report at:
29232         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29233
29234 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29235
29236         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29237         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29238         * sysdeps/tile/tilegx/memmove.c: Remove file.
29239
29240 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29241
29242         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29243         abi-name definition.
29244         * scripts/soversions.awk: Do not handle or generate ABI lines.
29245         * shlib-versions: Remove ABI entries.
29246         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29247         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29248
29249 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29250
29251         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29252         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29253         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29254         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29255         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29256         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29257         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29258         Moved ...
29259         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29260         ... here.
29261         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29262         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29263         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29264         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29265         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29266         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29267         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29268         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29269         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29270         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29271         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29272         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29273         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29274         Moved ...
29275         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29276         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29277         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29278         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29279         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29280         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29281         Moved ...
29282         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29283         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29284         Moved ...
29285         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29286         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29287         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29288         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29289         Moved ...
29290         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29291         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29292         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29293         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29294         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29295         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29296         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29297         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29298         Moved ...
29299         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29300         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29301         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29302         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29303         Moved ...
29304         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29305         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29306         Moved ...
29307         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29308         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29309         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29310         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29311         Moved ...
29312         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29313         ... here.
29314         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29315         Identical file removed.
29316         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29317         Moved ...
29318         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29319         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29320         Identical file removed.
29321         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29322         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29323         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29324         Moved ...
29325         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29326         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29327         Identical file removed.
29328         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29329         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29330         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29331         Identical file removed.
29332         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29333         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29334         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29335         Identical file removed.
29336         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29337         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29338         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29339         Identical file removed.
29340         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29341         Moved ...
29342         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29343         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29344         Identical file removed.
29345         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29346         Moved ...
29347         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29348         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29349         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29350         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29351         Identical file removed.
29352         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29353         Moved ...
29354         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29355         ... here.
29356         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29357         Identical file removed.
29358         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29359         Moved ...
29360         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29361         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29362         Identical file removed.
29363         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29364         Moved ...
29365         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29366         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29367         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29368         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29369         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29370         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29371         Moved ...
29372         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29373         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29374         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29375
29376         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29377         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29378         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29379         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29380         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29381
29382 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29383
29384         [BZ #17092]
29385         * nscd/nscd.c (monitor_child): Return exit status of child
29386         instead of return value from wait syscall.
29387
29388 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29389
29390         * configure.ac (libc_commonpagesize): Remove variable.
29391         (libc_relro_required): Likewise.
29392         (libc_cv_z_relro): Remove configure test.
29393         * configure: Regenerated.
29394         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29395         variable.
29396         (libc_relro_required): Likewise.
29397         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29398         (libc_relro_required): Likewise.
29399         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29400         (libc_relro_required): Likewise.
29401         * sysdeps/arm/preconfigure: Regenerated.
29402         * sysdeps/ia64/preconfigure: Remove file.
29403         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29404         variable.
29405         (libc_relro_required): Likewise.
29406
29407         [BZ #16561]
29408         [BZ #16562]
29409         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29410         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29411         recompute overflowing results in original rounding mode.
29412         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29413         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29414         recompute overflowing results in original rounding mode.
29415         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29416         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29417         recompute overflowing results in original rounding mode.
29418         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29419         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29420         recompute overflowing results in original rounding mode.
29421         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29422         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29423         recompute overflowing results in original rounding mode.
29424         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29425         (libc_feholdsetround_ctx): New macro.
29426         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29427         * sysdeps/i386/fpu/libm-test-ulps: Update.
29428         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29429
29430 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29431
29432         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29433         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29434         corresponding .cpsetup call.
29435
29436 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29437
29438         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29439         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29440         * sysdeps/arm/Makefile [$(subdir) = csu]
29441         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29442         (static-only-routines): Add aeabi_read_tp here.
29443         (shared-only-routines): Add libc-aeabi_read_tp here.
29444         (CFLAGS-libc-start.c): Add -fexceptions here.
29445         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29446         (sysdep_routines, static-only-routines, shared-only-routines):
29447         Don't add to these here.
29448         (CFLAGS-libc-start.c): Likewise.
29449
29450         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29451         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29452         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29453         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29454         * sysdeps/arm/Makefile [$(subdir) = rt]
29455         (librt-sysdep_routines, librt-shared-only-routines):
29456         Append rt-aeabi_unwind_cpp_pr1 here.
29457         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29458         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29459         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29460         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29461         Append nptl-aeabi_unwind_cpp_pr1 here.
29462         (tests): Filter out tst-cleanupx4 here.
29463         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29464         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29465         Don't do those here.
29466
29467 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29468
29469         * scripts/list-sources.sh: Do not handle ports specially.
29470
29471 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29472
29473         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29474         * sysdeps/arm/feupdateenv.c: Likewise.
29475
29476         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29477
29478 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29479
29480         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29481         trailing whitespace removed.
29482         * scripts/config.guess: Update to version 2014-03-23.
29483         * scripts/config.sub: Update to version 2014-05-01
29484         * scripts/install-sh: Update to version 2013-12-25.23.
29485         * scripts/move-if-change: Update from gnulib.
29486
29487 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29488
29489         * debug/memmove_chk.c: Remove pagecopy.h include.
29490
29491 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29492
29493         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29494         identical to gnulib mktime.
29495
29496 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29497
29498         * configure.ac: Do not test for machine being rs6000.  Do not test
29499         for powerpc*-*soft.
29500         * configure: Regenerated.
29501
29502         [BZ #11505]
29503         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29504         test.
29505         * configure: Regenerated.
29506         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29507         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29508         Remove configure test.
29509         * sysdeps/arm/configure: Regenerated.
29510         * sysdeps/nptl/configure.ac: Do not check
29511         libc_cv_asm_cfi_directives.
29512         * sysdeps/nptl/configure: Regenerated.
29513         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29514         * sysdeps/x86_64/nptl/configure: Remove generated file.
29515         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29516         unconditional.
29517         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29518
29519 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29520
29521         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29522         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29523         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29524         it is defined.
29525
29526         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29527         instead of whether it is defined.
29528         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29529         * sysdeps/hppa/dl-machine.h: Likewise.
29530         * sysdeps/ia64/dl-machine.h: Likewise.
29531         * sysdeps/m68k/dl-machine.h: Likewise.
29532         * sysdeps/microblaze/dl-machine.h: Likewise.
29533         * sysdeps/mips/dl-machine.: Likewise.
29534         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29535         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29536         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29537         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29538         * sysdeps/sh/dl-machine.h: Likewise.
29539         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29540         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29541         * sysdeps/tile/dl-machine.h: Likewise.
29542         * sysdeps/x86_64/dl-machine.h: Likewise.
29543
29544         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29545         code.
29546         (verify_persistent_db): Likewise.
29547
29548 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29549
29550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29551         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29553         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29555         Moved ...
29556         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29557         ... here.
29558         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29559         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29561         Identical file removed.
29562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29563         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29565         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29567         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29568         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29569         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29570         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29571         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29573         Moved ...
29574         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29575         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29576         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29578         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29580         Moved ...
29581         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29583         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29585         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29587         Identical file removed.
29588         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29589         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29591         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29592         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29593         Moved ...
29594         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29595         ... here.
29596         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29597         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29598         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29599         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29600         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29601         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29603         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29605         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29607         Moved ...
29608         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29610         Moved ...
29611         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29612         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29613         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29614         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29615         Moved ...
29616         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29618         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29619
29620         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29621         folded into ...
29622         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29623         * sysdeps/unix/sysv/linux/s390/Versions
29624         (libpthread: GLIBC_2.19): New version set.
29625         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29626         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29627         (librt: GLIBC_2.3.3): New version set.
29628         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29629         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29630         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29631         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29632         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29633         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29634         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29635         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29636         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29637         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29638         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29639         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29640         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29641         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29642         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29643         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29644         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29645         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29646         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29647         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29648         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29649         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29650         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29651         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29652         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29653         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29654         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29655         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29656         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29657         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29658         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29659         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29660         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29661         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29662         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29663         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29664         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29665         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29666         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29667         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29668         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29669         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29670         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29671         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29672         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29673
29674         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29675         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29676         (__libc_vfork): Define the function under this name.
29677         [!NOT_IN_libc] (__vfork): Make this an alias.
29678         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29679         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29680         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29681         (__libc_vfork): Define the function under this name.
29682         [!NOT_IN_libc] (__vfork): Make this an alias.
29683         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29684         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29685         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29686         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29687         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29688         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29689
29690         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29691         code that was previously under [RESET_PID].
29692         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29693         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29694         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29695
29696         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29697         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29698         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29699         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29700         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29701         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29702         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29703         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29704         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29705         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29706         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29707         Moved ...
29708         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29709         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29710         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29711         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29712         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29713         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29714         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29715         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29716         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29717         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29718         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29719         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29720         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29721         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29722         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29723         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29724         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29725         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29726         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29727         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29728         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29729         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29730         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29731         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29732         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29733         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29734         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29735         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29736         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29737
29738 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29739
29740         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29741         that was previously under [RESET_PID].
29742         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29743
29744 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29745
29746         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29747         not undefine and redefine.
29748         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29749         [O_CLOEXEC]: Make code unconditional.
29750         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29751         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29752         <kernel-features.h>.
29753         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29754         conditional variable definition.
29755         (shm_open) [O_CLOEXEC]: Make code unconditional.
29756         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29757         code.
29758
29759         * configure.ac (USE_REGPARMS): Don't define here.
29760         * configure: Regenerated.
29761         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29762         * sysdeps/i386/configure: Regenerated.
29763
29764         * nptl/createthread.c: Don't include kernel-features.h.
29765         * nptl/pthread_cancel.c: Likewise.
29766         * nptl/pthread_condattr_setclock.c: Likewise.
29767         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29768         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29769         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29770         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29771         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29772         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29773         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29774         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29775         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29776         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29777         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29778         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29779         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29780         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29781         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29782         * nscd/gai.c: Likewise.
29783         * nss/nss_db/db-open.c: Likewise.
29784         * sysdeps/generic/ldsodefs.h: Likewise.
29785         * sysdeps/sh/nptl/tls.h: Likewise.
29786         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29787         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29788         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29789         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29790         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29791         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29792         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29793         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29794         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29795         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29796         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29797         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29798         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29799         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29800         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29801         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29802         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29803         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29804         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29805         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29806         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29807         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29808         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29809         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29810         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29811         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29812         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29813         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29814         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29815         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29816         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29817         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29818         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29819         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29820         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29821         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29822         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29823         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29824         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29825         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29826         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29827         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29828         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29829         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29830         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29831         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29832         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29833         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29834         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29835         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29836         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29837         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29838         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29839         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29840         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29841         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29842         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29843         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29866         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29867         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29868         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29869         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29870         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29871         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29872         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29873         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29874         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29875         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29876         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29877         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29878         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29879         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29880         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29881         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29882         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29883         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29884         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29885         * sysdeps/unix/sysv/linux/system.c: Likewise.
29886         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29887         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29888         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29889         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29890         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29891         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29892         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29893
29894         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29895         * configure: Regenerated.
29896         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29897
29898         * configure.ac (base_machine): Do not set specially for particular
29899         machines here.
29900         * configure: Regenerated.
29901         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29902         settings from configure.ac.
29903         * sysdeps/i386/preconfigure: New file.
29904         * sysdeps/s390/preconfigure: Likewise.
29905         * sysdeps/sh/preconfigure: Likewise.
29906         * sysdeps/sparc/preconfigure: Likewise.
29907
29908 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29909
29910         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29911         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29912         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29913         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29914         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29915         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29916         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29917         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29918         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29919         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29920         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29921         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29922         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29923         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29924         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29925         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29926         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29927         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29928         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29929
29930         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29931         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29932         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29933         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29934         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29935         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29936         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29937         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29938         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29939         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29940         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29941         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29942         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29943         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29944         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29945         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29946         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29947         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29948         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29949         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29950         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29951         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29952         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29953         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29954         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29955         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29956         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29957         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29958         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29959         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29960         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29961         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29962         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29963         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29964         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29965         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29966         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29967         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29968
29969         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29970         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29971         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29972         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29973         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29974         Moved ...
29975         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29976         ... here.
29977         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29978         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29979         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29980         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29981         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29982         Moved ...
29983         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29984         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29985         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29986         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29987         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29989         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29990         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29991         Moved ...
29992         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29994         Moved ...
29995         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29996         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29997         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29998         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29999         Moved ...
30000         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
30001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
30002         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
30003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
30004         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
30005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
30006         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
30007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
30008         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
30009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
30010         Moved ...
30011         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
30012         ... here.
30013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
30014         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
30015         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
30016         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
30017         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
30018         Moved ...
30019         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
30020         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
30021         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
30022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
30023         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
30024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
30025         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
30026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
30027         Moved ...
30028         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
30029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
30030         Moved ...
30031         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
30032         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
30033         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
30034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
30035         Moved ...
30036         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
30037         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
30038         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
30039         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
30040         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
30041
30042 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30043
30044         * timezone/checktab.awk: Update from tzcode 2014e.
30045         * timezone/private.h: Likewise.
30046         * timezone/tzfile.h: Likewise.
30047         * timezone/zdump.c: Likewise.
30048         * timezone/zic.c: Likewise.
30049
30050         * sysdeps/unix/sysv/linux/kernel-features.h
30051         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
30052         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
30053         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
30054         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
30055         Remove conditional code.
30056
30057 2014-06-25  Will Newton  <will.newton@linaro.org>
30058
30059         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
30060         (_dl_arm_cap_flags): Add HWCAP2 values.
30061         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
30062         (_DL_HWCAP_COUNT): Increase to 37.
30063         (_DL_HWCAP_LAST): New define.
30064         (_DL_HWCAP2_LAST): New define.
30065         (_dl_procinfo): Add support for printing
30066         AT_HWCAP2 entries.
30067         (_dl_string_hwcap): Use _dl_hwcap_string.
30068
30069 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30070
30071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30072
30073 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30074
30075         * README: Do not mention ports directory.
30076
30077         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
30078         Remove macro.
30079         * sysdeps/unix/sysv/linux/futimes.c: Do not include
30080         <kernel-features.h>.
30081         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
30082         conditional variable definition.
30083         (__futimes): Update comment.
30084         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
30085         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
30086
30087         [BZ #16560]
30088         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
30089         arguments close to 0.
30090         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
30091         Likewise.
30092         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
30093         Likewise.
30094         * math/auto-libm-test-in: Add more tests of exp10.
30095         * math/auto-libm-test-out: Regenerated.
30096         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30097
30098         * sysdeps/unix/sysv/linux/kernel-features.h
30099         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
30100         * sysdeps/unix/sysv/linux/readv.c: Do not include
30101         <kernel-features.h>.
30102         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30103         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30104         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30105         unconditional.
30106         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30107         conditional code.
30108         * sysdeps/unix/sysv/linux/writev.c: Do not include
30109         <kernel-features.h>.
30110         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30111         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30112         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30113         unconditional.
30114         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30115         conditional code.
30116
30117 2014-06-25  Will Newton  <will.newton@linaro.org>
30118
30119         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
30120         comment changes throughout the file.  Remove checks
30121         for HAVE_*_H definitions that are not required.
30122         (__gen_tempname): Call abort if an unknown kind value is
30123         passed.
30124
30125 2014-06-25  Andreas Schwab  <schwab@suse.de>
30126
30127         [BZ #17086]
30128         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30129         scalbln, scalblnf, scalblnl in libc.
30130
30131 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30132
30133         [BZ #17086]
30134         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30135         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30136         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30137
30138 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30139
30140         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30141         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30142         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30143         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30144         Update #include.
30145         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30146         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30147         Update #include.
30148         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30149         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30150         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30151         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30152         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30153         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30154         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30155         * sysdeps/x86/bits/semaphore.h: ... here.
30156         * sysdeps/x86/nptl/elide.h: Moved ...
30157         * sysdeps/x86/elide.h: ... here.
30158         * sysdeps/x86_64/nptl/Implies: File removed.
30159         * sysdeps/i386/nptl/Implies: File removed.
30160
30161 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30162
30163         [BZ #16539]
30164         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30165         return the argument for normal arguments with exponent below -64.
30166         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30167         Likewise.
30168         * math/auto-libm-test-in: Add another test of expm1.
30169         * math/auto-libm-test-out: Regenerated.
30170
30171         [BZ #16287]
30172         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30173         calling __erfcl for arguments at least 16.
30174         * math/auto-libm-test-in: Add more tests of erf.
30175         * math/auto-libm-test-out: Regenerated.
30176
30177         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30178         individual architectures.
30179         * sysdeps/unix/sysv/linux/configure: Regenerated.
30180         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30181         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30182         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30183         (ldd_rewrite_script): Define variable.
30184         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30186         file.
30187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30188         generated file.
30189         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30190         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30191         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30192         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30193         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30194         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30195         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30196         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30197
30198 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30199
30200         [BZ #17084]
30201         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30202         Rename member __data.d to __data.__elision_data.
30203
30204 2014-06-24  Wilco  <wdijkstr@arm.com>
30205
30206         * NEWS: Add 16918 to fixed bug list.
30207
30208 2014-06-24  Wilco  <wdijkstr@arm.com>
30209
30210         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30211
30212 2014-06-24  Wilco  <wdijkstr@arm.com>
30213
30214         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30215         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30216         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30217         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30218         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30219         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30220         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30221         Use _FPU_MASK_RM.
30222
30223 2014-06-24  Wilco  <wdijkstr@arm.com>
30224
30225         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30226
30227 2014-06-24  Wilco  <wdijkstr@arm.com>
30228
30229         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30230         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30231         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30232         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30233
30234 2014-06-24  Wilco  <wdijkstr@arm.com>
30235
30236         [BZ #16918]
30237         * sysdeps/arm/feupdateenv.c (feupdateenv):
30238         Rewrite to reduce FPSCR accesses and fix return value.
30239
30240 2014-06-24  Wilco  <wdijkstr@arm.com>
30241
30242         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30243         Optimize to avoid unnecessary FPSCR writes.
30244         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30245         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30246         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30247         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30248
30249 2014-06-24  Wilco  <wdijkstr@arm.com>
30250
30251         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30252         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30253         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30254         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30255         Call libc_fetestexcept_vfp.
30256         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30257         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30258         __SOFTFP__ ifdef so that they can be built for softfp.
30259
30260 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30261
30262         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30263         argument type signed char.
30264
30265         * Makerules (check-abi): Dump diff of symlist if the test
30266         fails.
30267
30268 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30269
30270         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30271         using abort.
30272
30273         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30274         Remove unused variable ST.
30275
30276 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30277
30278         [BZ #16354]
30279         [BZ #17061]
30280         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30281         small arguments before calling __expm1.
30282         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30283         small arguments before calling __expm1f.
30284         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30285         small arguments before calling __expm1l.
30286         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30287         Likewise.
30288         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30289         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30290         spurious underflow for some cosh tests.
30291         * math/auto-libm-test-out: Regenerated.
30292         * sysdeps/i386/fpu/libm-test-ulps: Update.
30293
30294         [BZ #17050]
30295         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30296         (__ieee754_y1): Set errno if return value overflows.
30297         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30298         (__ieee754_y1f): Set errno if return value overflows.
30299         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30300         (__ieee754_y1l): Set errno if return value overflows.
30301         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30302         (__ieee754_y1l): Set errno if return value overflows.
30303         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30304         * math/auto-libm-test-out: Regenerated.
30305
30306         * math/gen-auto-libm-tests.c: Document use of
30307         ignore-zero-inf-sign.
30308         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30309         (input_flags): Add ignore-zero-inf-sign.
30310         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30311         * math/gen-libm-test.pl (generate_testfile): Handle
30312         ignore-zero-inf-sign.
30313         * math/auto-libm-test-in: Mark some cpow tests with
30314         ignore-zero-inf-sign and some with xfail-rounding.
30315         * math/auto-libm-test-out: Regenerated.
30316         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30317         * sysdeps/i386/fpu/libm-test-ulps: Update.
30318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30319
30320         [BZ #16315]
30321         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30322         overflowing or underflowing operations take place with sign of
30323         result.
30324         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30325         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30326         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30327         (__ieee754_pow): Recompute overflowing and underflowing results in
30328         original rounding mode.
30329         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30330         (__powl_helper): Allow negative argument X and scale negated value
30331         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30332         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30333         overflowing or underflowing operations take place with sign of
30334         result.
30335         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30336         Include <math.h>.
30337         * math/auto-libm-test-in: Add more tests of pow.
30338         * math/auto-libm-test-out: Regenerated.
30339         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30340         (pow_tonearest_test_data): Remove.
30341         (pow_test_tonearest): Likewise.
30342         (pow_towardzero_test_data): Likewise.
30343         (pow_test_towardzero): Likewise.
30344         (pow_downward_test_data): Likewise.
30345         (pow_test_downward): Likewise.
30346         (pow_upward_test_data): Likewise.
30347         (pow_test_upward): Likewise.
30348         (main): Don't call removed functions.
30349         * sysdeps/i386/fpu/libm-test-ulps: Update.
30350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30351
30352 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30353
30354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30355         Moved ...
30356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30358         Moved ...
30359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30361         Moved ...
30362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30364         Moved ...
30365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30367         File removed.
30368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30369         File removed.
30370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30371         File removed.
30372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30373         File removed.
30374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30375         File removed.
30376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30377         File removed.
30378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30379         File removed.
30380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30381         File removed.
30382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30383         File removed.
30384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30385         File removed.
30386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30387         File removed.
30388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30389         File removed.
30390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30391         Moved ...
30392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30394         Moved ...
30395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30396         ... here.
30397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30398         Moved ...
30399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30401         Moved ...
30402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30404         Moved ...
30405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30407         Moved ...
30408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30410         Moved ...
30411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30413         Moved ...
30414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30416         Moved ...
30417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30420         ... here.
30421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30422         Moved ...
30423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30425         Moved ...
30426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30427         ... here.
30428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30429         Moved ...
30430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30431         ... here.
30432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30433         Moved ...
30434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30435         ... here.
30436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30437         Moved ...
30438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30440         Moved ...
30441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30445         Moved ...
30446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30447         ... here.
30448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30449         Moved ...
30450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30451         ... here.
30452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30453         Moved ...
30454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30456         Moved ...
30457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30459         Moved ...
30460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30462         Moved ...
30463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30465         Moved ...
30466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30467         ... here.
30468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30469         Moved ...
30470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30472         Moved ...
30473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30475         Moved ...
30476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30478         Moved ...
30479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30483         Moved ...
30484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30486         Moved ...
30487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30489         Moved ...
30490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30491         ... here.
30492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30493         Moved ...
30494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30495         ... here.
30496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30497         Moved ...
30498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30499         ... here.
30500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30501         Moved ...
30502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30504         Moved ...
30505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30507         Moved ...
30508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30510         Moved ...
30511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30512         ... here.
30513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30514         Moved ...
30515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30516         ... here.
30517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30518         Moved ...
30519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30520         ... here.
30521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30522         Moved ...
30523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30525         Moved ...
30526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30527
30528 2014-06-23  Will Newton  <will.newton@linaro.org>
30529             Wilco  <wdijkstr@arm.com>
30530
30531         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30532         implementation.  Include get-rounding-mode.h.
30533         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30534         [!libc_feholdsetround_noex_ctx]: Define
30535         libc_feholdsetround_noex_ctx.
30536         [!libc_feholdsetround_noexf_ctx]: Define
30537         libc_feholdsetround_noexf_ctx.
30538         [!libc_feholdsetround_noexl_ctx]: Define
30539         libc_feholdsetround_noexl_ctx.
30540         (libc_feholdsetround_ctx): New function.
30541         (libc_feresetround_ctx): New function.
30542         (libc_feholdsetround_noex_ctx): New function.
30543         (libc_feresetround_noex_ctx): New function.
30544
30545 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30546
30547         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30548         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30549         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30550         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30551         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30552         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30553
30554         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30555         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30556         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30557         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30558         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30559         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30560         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30561         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30562         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30563         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30564         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30565         Moved ...
30566         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30567         ... here.
30568         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30569         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30570         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30571         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30572         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30573         Moved ...
30574         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30575         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30576         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30577         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30578         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30579         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30580         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30581         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30582         Moved ...
30583         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30584         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30585         Moved ...
30586         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30587         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30588         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30589         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30590         Moved ...
30591         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30592         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30593         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30594         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30595         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30596         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30597         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30598         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30599         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30600         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30601         Moved ...
30602         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30603         ... here.
30604         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30605         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30606         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30607         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30608         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30609         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30610         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30611         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30612         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30613         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30614         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30615         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30616         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30617         Moved ...
30618         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30619         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30620         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30621         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30622         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30623         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30624         Moved ...
30625         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30626         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30627         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30628         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30629         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30630
30631         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30632         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30633         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30634         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30635         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30636         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30637         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30638         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30639         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30640         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30641         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30642         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30643         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30644         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30645         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30646         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30647         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30648         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30649         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30650         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30651         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30652         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30653         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30654         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30655         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30656         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30657         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30658         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30659
30660 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30661
30662         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30663         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30664         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30665         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30666         (IPV6_PMTUDISC_INTERFACE): Likewise.
30667         (IPV6_PMTUDISC_OMIT): Likewise.
30668
30669 2014-06-23  Andreas Schwab  <schwab@suse.de>
30670
30671         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30672         Remove unused errout label.
30673
30674 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30675
30676         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30677         macro: hardware supports Vector Crypto instructions.
30678
30679 2014-06-23  Will Newton  <will.newton@linaro.org>
30680
30681         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30682         rather than __builtin_expect.
30683
30684         * elf/dl-lookup.c (undefined_msg): Remove variable.
30685         (_dl_lookup_symbol_x): Replace undefined_msg with string
30686         literal.
30687
30688         * elf/dl-lookup.c (do_lookup_unique): New function.
30689         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30690         to a separate function.
30691
30692 2014-06-23  Andreas Schwab  <schwab@suse.de>
30693
30694         [BZ #17079]
30695         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30696         before reading the next line.
30697
30698 2014-06-23  Will Newton  <will.newton@linaro.org>
30699
30700         * test-skeleton.c (signal_handler): Use printf and %m
30701         rather than perror.  Use printf rather than fprintf to
30702         stderr.  Use puts rather than fputs to stderr.
30703         (main): Likewise.
30704
30705 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30706
30707         * nscd/nscd.c (thread_info_t): Remove typedef.
30708         (thread_info): Remove variable.
30709
30710 2014-06-21  Allan McRae  <allan@archlinux.org>
30711
30712         * NEWS: Mention CVE-2014-4043.
30713
30714 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30715
30716         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30717         * nptl/smp.h: ... here.
30718
30719         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30720
30721         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30722         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30723         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30724         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30725
30726         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30727         * nptl/stack-aliasing.h: New file.
30728         * sysdeps/i386/i686/stack-aliasing.h: New file.
30729         * sysdeps/i386/i686/nptl/Makefile: File removed.
30730         * sysdeps/x86_64/stack-aliasing.h: New file.
30731         * sysdeps/x86_64/nptl/Makefile
30732         (CFLAGS-pthread_create.c): Variable removed.
30733
30734         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30735         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30736         old file.
30737         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30738         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30739         old file.
30740
30741 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30742
30743         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30744         (__ASSUME_SIGFRAME_V2): Remove macro.
30745         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30746         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30747         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30748         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30749         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30750         Declare as function.  Remove conditional macro definitions.
30751         (__default_rt_sa_restorer): Likewise.
30752         (__default_sa_restorer_v1): Remove declaration.
30753         (__default_sa_restorer_v2): Likewise.
30754         (__default_rt_sa_restorer_v1): Likewise.
30755         (__default_rt_sa_restorer_v2): Likewise.
30756         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30757         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30758         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30759
30760 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30761
30762         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30763         (libpthread-routines): Add sysdep.
30764         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30765         * sysdeps/unix/sysv/linux/sparc/Versions
30766         (libpthread: GLIBC_2.3.3): New version set.
30767         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30768         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30769         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30770         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30771         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30772         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30773         Moved ...
30774         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30775         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30776         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30777         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30778         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30779         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30780         * sysdeps/sparc/nptl/sem_init.c: ... here.
30781         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30782         * sysdeps/sparc/nptl/sem_post.c: ... here.
30783         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30784         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30785         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30786         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30787         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30788         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30789         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30790         (libpthread-routines): Add cpu_relax.
30791         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30792         File removed.
30793         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30794         (librt: GLIBC_2.3.3): New version set.
30795         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30796         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30797         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30798         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30799         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30800         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30801         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30802         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30803         Moved ...
30804         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30805         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30806         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30807         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30808         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30809         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30810         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30811         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30812         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30813         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30814         Moved ...
30815         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30816         Update #include.
30817         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30818         Moved ...
30819         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30820         Update #include.
30821         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30822         Moved ...
30823         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30824         Update #include.
30825         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30826         Moved ...
30827         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30828         Update #include.
30829         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30830         Moved ...
30831         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30832         Update #include.
30833         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30834         Moved ...
30835         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30836         Update #include.
30837         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30838         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30839         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30840         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30841         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30842         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30843         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30844         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30845         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30846         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30847         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30848         Moved ...
30849         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30850         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30851         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30852         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30853         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30854
30855 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30856
30857         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30858         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30859         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30860         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30861         * nscd/nscd.c: Likewise.
30862         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30863         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30864         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30865         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30866
30867         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30868         <kernel-features.h>.
30869         (init_mq_netlink): Remove conditional have_sock_cloexec
30870         definitions.  Remove code conditional on have_sock_cloexec < 0.
30871         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30872         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30873         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30874         <kernel-features.h>.
30875         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30876         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30877
30878 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30879
30880         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30881         Add tests for memset_chk and memset.
30882
30883         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30884         with AVX2_Usable.
30885
30886 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30887
30888         [BZ #16046]
30889         * elf/tst-dl-iter-static.c: New file.
30890         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30891
30892         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30893         error.
30894
30895 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30896
30897         * sysdeps/unix/sysv/linux/kernel-features.h
30898         (__ASSUME_F_GETOWN_EX): Remove macro.
30899         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30900         <kernel-features.h>.
30901         (miss_F_GETOWN_EX): Remove variable or macro.
30902         (do_fcntl): Do not check miss_F_GETOWN_EX.
30903         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30904
30905         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30906         Remove macro.
30907         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30908         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30909         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30910
30911         * sysdeps/unix/sysv/linux/kernel-features.h
30912         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30913         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30914         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30915         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30916
30917 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30918
30919         [BZ #17075]
30920         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30921         Fix calculation of the symbol's value.
30922         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30923         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30924         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30925         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30926         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30927         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30928         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30929         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30930         (modules-names): Add `tst-armtlsdescmod',
30931         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30932         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30933         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30934         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30935         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30936         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30937         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30938         ($(objpfx)tst-armtlsdescloc): New dependency.
30939         ($(objpfx)tst-armtlsdescextnow): Likewise.
30940         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30941         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30942         TLS scheme support.
30943         * sysdeps/arm/configure: Regenerate.
30944
30945 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30946
30947         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30948         (__atfct_seterrno_2): Likewise.
30949         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30950         <kernel-features.h>.
30951         (__ASSUME_ATFCTS): Do not undefine and redefine.
30952         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30953         (__have_atfcts): Remove conditional definition.
30954         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30955         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30956         unreachable if [__ASSUME_ATFCTS].
30957         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30958         not undefine and redefine.
30959         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30960         <kernel-features.h>.
30961         (faccessat) [__NR_faccessat]: Make code unconditional.
30962         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30963         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30964         <kernel-features.h>.
30965         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30966         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30967         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30968         <kernel-features.h>.
30969         (fchownat) [__NR_fchownat]: Make code unconditional.
30970         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30971         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30972         <kernel-features.h>.
30973         (futimesat) [__NR_futimesat]: Make code unconditional.
30974         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30975         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30976         <kernel-features.h>.
30977         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30978         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30979         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30980         <kernel-features.h>.
30981         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30982         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30983         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30984         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30985         <kernel-features.h>.
30986         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30987         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30988         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30989         <kernel-features.h>.
30990         (linkat) [__NR_linkat]: Make code unconditional.
30991         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30992         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30993         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30994         <kernel-features.h>.
30995         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30996         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30997         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30998         <kernel-features.h>.
30999         (mkdirat) [__NR_mkdirat]: Make code unconditional.
31000         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
31001         * sysdeps/unix/sysv/linux/openat.c: Do not include
31002         <kernel-features.h>.
31003         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
31004         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
31005         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
31006         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
31007         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
31008         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
31009         <kernel-features.h>.
31010         (readlinkat) [__NR_readlinkat]: Make code unconditional.
31011         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
31012         result of INLINE_SYSCALL directly, not via int variable.
31013         * sysdeps/unix/sysv/linux/renameat.c: Do not include
31014         <kernel-features.h>.
31015         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
31016         (renameat) [__NR_renameat]: Make code unconditional.
31017         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
31018         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
31019         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
31020         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
31021         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
31022         (__ASSUME_ATFCTS): Do not undefine and redefine.
31023         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
31024         <kernel-features.h>.
31025         (symlinkat) [__NR_symlinkat]: Make code unconditional.
31026         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31027         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
31028         <kernel-features.h>.
31029         (unlinkat) [__NR_unlinkat]: Make code unconditional.
31030         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31031         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
31032         (__ASSUME_ATFCTS): Do not undefine and redefine.
31033         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
31034         <kernel-features.h>.
31035         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
31036         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31037         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
31038         <kernel-features.h>.
31039         (__xmknodat) [__NR_mknodat]: Make code unconditional.
31040         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
31041
31042 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
31043
31044         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
31045
31046 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
31047
31048         [BZ #17069]
31049         * posix/regcomp.c (parse_reg_exp): Deallocate partially
31050         constructed tree before returning error.
31051         * posix/bug-regexp36.c: Expand test case.
31052
31053 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
31054
31055         [BZ #6803]
31056         * math/libm-test.inc (scalbln_test_date):
31057         Add errno expectations.
31058         * math/w_scalblnf.c: New File.
31059         Add wrapper which checks for setting errno to ERANGE.
31060         Add weak_alias for corresponding scalbln function.
31061         * math/w_scalbln.c: Likewise.
31062         * math/w_scalblnl.c: Likewise.
31063         * math/Makefile (libm-calls): Add w_scalbln.
31064         * sysdeps/ieee754/flt-32/s_scalblnf.c:
31065         Remove weak_alias for corresponding scalbln function.
31066         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
31067         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
31068         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31069         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31070         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
31071         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31072         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
31073         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
31074         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
31075         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
31076         Remove long_double_symbol for scalblnl function in libm, libc.
31077         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
31078         Add wrapper which checks for setting errno to ERANGE.
31079         Add long_double_symbol for scalblnl function in libm, libc.
31080         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
31081         Remove long_double_symbol for scalblnl in libm.
31082         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
31083         Add wrapper which checks for setting errno to ERANGE.
31084         Add long_double_symbol for scalblnl function in libm.
31085         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
31086         Do not use wrapper because of own implementation.
31087
31088 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
31089
31090         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
31091         3 bytes for __pad1 for x32.
31092         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
31093
31094 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
31095             H.J. Lu  <hongjiu.lu@intel.com>
31096
31097         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
31098         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
31099         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31100         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31101         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
31102
31103 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
31104
31105         [BZ #17069]
31106         * posix/regcomp.c (parse_expression): Deallocate partially
31107         constructed tree before returning error.
31108         * posix/Makefile.c (tests): Add bug-regex36.
31109         (generated): Add bug-regex36.mtrace.
31110         (tests-special): Add $(objpfx)bug-regex36-mem.out
31111         (bug-regex36-ENV): New variable.
31112         ($(objpfx)bug-regex36-mem.out): New rule.
31113         * posix/bug-regex36.c: New file.
31114
31115 2014-06-19  Will Newton  <will.newton@linaro.org>
31116
31117         * malloc/malloc.c (systrim): If extra is zero then return
31118         early.
31119
31120 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31121
31122         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
31123
31124 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31125
31126         * sysdeps/aarch64/strchr.S: New file.
31127
31128 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31129
31130         [BZ #17022]
31131         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31132         from arguments -2 or below.
31133         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31134         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31135
31136 2014-06-18  Andreas Schwab  <schwab@suse.de>
31137
31138         [BZ #17062]
31139         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31140         of a bracket expr not to run off the end of the string.
31141         * posix/Makefile (tests): Add tst-fnmatch3.
31142         * posix/tst-fnmatch3.c: New file.
31143
31144 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31145
31146         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31147         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31148         [$(cross-compiling) = no]: Likewise.
31149         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31150         [$(cross-compiling) = no]: Likewise.
31151
31152 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31153
31154         [BZ #17031]
31155         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31156         double, adjusted for any remainder from the high double.
31157         * math/libm-test.inc (nearbyint): Add tests.
31158         (rint): Likewise.
31159
31160 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31161
31162         * nptl/sysdeps/powerpc/Makefile: Moved ...
31163         * sysdeps/powerpc/nptl/Makefile: ... here.
31164         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31165         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31166         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31167         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31168         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31169         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31170         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31171         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31172         * nptl/sysdeps/powerpc/tls.h: Moved ...
31173         * sysdeps/powerpc/nptl/tls.h: ... here.
31174
31175 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31176
31177         [BZ #16681]
31178         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31179         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31180         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31181         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31182         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31183         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31184         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31185         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31186         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31187
31188 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31189
31190         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31191
31192 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31193
31194         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31195         defined operator.
31196
31197         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31198         $TIMEOUTFACTOR.
31199
31200 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31201
31202         [BZ #17058]
31203         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31204         non-executed part of the test.
31205
31206 2014-06-16  Andreas Schwab  <schwab@suse.de>
31207
31208         * string/bits/string2.h (strdup, strndup): Update feature guard.
31209
31210 2014-06-14  David S. Miller  <davem@davemloft.net>
31211
31212         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31213
31214 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31215
31216         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31217         that was previously under [RESET_PID].
31218         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31219
31220         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31221         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31222         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31223         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31224         (__libc_vfork): New strong alias.
31225         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31226
31227 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31228
31229         * sysdeps/generic/elide.h: New file.
31230
31231 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31232
31233         * Makefile (installed-headers): Adjust path of pthread.h header.
31234
31235 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31236
31237         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31238         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31239         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31240         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31241
31242         * nptl/sysdeps/s390/Makefile: Moved ...
31243         * sysdeps/s390/nptl/Makefile: ... here.
31244         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31245         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31246         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31247         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31248         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31249         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31250         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31251         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31252         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31253         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31254         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31255         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31256         * nptl/sysdeps/s390/tls.h: Moved ...
31257         * sysdeps/s390/nptl/tls.h: ... here.
31258
31259         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31260         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31261
31262 2014-06-13  David S. Miller  <davem@davemloft.net>
31263
31264         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31265         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31266         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31267         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31268         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31269         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31270         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31271         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31272         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31273         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31274         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31275         Remove RESET_PID cpp guards.
31276         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31277         Remove RESET_PID cpp guards.
31278         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31279
31280 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31281
31282         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31283         __sp to uintptr_t.
31284
31285 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31286
31287         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31288         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31289         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31290         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31291         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31292         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31293         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31294         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31295         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31296         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31297         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31298         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31299         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31300         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31301         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31302         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31303         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31304         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31305         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31306         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31307
31308         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31309         (pthread_rwlock_rdlock): Add elision.
31310         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31311         (pthread_rwlock_wrlock): Add elision.
31312         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31313         (pthread_rwlock_trywrlock): Add elision.
31314         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31315         (pthread_rwlock_tryrdlock): Add elision.
31316         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31317         (pthread_rwlock_tryrdlock): Add elision unlock.
31318         * nptl/sysdeps/pthread/pthread.h:
31319         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31320         (PTHREAD_RWLOCK_INITIALIZER,
31321         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31322         Handle new elision field.
31323         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31324         * sysdeps/arm/nptl/bits/pthreadtypes.h
31325         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31326         * sysdeps/sh/nptl/bits/pthreadtypes.h
31327         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31328         * sysdeps/tile/nptl/bits/pthreadtypes.h
31329         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31330         * sysdeps/a/nptl/bits/pthreadtypes.h
31331         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31332         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31333         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31334         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31335         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31336         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31337         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31338         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31339         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31340         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31341         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31342         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31343         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31344         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31345         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31346         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31347         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31348         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31349         (elision_init): Set try_xbegin to zero when no RTM.
31350         * sysdeps/x86/nptl/bits/pthreadtypes.h
31351         (pthread_rwlock_t): Change __pad1 to __rwelision.
31352         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31353
31354 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31355
31356         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31357         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31358         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31359         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31360
31361 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31362
31363         [BZ #16996]
31364         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31365         that the cached result has been set before returning it.
31366
31367 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31368
31369         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31370         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31371         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31372         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31373         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31374         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31375
31376         * nptl/sysdeps/sparc/Makefile: Moved ...
31377         * sysdeps/sparc/nptl/Makefile: ... here.
31378         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31379         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31380         * nptl/sysdeps/sparc/tls.h: Moved ...
31381         * sysdeps/sparc/nptl/tls.h: ... here.
31382         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31383         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31384         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31385         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31386         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31387         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31388         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31389         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31390         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31391         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31392         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31393         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31394         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31395         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31396         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31397         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31398         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31399         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31400         Update #include.
31401         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31402         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31403         Update #include.
31404         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31405         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31406         Update #include.
31407         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31408         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31409         Update #include.
31410
31411         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31412
31413         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31414         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31415
31416         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31417         (struct list_links): Type removed.
31418         (struct thread_node, struct timer_node): Replace struct list_links
31419         with struct list_head.
31420         (list_unlink_ip): Likewise.
31421         * sysdeps/pthread/timer_routines.c
31422         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31423         (list_append, list_insbefore): Likewise.
31424         (list_init): Function removed.
31425         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31426         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31427         * sysdeps/pthread/Makefile: ... here, new file.
31428
31429         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31430         * sysdeps/nptl/Implies: ... here.
31431         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31432         * nptl/sysdeps/pthread/list.h: Moved ...
31433         * include/list.h: ... here.
31434         * nptl/sysdeps/pthread/createthread.c: Moved ...
31435         * nptl/createthread.c: ... here.
31436         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31437         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31438         * nptl/pt-longjmp.c: ... here.
31439         * nptl/sysdeps/pthread/Makefile: Moved ...
31440         * sysdeps/nptl/Makefile: ... here.
31441         * nptl/sysdeps/pthread/Subdirs: Moved ...
31442         * sysdeps/nptl/Subdirs: ... here.
31443         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31444         * sysdeps/nptl/aio_misc.h: ... here.
31445         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31446         * sysdeps/nptl/bits/libc-lock.h: ... here.
31447         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31448         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31449         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31450         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31451         * nptl/sysdeps/pthread/configure: Moved ...
31452         * sysdeps/nptl/configure: ... here.
31453         * nptl/sysdeps/pthread/configure.ac: Moved ...
31454         * sysdeps/nptl/configure.ac: ... here.
31455         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31456         * sysdeps/nptl/gai_misc.h: ... here.
31457         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31458         * sysdeps/nptl/librt-cancellation.c: ... here.
31459         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31460         * sysdeps/nptl/malloc-machine.h: ... here.
31461         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31462         * sysdeps/nptl/pthread-functions.h: ... here.
31463         * nptl/sysdeps/pthread/pthread.h: Moved ...
31464         * sysdeps/nptl/pthread.h: ... here.
31465         * nptl/sysdeps/pthread/setxid.h: Moved ...
31466         * sysdeps/nptl/setxid.h: ... here.
31467         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31468         * sysdeps/nptl/sigfillset.c: ... here.
31469         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31470         * sysdeps/nptl/tcb-offsets.h: ... here.
31471         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31472         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31473         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31474         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31475         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31476         * sysdeps/pthread/allocalim.h: ... here.
31477         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31478         * sysdeps/pthread/bits/sigthread.h: ... here.
31479         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31480         * sysdeps/pthread/flockfile.c: ... here.
31481         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31482         * sysdeps/pthread/ftrylockfile.c: ... here.
31483         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31484         * sysdeps/pthread/funlockfile.c: ... here.
31485         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31486         * sysdeps/pthread/posix-timer.h: ... here.
31487         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31488         * sysdeps/pthread/timer_create.c: ... here.
31489         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31490         * sysdeps/pthread/timer_delete.c: ... here.
31491         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31492         * sysdeps/pthread/timer_getoverr.c: ... here.
31493         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31494         * sysdeps/pthread/timer_gettime.c: ... here.
31495         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31496         * sysdeps/pthread/timer_routines.c: ... here.
31497         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31498         * sysdeps/pthread/timer_settime.c: ... here.
31499         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31500         * sysdeps/pthread/tst-timer.c: ... here.
31501         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31502         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31503
31504         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31505         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31506
31507         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31508         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31509         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31510         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31511         Update #include target.
31512         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31513         * sysdeps/i386/i686/nptl/Makefile: ... here.
31514         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31515         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31516         Update #include target.
31517         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31518         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31519         * nptl/sysdeps/i386/Makefile: Moved ...
31520         * sysdeps/i386/nptl/Makefile: ... here.
31521         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31522         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31523         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31524         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31525         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31526         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31527         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31528         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31529         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31530         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31531         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31532         * nptl/sysdeps/i386/tls.h: Moved ...
31533         * sysdeps/i386/nptl/tls.h: ... here.
31534
31535         * sysdeps/sh/Makefile [$(subdir) = csu]
31536         (gen-as-const-headers): Add tcb-offsets.sym.
31537         * nptl/sysdeps/sh/Makefile: File removed.
31538         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31539         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31540         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31541         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31542         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31543         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31544         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31545         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31546         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31547         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31548         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31549         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31550         * nptl/sysdeps/sh/tls.h: Moved ...
31551         * sysdeps/sh/nptl/tls.h: ... here.
31552         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31553         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31554         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31555         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31556         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31557         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31558         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31559         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31560         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31561         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31562         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31563         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31564         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31565         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31566         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31567         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31568         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31569         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31570         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31571         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31572         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31573         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31574         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31575         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31576         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31577         Moved ...
31578         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31579         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31580         Moved ...
31581         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31582         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31583         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31584         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31585         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31586         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31587         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31588         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31589         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31590         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31591         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31592         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31593         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31594         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31595         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31596         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31597         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31598         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31599         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31600
31601 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31602
31603         * posix/spawn_faction_addopen.c: Include string.h.
31604
31605 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31606
31607         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31608         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31609         * nptl/sysdeps/x86_64/Makefile: Moved ...
31610         * sysdeps/x86_64/nptl/Makefile: ... here.
31611         * nptl/sysdeps/x86_64/configure: Moved ...
31612         * sysdeps/x86_64/nptl/configure: ... here.
31613         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31614         * sysdeps/x86_64/nptl/configure.ac: ... here.
31615         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31616         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31617         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31618         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31619         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31620         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31621         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31622         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31623         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31624         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31625         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31626         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31627         * nptl/sysdeps/x86_64/tls.h: Moved ...
31628         * sysdeps/x86_64/nptl/tls.h: ... here.
31629         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31630         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31631         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31632         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31633
31634         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31635
31636 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31637
31638         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31639
31640 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31641
31642         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31643         type.
31644         [POSIX] (off_t): Likewise.
31645         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31646         [POSIX] (S_ISBLK): Require macro.
31647         [POSIX] (S_ISCHR): Likewise.
31648         [POSIX] (S_ISDIR): Likewise.
31649         [POSIX] (S_ISFIFO): Likewise.
31650         [POSIX] (S_ISREG): Likewise.
31651         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31652         optional-macro.
31653         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31654         type.
31655         [POSIX] (time_t): Likewise.
31656         [POSIX] (timer_t): Likewise.
31657
31658 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31659
31660         [BZ #17048]
31661         * posix/spawn_int.h (struct __spawn_action): Make the path string
31662         non-const to support deallocation.
31663         * posix/spawn_faction_addopen.c
31664         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31665         * posix/spawn_faction_destroy.c
31666         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31667         path in all spawn_do_open actions.
31668         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31669         posix_spawn_file_actions_addopen.
31670
31671 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31672
31673         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31674         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31675         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31676         conditional code always true.
31677         (__libc_vfork): New alias.
31678
31679 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31680
31681         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31682         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31683
31684         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31685
31686         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31687         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31688
31689         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31690         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31691
31692         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31693         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31694
31695 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31696
31697         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31698         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31699         multiarch strcmp for PPC64.
31700         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31701         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31702         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31703         multiarch optimizations.
31704         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31705         (__libc_ifunc_impl_list): Likewise.
31706
31707 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31708
31709         * benchtests/scripts/validate_benchout.py: New script.
31710         * benchtests/Makefile (bench-func): Call it.
31711         * benchtests/scripts/benchout.schema.json: New file.
31712
31713 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31714
31715         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31716         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31717         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31718         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31719         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31720         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31721         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31722         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31723         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31724         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31725         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31726         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31727         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31728         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31729         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31730         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31732         Moved ...
31733         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31734         ... here.
31735         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31736         Moved ...
31737         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31739         Moved ...
31740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31741         ... here.
31742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31743         Moved ...
31744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31745         ... here.
31746         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31747         Moved ...
31748         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31750         Moved ...
31751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31752         ... here.
31753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31754         Moved ...
31755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31756         ... here.
31757         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31758         Moved ...
31759         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31761         Moved ...
31762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31763         ... here.
31764         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31765         Moved ...
31766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31767         ... here.
31768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31769         Moved ...
31770         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31771         ... here.
31772         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31773         Moved ...
31774         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31776         Moved ...
31777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31778         ... here.
31779         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31780         Moved ...
31781         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31782         ... here.
31783         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31784         Moved ...
31785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31786         ... here.
31787         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31788         Moved ...
31789         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31790         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31791         Moved ...
31792         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31793         ... here.
31794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31795         Moved ...
31796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31797         ... here.
31798         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31799         Moved ...
31800         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31801         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31802         Moved ...
31803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31804         ... here.
31805         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31806         Moved ...
31807         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31808         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31809         Moved ...
31810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31811         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31812         Moved ...
31813         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31814         ... here.
31815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31816         Moved ...
31817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31818         ... here.
31819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31820         Moved ...
31821         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31822         ... here.
31823         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31824         Moved ...
31825         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31827         Moved ...
31828         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31829         ... here.
31830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31831         Moved ...
31832         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31833         ... here.
31834         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31835         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31836         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31837         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31838         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31839         Moved ...
31840         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31841         ... here.
31842         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31843         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31844         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31845         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31846         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31847         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31848         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31849         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31850         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31851         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31852         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31853         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31854         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31855         Moved ...
31856         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31857         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31858         Moved ...
31859         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31860         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31861         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31862         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31863         Moved ...
31864         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31865         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31866         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31867         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31868         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31869         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31870         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31871
31872 2014-06-10  Wilco  <wdijkstr@arm.com>
31873
31874         * math/test-fenv-return.c: New file.
31875         * math/Makefile: Add new test test-fenv-return.
31876
31877 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31878
31879         [BZ #17042]
31880         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31881         when x - 1 is zero.
31882         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31883         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31884         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31885         0.0L for an argument of 1.0L.
31886         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31887         Likewise.
31888         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31889         value when x - 1 is zero.
31890         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31891         * sysdeps/i386/fpu/libm-test-ulps: Update.
31892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31893
31894 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31895
31896         [BZ #15119]
31897         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31898
31899 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31900
31901         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31902         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31903
31904 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31905
31906         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31907         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31908
31909         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31910         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31911
31912         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31913         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31914
31915         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31916         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31917
31918         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31919         if not already defined.
31920         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31921         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31922         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31923         (TLS_INIT_TP): Use it.
31924         (TLS_DEFINE_INIT_TP): New macro.
31925         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31926
31927 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31928
31929         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31930         constant.
31931         [POSIX] (IXANY): Likewise.
31932         [POSIX] (OLCUC): Likewise.
31933         [POSIX || POSIX2008] (CBAUD): Do not allow.
31934         [POSIX || POSIX2008] (DEFECHO): Likewise.
31935         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31936         [POSIX || POSIX2008] (ECHOKE): Likewise.
31937         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31938         [POSIX || POSIX2008] (EXTA): Likewise.
31939         [POSIX || POSIX2008] (EXTB): Likewise.
31940         [POSIX || POSIX2008] (FLUSHO): Likewise.
31941         [POSIX || POSIX2008] (LOBLK): Likewise.
31942         [POSIX || POSIX2008] (PENDIN): Likewise.
31943         [POSIX || POSIX2008] (SWTCH): Likewise.
31944         [POSIX || POSIX2008] (VDISCARD): Likewise.
31945         [POSIX || POSIX2008] (VDSUSP): Likewise.
31946         [POSIX || POSIX2008] (VLNEXT): Likewise.
31947         [POSIX || POSIX2008] (VREPRINT): Likewise.
31948         [POSIX || POSIX2008] (VSTATUS): Likewise.
31949         [POSIX || POSIX2008] (VWERASE): Likewise.
31950         (B*): Change to B[0123456789]*.
31951         * conform/data/time.h-data [POSIX || UNIX98]
31952         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31953         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31954         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31955         [POSIX] (tm_*): Do not allow.
31956
31957 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31958
31959         * Makefile (install): Don't set LANGUAGE.
31960         * Makefile.in (install): Likewise.
31961         * assert/Makefile (test-assert-ENV): Remove variable.
31962         (test-assert-perr-ENV): Likewise.
31963         * elf/Makefile (neededtest4-ENV): Likewise.
31964         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31965         [$(cross-compiling) = no]: Don't set LANGUAGE.
31966         * io/ftwtest-sh (LANG): Remove variable.
31967         * libio/Makefile (tst-widetext-ENV): Likewise.
31968         * manual/install.texi (Running make install): Don't refer to
31969         environment settings for make install.
31970         * INSTALL: Regenerated.
31971         * nptl/tst-tls6.sh: Don't set LANG.
31972         * posix/globtest.sh (LANG): Remove variable.
31973         * string/Makefile (tester-ENV): Likewise.
31974         (inl-tester-ENV): Likewise.
31975         (noinl-tester-ENV): Likewise.
31976         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31977         [$(cross-compiling) = no]: Don't set LANGUAGE.
31978         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31979         without explicit environment settings.
31980
31981 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31982
31983         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31984         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31985         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31986         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31987
31988 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31989
31990         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31991         other files in the crypt directory.
31992         * crypt/crypt.c: Remove duplicate includes.
31993         * crypt/crypt-entry.c: Likewise.
31994         * crypt/crypt_util.c: Likewise.
31995
31996 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31997
31998         * Makeconfig (run-program-env): New variable.
31999         (run-program-prefix-before-env): Likewise.
32000         (run-program-prefix-after-env): Likewise.
32001         (run-program-prefix): Define in terms of new variables.
32002         (built-program-cmd-before-env): New variable.
32003         (built-program-cmd-after-env): Likewise.
32004         (built-program-cmd): Define in terms of new variables.
32005         (test-program-prefix-before-env): New variable.
32006         (test-program-prefix-after-env): Likewise.
32007         (test-program-prefix): Define in terms of new variables.
32008         (test-program-cmd-before-env): New variable.
32009         (test-program-cmd-after-env): Likewise.
32010         (test-program-cmd): Define in terms of new variables.
32011         * Rules (make-test-out): Use $(run-program-env).
32012         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
32013         (help): Do not mention environment variables.  Mention
32014         --timeoutfactor option.
32015         (timeoutfactor): New variable.
32016         (blacklist_exports): Remove function.
32017         (exports): Remove variable.
32018         (command): Do not include ${exports}.
32019         * manual/install.texi (Configuring and compiling): Do not mention
32020         test wrappers preserving environment variables.  Mention that last
32021         assignment to a variable must take precedence.
32022         * INSTALL: Regenerated.
32023         * benchtests/Makefile (run-bench): Use $(run-program-env).
32024         * catgets/Makefile ($(objpfx)test1.cat): Use
32025         $(built-program-cmd-before-env), $(run-program-env) and
32026         $(built-program-cmd-after-env).
32027         ($(objpfx)test2.cat): Do not specify environment variables
32028         explicitly.
32029         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
32030         $(run-program-env) and $(built-program-cmd-after-env).
32031         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
32032         $(run-program-env) and $(test-program-cmd-after-env).
32033         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
32034         explicitly.
32035         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
32036         run_program_env and test_program_cmd_after_env arguments.
32037         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
32038         * elf/tst-pathopt.sh: Use run_program_env argument.
32039         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
32040         $(test-wrapper-env) and $(run-program-env).
32041         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
32042         run_program_env arguments.
32043         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
32044         * intl/Makefile ($(objpfx)tst-gettext.out): Use
32045         $(test-program-prefix-before-env), $(run-program-env) and
32046         $(test-program-prefix-after-env).
32047         ($(objpfx)tst-gettext2.out): Likewise.
32048         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
32049         run_program_env and test_program_prefix_after_env arguments.
32050         * intl/tst-gettext2.sh: Likewise.
32051         * intl/tst-gettext4.sh: Do not set environment variables
32052         explicitly.
32053         * intl/tst-gettext6.sh: Likewise.
32054         * intl/tst-translit.sh: Likewise.
32055         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
32056         $(test-program-prefix-before-env), $(run-program-env) and
32057         $(test-program-prefix-after-env).
32058         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
32059         run_program_env and test_program_prefix_after_env arguments.
32060         * math/Makefile (run-regen-ulps): Use $(run-program-env).
32061         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
32062         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
32063         explicitly with each use of ${test_wrapper_env}.
32064         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
32065         $(test-program-prefix-before-env), $(run-program-env) and
32066         $(test-program-prefix-after-env).
32067         * posix/tst-getconf.sh: Do not set environment variables
32068         explicitly.
32069         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
32070         run_program_env and test_program_prefix_after_env arguments.
32071         * stdio-common/tst-printf.sh: Do not set environment variables
32072         explicitly.
32073         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
32074         $(test-program-prefix-before-env), $(run-program-env) and
32075         $(test-program-prefix-after-env).
32076         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
32077         run_program_env and test_program_prefix_after_env arguments.
32078         Split $test calls into $test_pre and $test.
32079         * timezone/Makefile (build-testdata): Use
32080         $(built-program-cmd-before-env), $(run-program-env) and
32081         $(built-program-cmd-after-env).
32082
32083 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32084
32085         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
32086         strlen for non SHARED builds.
32087
32088 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
32089
32090         * nptl/allocatestack.c (check_list): Inlined function...
32091         (__reclaim_stacks): ... here.
32092
32093 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32094
32095         [BZ #15698]
32096         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32097         memory overrun.
32098
32099 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
32100
32101         * Rules (make-test-out): Include
32102         LOCPATH=$(common-objpfx)localedata in default environment.
32103         * debug/Makefile (tst-chk1-ENV): Remove variable.
32104         (tst-chk2-ENV): Likewise.
32105         (tst-chk3-ENV): Likewise.
32106         (tst-chk4-ENV): Likewise.
32107         (tst-chk5-ENV): Likewise.
32108         (tst-chk6-ENV): Likewise.
32109         (tst-lfschk1-ENV): Likewise.
32110         (tst-lfschk2-ENV): Likewise.
32111         (tst-lfschk3-ENV): Likewise.
32112         (tst-lfschk4-ENV): Likewise.
32113         (tst-lfschk5-ENV): Likewise.
32114         (tst-lfschk6-ENV): Likewise.
32115         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
32116         (tst-iconv7-ENV): Likewise.
32117         * intl/Makefile (LOCPATH-ENV): Likewise.
32118         (tst-codeset-ENV): Likewise.
32119         (tst-gettext3-ENV): Likewise.
32120         (tst-gettext5-ENV): Likewise.
32121         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
32122         (tst-fopenloc-ENV): Likewise.
32123         (tst-fgetws-ENV): Remove variable.
32124         (tst-ungetwc1-ENV): Likewise.
32125         (tst-ungetwc2-ENV): Likewise.
32126         (bug-ungetwc2-ENV): Likewise.
32127         (tst-swscanf-ENV): Likewise.
32128         (bug-ftell-ENV): Likewise.
32129         (tst-fgetwc-ENV): Likewise.
32130         (tst-fseek-ENV): Likewise.
32131         (tst-ftell-partial-wide-ENV): Likewise.
32132         (tst-ftell-active-handler-ENV): Likewise.
32133         (tst-ftell-append-ENV): Likewise.
32134         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32135         (tst-regexloc-ENV): Likewise.
32136         (bug-regex1-ENV): Likewise.
32137         (tst-regex-ENV): Likewise.
32138         (tst-regex2-ENV): Likewise.
32139         (bug-regex5-ENV): Likewise.
32140         (bug-regex6-ENV): Likewise.
32141         (bug-regex17-ENV): Likewise.
32142         (bug-regex18-ENV): Likewise.
32143         (bug-regex19-ENV): Likewise.
32144         (bug-regex20-ENV): Likewise.
32145         (bug-regex22-ENV): Likewise.
32146         (bug-regex23-ENV): Likewise.
32147         (bug-regex25-ENV): Likewise.
32148         (bug-regex26-ENV): Likewise.
32149         (bug-regex30-ENV): Likewise.
32150         (bug-regex32-ENV): Likewise.
32151         (bug-regex33-ENV): Likewise.
32152         (bug-regex34-ENV): Likewise.
32153         (bug-regex35-ENV): Likewise.
32154         (tst-rxspencer-ENV): Likewise.
32155         (tst-rxspencer-no-utf8-ENV): Likewise.
32156         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32157         (tst-sscanf-ENV): Likewise.
32158         (tst-swprintf-ENV): Likewise.
32159         (tst-swscanf-ENV): Likewise.
32160         (test-vfprintf-ENV): Likewise.
32161         (scanf13-ENV): Likewise.
32162         (bug14-ENV): Likewise.
32163         (tst-grouping-ENV): Likewise.
32164         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32165         (tst-strtod3-ENV): Likewise.
32166         (tst-strtod4-ENV): Likewise.
32167         (tst-strtod5-ENV): Likewise.
32168         (testmb2-ENV): Likewise./
32169         * string/Makefile (tst-strxfrm-ENV): Likewise.
32170         (tst-strxfrm2-ENV): Likewise.
32171         (bug-strcoll1-ENV): Likewise.
32172         (test-strcasecmp-ENV): Likewise.
32173         (test-strncasecmp-ENV): Likewise.
32174         * time/Makefile (tst-strptime-ENV): Likewise.
32175         (tst-ftime_l-ENV): Likewise.
32176         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32177         (tst-mbrtowc-ENV): Likewise.
32178         (tst-wcrtomb-ENV): Likewise.
32179         (tst-mbrtowc2-ENV): Likewise.
32180         (tst-c16c32-1-ENV): Likewise.
32181         (tst-mbsnrtowcs-ENV): Likewise.
32182
32183 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32184
32185         * manual/resource.texi (How to get information about the memory
32186         subsystem?): Fix typo.
32187         Reported by Peon de la Parra Ivan <peon@keba.com>
32188
32189 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32190
32191         [BZ #16882]
32192         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32193         (pthread_spin_lock): Branch out of spin loop to proper location.
32194         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32195         (pthread_spin_lock): Likewise.
32196
32197         * nptl/tst-spin4.c: New test.
32198         * nptl/Makefile (tests): Add tst-spin4.
32199
32200 2014-06-03  Andreas Schwab  <schwab@suse.de>
32201
32202         [BZ #15946]
32203         * resolv/res_send.c (send_dg): Reload file descriptor after
32204         calling reopen.
32205
32206 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32207
32208         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32209
32210 2014-06-03  Richard Henderson  <rth@redhat.com>
32211
32212         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32213         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32214         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32215         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32216         in the SAVE_PID block.
32217         (__libc_vfork): New alias.
32218         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32219
32220         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32221         child in registers, not on the stack.  Remove RESET_PID conditionals.
32222         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32223
32224 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32225
32226         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32227
32228 2014-06-03  Wilco  <wdijkstr@arm.com>
32229
32230         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32231         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32232         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32233         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32234         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32235         Likewise.
32236
32237 2014-06-03  Wilco  <wdijkstr@arm.com>
32238
32239         * sysdeps/aarch64/fpu/math_private.h
32240         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32241         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32242         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32243         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32244         Fix declarations.
32245
32246 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32247
32248         * crypt/crypt-private.h: Include ufc-crypt.h.
32249         (__b64_from_24bit): Declare extern.
32250         * crypt/crypt_util.c(__b64_from_24bit): New function.
32251         (b64t): New static const variable.
32252         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32253         (b64t): Remove variable.
32254         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32255         * crypt/sha256-crypt.c: Include crypt-private.h.
32256         (b64t): Remove variable.
32257         (__sha256_crypt_r): Remove b64_from_24bit and replace
32258         with __b64_from_24bit.
32259         * crypt/sha512-crypt.c: Likewise.
32260
32261 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32262
32263         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32264         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32265         Label the code __libc_vfork rather than __vfork.
32266         [!NOT_IN_libc] (vfork): Define as weak alias.
32267         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32268         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32269         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32270
32271 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32272
32273         * malloc/malloc.c (malloc_info): Fix format specifier for
32274         n_mmaps.
32275
32276 2014-06-02  Wilco  <wdijkstr@arm.com>
32277
32278         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32279         FPCR write.
32280
32281 2014-06-02  Wilco  <wdijkstr@arm.com>
32282
32283         [BZ #17009]
32284         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32285         Rewrite to reduce FPCR/FPSR accesses.
32286
32287 2014-06-01  David S. Miller  <davem@davemloft.net>
32288
32289         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32290
32291 2014-05-31  David S. Miller  <davem@davemloft.net>
32292
32293         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32294         to occur in round to nearest mode when |x| >= 2.0
32295
32296 2014-05-30  Richard Henderson  <rth@twiddle.net>
32297
32298         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32299         (PSEUDO_RET_NOERRNO): Remove.
32300         (ret): Don't redefine.
32301         (ret_NOERRNO): Define in terms of ret.
32302         (ret_ERRVAL): Likewise.
32303
32304         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32305         use of PSEUDO_RET; perform the error check directly.
32306
32307 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32308
32309         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32310         with __int128_t.
32311
32312 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32313
32314         * malloc/malloc (malloc_info): Fix formatting.
32315
32316 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32317             Roland McGrath  <roland@hack.frob.com>
32318
32319         * malloc/malloc (malloc_info): Also print mmapped statistics.
32320
32321 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32322
32323         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32324         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32325
32326 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32327
32328         * malloc/malloc.c (malloc_info): Inline mi_arena.
32329
32330 2014-05-29  Richard Henderson  <rth@twiddle.net>
32331
32332         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32333         Remove comma before expanding ASM_ARGS_##nr.
32334         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32335         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32336         of ASM_ARGS_##nr.
32337         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32338         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32339         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32340         (ASM_ARGS_1): Add leading comma.
32341
32342         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32343         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32344         to __errno_location.
32345         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32346         Remove the expected plt for __errno_location.
32347
32348         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32349         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32350         call to __read_tp.
32351
32352         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32353         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32354         it and break it down.
32355         (DOCARGS_0, DOCARGS_1): Do nothing.
32356         (DOCARGS_2): Update to store into the new stack frame.
32357         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32358         (UNDOCARGS_1): Update to restore from the new stack frame.
32359         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32360         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32361
32362         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32363         (SINGLE_THREAD_P): New parameter for result regno.
32364         (PSEUDO): Update to match; use cbz instead of beq.
32365
32366         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32367         Use ENTRY to define the _nocancel entry point.  Share the syscall
32368         and syscall error check paths with the cancel path.
32369         (PSEUDO_END): New.
32370
32371         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32372         whitespace; tabs before and after asm mnemonics.
32373
32374 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32375
32376         [BZ #15132]
32377         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32378         Call fstat64 or stat64 internally, depending on arguments passed.
32379         Replace stat buffer argument with file descriptor argument.
32380         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32381         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32382         Pass fd to __internal_statvfs instead of calling fstat64.
32383         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32384         Pass fd to __internal_statvfs64 instead of calling fstat64.
32385         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32386         Pass -1 to __internal_statvfs instead of calling stat64.
32387         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32388         Pass -1 to __internal_statvfs64 instead of calling stat64.
32389
32390 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32391
32392         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32393         that was previously under [RESET_PID].
32394         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32395
32396         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32397         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32398
32399 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32400
32401         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32402
32403         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32404         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32405
32406 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32407
32408         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32409
32410 2014-05-27  Andreas Schwab  <schwab@suse.de>
32411
32412         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32413         TLS_INIT_TP macro.
32414         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32415         * elf/rtld.c (init_tls, dl_main): Likewise.
32416         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32417         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32418         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32419         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32420         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32421         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32422         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32423         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32424         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32425         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32426         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32427         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32428         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32429         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32430         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32431         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32432         * sysdeps/generic/tls.h: Update description.
32433
32434 2014-05-27  Will Newton  <will.newton@linaro.org>
32435
32436         [BZ #16990]
32437         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32438         and restore r2 rather than just restoring.
32439
32440 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32441
32442         [BZ #16724]
32443         * libio/tst-ftell-append.c: New test case.
32444         * libio/Makefile (tests): Add test case.
32445         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32446         append mode.
32447         * libio/wfileops.c (do_ftell_wide): Likewise.
32448
32449 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32450
32451         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32452
32453         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32454         ...
32455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32457         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32458         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32459         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32460         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32461         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32462         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32463         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32464         Moved ...
32465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32466         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32467         Moved ...
32468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32469         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32470         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32471         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32472         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32473         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32474         ...
32475         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32476         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32477         Moved ...
32478         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32479         here.
32480         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32481         ...
32482         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32483         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32484         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32485
32486         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32487         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32488         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32489         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32490
32491         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32492         merge into ...
32493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32494         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32495         ...
32496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32497         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32498         ...
32499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32500         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32501         Moved ...
32502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32503         here.
32504         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32505         Moved ...
32506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32507         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32508         Moved ...
32509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32510
32511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32512         conditional [RESET_PID].
32513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32514         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32515         removed.
32516         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32517         removed.
32518
32519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32520         <tcb-offsets.h>.
32521         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32522         (__libc_vfork): New strong alias.
32523         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32524         removed.
32525         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32526         Removed.
32527
32528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32529         <tcb-offsets.h>.
32530         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32531         (__libc_vfork): New strong alias.
32532         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32533         removed.
32534         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32535         removed.
32536
32537 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32538
32539         * malloc/malloc.c (mi_arena): New function.
32540         (malloc_info): Remove nested function mi_arena. Call non-nosted
32541         function mi_arena.
32542
32543 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32544
32545         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32546         by insrwi.
32547         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32548         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32549         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32550         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32551         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32552         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32553         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32554
32555 2014-05-26  Andreas Schwab  <schwab@suse.de>
32556
32557         [BZ #16984]
32558         * locale/programs/repertoire.c (repertoire_read): Add slash
32559         between I18NPATH element and file name.
32560         * locale/programs/locfile.c (locfile_read): Likewise.
32561
32562 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32563
32564         * nptl/pthread_mutexattr_settype.c
32565         (__pthread_mutexattr_settype):
32566         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32567
32568 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32569
32570         * nptl/tst-mutex5 (do_test):
32571         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32572
32573 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32574
32575         * benchtests/README: Document 'init' directive.
32576         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32577         BENCH_INIT.
32578         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32579         (parse_file): Recognize 'init' directive.
32580
32581 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32582
32583         [BZ #16796]
32584         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32585         alignment of struct pthread.
32586
32587 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32588
32589         [BZ #16878]
32590         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32591         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32592         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32593         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32594
32595 2014-05-25  Richard Henderson  <rth@twiddle.net>
32596
32597         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32598         (SINGLE_THREAD_P_PIC): Remove.
32599         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32600         (SINGLE_THREAD_P_PIC): Remove.
32601
32602         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32603         branch to syscall error ...
32604         (PSEUDO): ... here.
32605         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32606         from __local_syscall_error to .Lsyscall_error.
32607         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32608         (SYSCALL_ERROR): Update label name.
32609
32610         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32611         Do not use DOARGS/UNDOARGS.
32612         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32613         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32614         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32615         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32616         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32617
32618         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32619         block comment.
32620
32621         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32622         define if !NOT_IN_libc.
32623         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32624         define with non-default symbol versions.
32625
32626 2014-05-23  Richard Henderson  <rth@twiddle.net>
32627
32628         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32629         (vfork, __vfork): Define via compat_symbol.
32630
32631         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32632         [!HAVE_IFUNC] (vfork_compat): Remove.
32633         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32634
32635 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32636
32637         [BZ #16978]
32638         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32639         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32640         variable.
32641
32642 2014-05-23  Richard Henderson  <rth@twiddle.net>
32643
32644         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32645         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32646         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32647         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32648
32649         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32650         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32651         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32652         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32653         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32654         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32655         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32656         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32657         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32658         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32659         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32660         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32661         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32662         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32663         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32664         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32665         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32666         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32667         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32668         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32669         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32670         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32671         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32672         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32673         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32674         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32675         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32676         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32677         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32678         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32679         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32680         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32681         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32682         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32683         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32684         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32685         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32686         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32687         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32688         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32689         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32690         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32691         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32692         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32693         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32694         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32695         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32696         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32697         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32698         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32699         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32700         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32701         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32702         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32703         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32704         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32705
32706         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32707         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32708         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32709         before exiting on error.
32710         (__libc_vfork): New strong alias.
32711         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32712         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32713
32714         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32715         that was previously under [RESET_PID].
32716         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32717
32718         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32719
32720 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32721
32722         [BZ #16977]
32723         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32724         value when x - 1 is zero.
32725         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32726         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32727         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32728         0.0L for an argument of 1.0L.
32729         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32730         Likewise.
32731         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32732         value when x - 1 is zero.
32733         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32734         * sysdeps/i386/fpu/libm-test-ulps: Update.
32735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32736
32737 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32738
32739         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32740         alphasort and versionsort.
32741
32742 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32743
32744         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32745         macro.
32746         [copysignf]: Likewise.
32747
32748 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32749
32750         * crypt/md5-crypt.c: Fix formatting.
32751
32752 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32753
32754         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32755         (b64_from_24bit): New function.
32756
32757 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32758
32759         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32760         libc_hidden_builtin_def to ifunc.
32761         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32762         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32763
32764 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32765
32766         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32767         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32768
32769 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32770
32771         * nscd/Depend (linuxthreads): Remove.
32772         (nptl): Add.
32773         * resolv/Depend (linuxthreads): Remove.
32774         * rt/Depend (linuxthreads): Remove.
32775
32776         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32777         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32778         $(common-objpfx)elf/.
32779         (link-libc-before-gnulib): Likewise.
32780         (elfobjdir): Remove variable.
32781         * Makefile (install): Use $(elf-objpfx) instead of
32782         $(common-objpfx)elf/.
32783         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32784         $(elfobjdir)/.
32785         (link-libc-deps): Likewise.
32786         ($(common-objpfx)libc.so): Likewise.
32787         ($(common-objpfx)linkobj/libc.so): Likewise.
32788         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32789         instead of $(common-objpfx)elf/.
32790         (symbolic-link-list): Likewise.
32791         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32792         [$(cross-compiling) = no]: Likewise.
32793         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32794         $(elfobjdir)/.
32795         (static-gnulib-arch): Likewise.
32796         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32797         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32798         $(common-objpfx)elf/.
32799
32800 2014-05-21  Richard Henderson  <rth@redhat.com>
32801
32802         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32803         (SINGLE_THREAD_P): Use the correct width load.  Fold
32804         into the ldr offset.
32805
32806         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32807         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32808
32809 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32810
32811         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32812         (libgcc_s_resume): Use __attribute_used__.
32813         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32814         Likewise.
32815
32816 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32817
32818         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32819         optimization when used with float constants.
32820
32821         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32822
32823 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32824
32825         [BZ #16915]
32826         * locale/nl_langinfo_l.c: Make direct reference to every
32827         _nl_current_CATEGORY symbol.
32828         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32829         (tests-static): Add tst-langinfo-static.
32830         (tests-special): Add tst-langinfo-static.out.
32831         ($(objpfx)tst-langinfo.out): Redirect output.
32832         ($(objpfx)tst-langinfo-static.out): New.
32833         * localedata/tst-langinfo.sh: Send output to stdout.
32834         * localedata/tst-langinfo-static.c: New file.
32835
32836         [BZ #16965]
32837         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32838         when the shift amount is modulo the limb size.
32839
32840 2014-05-20  Richard Henderson  <rth@redhat.com>
32841
32842         [BZ #16967]
32843         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32844         Change type of sa_flags from unsigned int to int.
32845
32846         [BZ #16966]
32847         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32848
32849         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32850
32851 2014-05-20  Will Newton  <will.newton@linaro.org>
32852
32853         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32854         Test the return value of the system call in the nocancel case.
32855
32856 2014-05-20  Will Newton  <will.newton@linaro.org>
32857             Yvan Roux  <yvan.roux@linaro.org>
32858
32859         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32860         #include of asm/ptrace.h.
32861         (PTRACE_GET_THREAD_AREA): Remove #undef.
32862         (PTRACE_GETHBPREGS): Likewise.
32863         (PTRACE_SETHBPREGS): Likewise.
32864         (struct user_regs_struct): New structure.
32865         (struct user_fpsimd_struct): New structure.
32866         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32867         #include of asm/ptrace.h and second #include of sys/user.h.
32868         (PTRACE_GET_THREAD_AREA): Remove #undef.
32869         (PTRACE_GETHBPREGS): Likewise.
32870         (PTRACE_SETHBPREGS): Likewise.
32871         (ELF_NGREG): Use new struct user_regs_struct.
32872         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32873
32874 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32875
32876         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32877         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32878
32879 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32880
32881         [BZ #16958]
32882         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32883         membar to avoid block loads/stores to overlap previous stores.
32884
32885 2014-05-17  Richard Henderson  <rth@redhat.com>
32886
32887         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32888         Create the __##syscall_name##_nocancel entry point.
32889         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32890         Remove; let the sysdep-cancel.h code create it.
32891
32892 2014-05-17  David S. Miller  <davem@davemloft.net>
32893
32894         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32895         Protect with __USE_GNU.
32896         (TIOCSET_TEMPT): Likewise.
32897         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32898         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32899         these are already provided in bits/ioctl-types.h
32900
32901 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32902
32903         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32904         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32905
32906         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32907         Use wait4 regardless of [__NR_waitpid].
32908
32909 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32910
32911         PR libgcc/60166
32912         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32913         (_FP_NANSIGN_Q): Set the quiet bit.
32914
32915 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32916
32917         * benchtests/Makefile
32918         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32919         not $(common-objpfx)math/libm.so.
32920         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32921         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32922         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32923         $(common-objpfx)dlfcn/libdl.so.
32924         ($(objpfx)tst-audit8): Depend on $(libm), not
32925         $(common-objpfx)math/libm.so.
32926         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32927         not $(common-objpfx)dlfcn/libdl.so.
32928         * math/Makefile
32929         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32930         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32931         [$(build-shared) = yes].
32932         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32933         $(common-objpfx)nptl/libpthread.so.
32934         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32935         $(common-objpfx)math/libm.so$(libm.so-version) or
32936         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32937         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32938         $(common-objpfx)dlfcn/libdl.so.
32939         * setjmp/Makefile (link-libm): Remove variable.
32940         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32941         * stdio-common/Makefile (link-libm): Remove variable.
32942         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32943         * stdlib/Makefile (link-libm): Remove variable.
32944         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32945         ($(objpfx)tst-strtod-round): Likewise.
32946         ($(objpfx)tst-tininess): Likewise.
32947         ($(objpfx)tst-strtod-underflow): Likewise.
32948         ($(objpfx)tst-strtod6): Likewise.
32949         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32950         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32951         $(common-objpfx)dlfcn/libdl.so.
32952
32953 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32954
32955         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32956         BSD terminal modes definitions.
32957
32958 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32959
32960         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32961         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32962
32963         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32964         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32965         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32966         Don't do #include_next.
32967         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32968         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32969         Don't do #include_next.
32970         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32971         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32972         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32973         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32974
32975 2014-05-16  Allan McRae  <allan@archlinux.org>
32976
32977         * po/sv.po: Update Swedish translation from translation project.
32978
32979         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32980         in sed expression.
32981
32982 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32983
32984         [BZ #16917]
32985         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32986         errno if the TIOCGPTN ioctl fails with an error different than
32987         EINVAL.
32988         * login/tst-ptsname.c: New file.
32989         * login/Makefile (tests): Add tst-ptsname.
32990
32991         [BZ #16943]
32992         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32993         and prlimit64.
32994
32995 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32996
32997         [BZ #16849]
32998         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32999         herrno to return EAI_AGAIN.
33000
33001 2014-05-14  Roland McGrath  <roland@hack.frob.com>
33002
33003         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
33004         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
33005         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
33006         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
33007         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
33008         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
33009         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
33010         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
33011         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
33012         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
33013         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
33014         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
33015         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
33016         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
33017         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
33018         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
33019         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
33020         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
33021         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
33022         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
33023         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
33024         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
33025         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
33026         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
33027         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
33028         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
33029         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
33030         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
33031         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
33032         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
33033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
33034         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
33035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
33036         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
33037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33038         Moved ...
33039         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
33040         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
33041         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
33042         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
33043         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
33044         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
33045         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
33046         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
33047         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
33048         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
33049         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
33050         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
33051         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
33052         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
33053         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
33054         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
33055         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
33056         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
33057         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
33058         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
33059         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
33060         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
33061         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
33062         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
33063         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
33064         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
33065         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
33066         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33067         Moved ...
33068         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
33069         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
33070         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
33071         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
33072         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
33073         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
33074         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
33075         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
33076         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
33077         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
33078         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
33079         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
33080         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
33081         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
33082         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
33083         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
33084         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
33085         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
33086         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
33087         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33088         Moved ...
33089         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
33090         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
33091         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
33092
33093         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
33094         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
33095         (libpthread-sysdep_routines): Add elision-related stuff here instead.
33096         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
33097         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
33098         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
33099         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
33100         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
33101         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
33102         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
33103         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
33104         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
33105         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
33106         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
33107         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
33108         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
33109         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
33110         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
33111         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
33112         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
33113         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
33114         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
33115         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
33116         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
33117         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
33118         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
33119         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
33120         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
33121         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
33122         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
33123         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
33124
33125         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33126         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33127
33128         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33129         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33130         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33131         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33132         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33133         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33134         Moved ...
33135         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33136         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33137         Moved ...
33138         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33139         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33140         Moved ...
33141         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33142         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33143         Moved ...
33144         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33145         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33146         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33147         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33148         Moved ...
33149         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33150         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33151         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33152         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33153         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33154         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33155         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33156         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33157         Moved ...
33158         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33159         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33160         Moved ...
33161         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33162         ... here.
33163         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33164         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33165         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33166         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33167         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33168         Moved ...
33169         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33170         ... here.
33171         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33172         Moved ...
33173         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33174         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33175         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33176         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33177         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33178         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33179         Moved ...
33180         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33181         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33182         Moved ...
33183         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33184         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33185         Moved ...
33186         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33187         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33188         Moved ...
33189         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33190         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33191         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33192         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33193         Moved ...
33194         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33195         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33196         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33197         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33198         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33199         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33200         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33201         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33202         Moved ...
33203         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33204         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33205         Moved ...
33206         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33207         ... here.
33208         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33209         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33210         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33211         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33212         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33213         Moved ...
33214         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33215         ... here.
33216         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33217         Moved ...
33218         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33219         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33220         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33221         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33222         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33223         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33224         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33225         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33226         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33227         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33228         Moved ...
33229         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33230         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33231         Moved ...
33232         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33233         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33234         Moved ...
33235         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33236         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33237         Moved ...
33238         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33239         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33240         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33241         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33242         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33243         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33244         Moved ...
33245         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33246         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33247         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33248         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33249         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33250         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33251         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33252         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33253         Moved ...
33254         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33255         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33256         Moved ...
33257         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33258         ... here.
33259         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33260         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33261         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33262         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33263         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33264         Moved ...
33265         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33266         ... here.
33267         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33268         Moved ...
33269         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33270         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33271         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33272         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33273         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33274         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33275         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33276         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33277         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33278         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33279         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33280
33281         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33282         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33283
33284         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33285         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33286
33287         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33288         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33289         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33290         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33291         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33292         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33293         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33294         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33295         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33296         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33297         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33298         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33299         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33300         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33301         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33302         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33303         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33304         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33305         Moved ...
33306         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33307         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33308         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33309         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33310         Moved ...
33311         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33312         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33313         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33314         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33315         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33316         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33317         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33318         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33319         Moved ...
33320         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33321         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33322         Moved ...
33323         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33324         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33325         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33326         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33327         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33328         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33329         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33330         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33331         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33332         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33333         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33334         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33335         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33336         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33337         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33338         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33339         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33340
33341         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33342         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33343         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33344         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33345         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33346
33347         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33348         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33349         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33350         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33351         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33352         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33353         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33354         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33355         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33356         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33357
33358         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33359         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33360
33361         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33362         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33363         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33364         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33365         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33366         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33367         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33368         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33369         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33370         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33371         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33372         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33373         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33374         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33375         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33376         Update #include.
33377         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33378         Likewise.
33379         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33380         Likewise.
33381         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33382         Likewise.
33383         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33384         Likewise.
33385         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33386         Likewise.
33387         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33388         Likewise.
33389         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33390         Likewise.
33391         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33392         Likewise.
33393         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33394         Likewise.
33395         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33396         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33397         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33398         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33399         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33400         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33401         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33402         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33403         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33404         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33405         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33406         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33407         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33408         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33409         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33410
33411         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33412         that was previously under [RESET_PID].
33413         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33414         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33415         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33416
33417         * sysdeps/i386/nptl/Implies: New file.
33418         * sysdeps/x86_64/nptl/Implies: New file.
33419         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33420         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33421         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33422         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33423
33424         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33425         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33426         (__libc_vfork): New strong alias.
33427         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33428         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33429
33430         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33431         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33432         (__libc_vfork): New strong alias.
33433         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33434         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33435
33436         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33437         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33438         (__libc_vfork): New strong alias.
33439         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33440         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33441         * nptl/pt-vfork.c: New file.
33442         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33443         (libpthread: GLIBC_2.20): New version set (empty).
33444
33445 2014-05-14  Will Newton  <will.newton@linaro.org>
33446
33447         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33448         rather than #if.
33449
33450 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33451
33452         [BZ #16564]
33453         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33454         arguments with exponent 65 or above.
33455         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33456         arguments 0x1p113L or above.
33457         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33458         to arguments 0x1p107L or above.
33459         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33460         positive arguments with exponent 65 or above.
33461         * math/auto-libm-test-in: Add more tests of log1p.
33462         * math/auto-libm-test-out: Regenerated.
33463
33464         [BZ #16928]
33465         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33466         non-finite arguments is +0.
33467         * math/s_cacosf.c (__cacosf): Likewise.
33468         * math/s_cacosl.c (__cacosl): Likewise.
33469         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33470         * sysdeps/i386/fpu/libm-test-ulps: Update.
33471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33472
33473         [BZ #16927]
33474         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33475         value.
33476         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33477         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33478         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33479         for explicit high bit of mantissa when testing for argument equal
33480         to 1.
33481         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33482         * sysdeps/i386/fpu/libm-test-ulps: Update.
33483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33484
33485         [BZ #16516]
33486         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33487         (__erf): Scale by 16 instead of 8 in potentially underflowing
33488         case.  Ensure exception if result actually underflows.
33489         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33490         (__erff): Scale by 16 instead of 8 in potentially underflowing
33491         case.  Ensure exception if result actually underflows.
33492         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33493         (efx8): Remove variable.
33494         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33495         case.  Ensure exception if result actually underflows.
33496         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33497         (efx8): Remove variable.
33498         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33499         case.  Ensure exception if result actually underflows.
33500         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33501         (efx8): Remove variable.
33502         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33503         case.  Ensure exception if result actually underflows.
33504         * math/auto-libm-test-in: Add more tests of erf.
33505         * math/auto-libm-test-out: Regenerated.
33506
33507 2014-05-14  Andreas Schwab  <schwab@suse.de>
33508
33509         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33510         Remove code conditionalized on USE___THREAD.
33511
33512         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33513         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33514         not definedness.
33515
33516 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33517
33518         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33519         Define unconditionally.
33520         (__ASSUME_O_CLOEXEC): Likewise.
33521         (__ASSUME_SOCK_CLOEXEC): Likewise.
33522         (__ASSUME_IN_NONBLOCK): Likewise.
33523         (__ASSUME_PIPE2): Likewise.
33524         (__ASSUME_EVENTFD2): Likewise.
33525         (__ASSUME_SIGNALFD4): Likewise.
33526         (__ASSUME_DUP3): Likewise.
33527         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33528         (__ASSUME_DUP3): Do not define.
33529         (__ASSUME_EVENTFD2): Likewise.
33530         (__ASSUME_IN_NONBLOCK): Likewise.
33531         (__ASSUME_O_CLOEXEC): Likewise.
33532         (__ASSUME_PIPE2): Likewise.
33533         (__ASSUME_SIGNALFD4): Likewise.
33534         (__ASSUME_SOCK_CLOEXEC): Likewise.
33535         (__ASSUME_UTIMES): Undefine.
33536         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33537         (__ASSUME_UTIMES): Do not define.
33538         (__ASSUME_O_CLOEXEC): Likewise.
33539         (__ASSUME_SOCK_CLOEXEC): Likewise.
33540         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33541         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33542         0x020621].
33543         (__ASSUME_PIPE2): Likewise.
33544         (__ASSUME_EVENTFD2): Likewise.
33545         (__ASSUME_SIGNALFD4): Likewise.
33546         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33547         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33548         Do not define.
33549         (__ASSUME_EVENTFD2): Likewise.
33550         (__ASSUME_SIGNALFD4): Likewise.
33551         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33552         (__ASSUME_32BITUIDS): Likewise.
33553         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33554         (__ASSUME_IPC64): Likewise.
33555         (__ASSUME_ST_INO_64_BIT): Likewise.
33556         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33557         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33558         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33559         (__ASSUME_UTIMES): Do not define.
33560         (__ASSUME_PSELECT): Likewise.
33561         (__ASSUME_PPOLL): Likewise.
33562         (__ASSUME_O_CLOEXEC): Likewise.
33563         (__ASSUME_SOCK_CLOEXEC): Likewise.
33564         (__ASSUME_IN_NONBLOCK): Likewise.
33565         (__ASSUME_PIPE2): Likewise.
33566         (__ASSUME_EVENTFD2): Likewise.
33567         (__ASSUME_SIGNALFD4): Likewise.
33568         (__ASSUME_DUP3): Likewise.
33569         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33570         (__ASSUME_UTIMES): Likewise.
33571         (__ASSUME_O_CLOEXEC): Likewise.
33572         (__ASSUME_SOCK_CLOEXEC): Likewise.
33573         (__ASSUME_IN_NONBLOCK): Likewise.
33574         (__ASSUME_PIPE2): Likewise.
33575         (__ASSUME_EVENTFD2): Likewise.
33576         (__ASSUME_SIGNALFD4): Likewise.
33577         (__ASSUME_DUP3): Likewise.
33578         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33579         (__ASSUME_UTIMES): Likewise.
33580         (__ASSUME_O_CLOEXEC): Likewise.
33581         (__ASSUME_SOCK_CLOEXEC): Likewise.
33582         (__ASSUME_IN_NONBLOCK): Likewise.
33583         (__ASSUME_PIPE2): Likewise.
33584         (__ASSUME_EVENTFD2): Likewise.
33585         (__ASSUME_SIGNALFD4): Likewise.
33586         (__ASSUME_DUP3): Likewise.
33587         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33588         Likewise.
33589         (__ASSUME_UTIMES): Likewise.
33590         (__ASSUME_EVENTFD2): Likewise.
33591         (__ASSUME_SIGNALFD4): Likewise.
33592         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33593         (__ASSUME_O_CLOEXEC): Likewise.
33594         (__ASSUME_SOCK_CLOEXEC): Likewise.
33595         (__ASSUME_IN_NONBLOCK): Likewise.
33596         (__ASSUME_PIPE2): Likewise.
33597         (__ASSUME_EVENTFD2): Likewise.
33598         (__ASSUME_SIGNALFD4): Likewise.
33599         (__ASSUME_DUP3): Likewise.
33600         (__ASSUME_UTIMES): Undefine.
33601
33602         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33603         feclearexcept.  Remove symbol versioning code.
33604         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33605         symbol versioning code.
33606         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33607         symbol versioning code.
33608         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33609         feupdateenv.  Remove symbol versioning code.
33610         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33611         fegetexceptflag.  Remove symbol versioning code.
33612         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33613         fesetexceptflag.  Remove symbol versioning code.
33614         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33615         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33616         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33617         (__posix_fadvise64_l32): Remove prototype.
33618         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33619         code.
33620
33621 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33622
33623         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33624         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33625         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33626         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33627
33628 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33629
33630         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33631         current working directory
33632
33633 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33634
33635         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33636         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33637         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33638         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33639         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33640         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33641         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33642         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33643         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33644         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33645         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33646         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33647         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33648         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33649         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33650         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33651         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33652         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33653         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33654         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33655         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33656         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33657         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33658         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33659         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33660         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33661         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33662         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33663         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33664         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33665         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33666         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33667         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33668         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33669         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33670         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33671         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33672         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33673         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33674         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33675         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33676         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33677
33678         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33679         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33680
33681         * sysdeps/unix/sysv/linux/arm/Makefile
33682         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33683         Add rt-aeabi_unwind_cpp_pr1.
33684         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33685         Add nptl-aeabi_unwind_cpp_pr1.
33686         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33687         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33688         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33689         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33690         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33691         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33692
33693         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33694         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33695         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33696         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33697
33698         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33699         Deconditionalize the code that was previously under [RESET_PID].
33700         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33701
33702         * sysdeps/generic/exit-thread.h: New file.
33703         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33704         * include/unistd.h (__exit_thread): Remove declaration.
33705         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33706         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33707         * csu/libc-start.c: Include <exit-thread.h>.
33708         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33709         * nptl/pthread_create.c: Include <exit-thread.h>.
33710         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33711         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33712         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33713         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33714         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33715         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33716         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33717         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33718         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33719         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33720         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33721         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33722         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33723         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33724         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33725         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33726         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33727
33728 2014-05-13  Andreas Schwab  <schwab@suse.de>
33729
33730         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33731
33732 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33733
33734         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33735         (__ASSUME_UTIMES): Do not condition on kernel version.
33736         (__ASSUME_PSELECT): Define unconditionally.
33737         (__ASSUME_PPOLL): Likewise.
33738         (__ASSUME_ATFCTS): Likewise.
33739         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33740         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33741         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33742         (__ASSUME_UTIMENSAT): Define unconditionally.
33743         (__ASSUME_PRIVATE_FUTEX): Likewise.
33744         (__ASSUME_FALLOCATE): Likewise.
33745         (__ASSUME_O_CLOEXEC): Likewise.
33746         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33747         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33748         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33749         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33750         (__ASSUME_IN_NONBLOCK): Likewise.
33751         (__ASSUME_PIPE2): Likewise.
33752         (__ASSUME_EVENTFD2): Likewise.
33753         (__ASSUME_SIGNALFD4): Likewise.
33754         (__ASSUME_DUP3): Likewise.
33755         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33756         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33757         (__ASSUME_AT_RANDOM): Likewise.
33758         (__ASSUME_PREADV): Likewise.
33759         (__ASSUME_PWRITEV): Likewise.
33760         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33761         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33762         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33763         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33764         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33765         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33766         (__ASSUME_O_CLOEXEC): Define unconditionally.
33767         (__ASSUME_PSELECT): Do not undefine conditionally.
33768         (__ASSUME_PPOLL): Likewise.
33769         (__ASSUME_ATFCTS): Likewise.
33770         (__ASSUME_SET_ROBUST_LIST): Likewise.
33771         (__ASSUME_UTIMENSAT): Likewise.
33772         (__ASSUME_FDATASYNC): Define unconditionally.
33773         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33774         (__ASSUME_SIGFRAME_V2): Likewise.
33775         )__ASSUME_EVENTFD2): Likewise.
33776         (__ASSUME_SIGNALFD4): Likewise.
33777         (__ASSUME_PSELECT): Do not undefine conditionally.
33778         (__ASSUME_PPOLL): Likewise.
33779         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33780         (__ASSUME_PSELECT): Define unconditionally.
33781         (__ASSUME_PPOLL): Likewise.
33782         (__ASSUME_O_CLOEXEC): Likewise.
33783         (__ASSUME_SOCK_CLOEXEC): Likewise.
33784         (__ASSUME_IN_NONBLOCK): Likewise.
33785         (__ASSUME_PIPE2): Likewise.
33786         (__ASSUME_EVENTFD2): Likewise.
33787         (__ASSUME_SIGNALFD4): Likewise.
33788         (__ASSUME_DUP3): Likewise.
33789         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33790         (__ASSUME_O_CLOEXEC): Likewise.
33791         (__ASSUME_SOCK_CLOEXEC): Likewise.
33792         (__ASSUME_IN_NONBLOCK): Likewise.
33793         (__ASSUME_PIPE2): Likewise.
33794         (__ASSUME_EVENTFD2): Likewise.
33795         (__ASSUME_SIGNALFD4): Likewise.
33796         (__ASSUME_DUP3): Likewise.
33797         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33798         (__ASSUME_EVENTFD2): Likewise.
33799         (__ASSUME_SIGNALFD4): Likewise.
33800         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33801
33802 2014-05-12  Andreas Schwab  <schwab@suse.de>
33803
33804         [BZ #16932]
33805         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33806         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33807         than maximum RPC packet size.
33808         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33809         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33810         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33811         (_nss_nis_getservbyport_r): Likewise.
33812
33813 2014-05-12  Will Newton  <will.newton@linaro.org>
33814
33815         * malloc/Makefile (tests): Add tst-mallopt.
33816         * malloc/tst-mallopt.c: New file.
33817
33818 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33819
33820         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33821         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33822
33823 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33824
33825         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33826         (tst-tlsmod6.so): Likewise.
33827
33828 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33829
33830         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33831
33832 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33833
33834         [BZ #16064]
33835         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33836         and <dl-procinfo.h>.
33837         (__fegetenv): Save SSE state in envp->__eip if supported.
33838         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33839         envp->__eip if supported.
33840         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33841         and <dl-procinfo.h>.
33842         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33843         __data_offset and __data_selector in environment to 0.  Set SSE
33844         state if supported.
33845         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33846         test-fenv-sse.
33847         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33848         -mfpmath=sse.
33849         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33850
33851 2014-05-09  Will Newton  <will.newton@linaro.org>
33852
33853         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33854         and libc_relro_required for ARM.
33855         * sysdeps/arm/preconfigure: Regenerate.
33856
33857 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33858             Stefan Liebler  <stli@linux.vnet.ibm.com>
33859
33860         * config.make.in (enable-lock-elision): New Makefile variable.
33861         * configure.ac: Likewise.
33862         * configure: Regenerate.
33863         * sysdeps/s390/configure.ac:
33864         Add check for gcc transactions support.
33865         * sysdeps/s390/configure: Regenerate.
33866         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33867         Build elision files if enabled.
33868         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33869         Add lock elision support for s390.
33870         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33871         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33872         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33873         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33874         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33875         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33876         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33877         Likewise.
33878         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33879         Likewise.
33880         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33881         Likewise.
33882         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33883         Likewise.
33884         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33885         (__lll_timedlock_elision, __lll_lock_elision)
33886         (__lll_unlock_elision, __lll_trylock_elision)
33887         (lll_timedlock_elision, lll_lock_elision)
33888         (lll_unlock_elision, lll_trylock_elision): Add.
33889         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33890         (pthread_mutex_t): Add lock elision support for s390.
33891
33892 2014-05-14  Wilco  <wdijkstr@arm.com>
33893
33894         * sysdeps/arm/fclrexcpt.c: Cleanup.
33895         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33896         * sysdeps/arm/feenablxcpt.c: Cleanup.
33897         * sysdeps/arm/fegetenv.c: Cleanup.
33898         * sysdeps/arm/fegetexcept.c: Cleanup.
33899         * sysdeps/arm/fegetround.c: Cleanup.
33900         * sysdeps/arm/feholdexcpt.c: Cleanup.
33901         * sysdeps/arm/fesetenv.c: Cleanup.
33902         * sysdeps/arm/fesetround.c: Cleanup.
33903         * sysdeps/arm/feupdateenv.c: Cleanup.
33904         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33905         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33906         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33907         * sysdeps/arm/ftestexcept.c: Cleanup.
33908         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33909         * sysdeps/arm/setfpucw.c: Cleanup.
33910
33911 2014-05-09  Will Newton  <will.newton@linaro.org>
33912
33913         * sysdeps/arm/armv7/strcmp.S: New file.
33914         * NEWS: Mention addition of ARMv7 optimized strcmp.
33915
33916 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33917
33918         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33919         look for %.ac rather than %.in.
33920
33921         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33922         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33923         * sysdeps/mach/hurd/configure: Regenerated.
33924         * sysdeps/unix/sysv/linux/configure: Regenerated.
33925
33926         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33927
33928 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33929
33930         [BZ# 16922]
33931         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33932         (LONG_SUB): Ditto.
33933         (PTR_SUB): Ditto.
33934
33935 2014-05-07  Andreas Schwab  <schwab@suse.de>
33936
33937         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33938         when skipping over non-matching result from nscd.
33939
33940 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33941
33942         [BZ #16876]
33943         * nptl/sockperf.c (client): Check socket return value.
33944
33945         [BZ #16877]
33946         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33947         nscd security class.
33948
33949 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33950
33951         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33952         * sysdeps/arm/unwind.h: ... here.
33953
33954 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33955
33956         [BZ# 16916]
33957         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33958         Define.
33959
33960 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33961
33962         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33963         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33964         multiarch strncpy for PPC64.
33965         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33966         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33967         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33968         multiarch optimizations.
33969         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33970         (__libc_ifunc_impl_list): Likewise.
33971         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33972         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33973         multiarch stpncpy for PPC64.
33974         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33975         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33976
33977 2014-05-06  Andreas Schwab  <schwab@suse.de>
33978
33979         [BZ #16912]
33980         * gmon/mcount.c (_MCOUNT_DECL): Use
33981         atomic_compare_and_exchange_bool_acq instead of
33982         catomic_compare_and_exchange_bool_acq.
33983
33984 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33985
33986         * elf/Makefile (others, install-bin): Remove pldd.
33987         (pldd-modules): Variable removed.
33988         ($(objpfx)pldd): Target removed.
33989         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33990         (others, install-bin): Append pldd here.
33991         ($(objpfx)pldd): New target.
33992
33993         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33994         to 0, so the first #if test emitted later doesn't see it undefined.
33995         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33996         * sysdeps/gnu/errlist.c: Regenerated.
33997
33998 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33999
34000         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
34001         [libc_hidden_builtin_def]: Define to empty value.
34002         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
34003         [libc_hidden_builtin_def]: Likewise.
34004         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
34005         [libc_hidden_builtin_def]: Likewise.
34006         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
34007         [libc_hidden_builtin_def]: Likewise.
34008         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
34009         __redirect_memcpy and define ifunc as default hidden symbol.
34010         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
34011         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
34012
34013 2014-05-04  Adam Conrad  <adconrad@0c3.net>
34014
34015         * locale/iso-4217.def: Reintroduce XDR currency.
34016
34017 2014-05-04  Allan McRae  <allan@archlinux.org>
34018
34019         * po/eo.po: Update Esperanto translation from translation project.
34020
34021 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
34022
34023         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
34024         and FEATURE_INDEX_MAX to 1.
34025         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
34026
34027 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34028
34029         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
34030         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
34031         * iconvdata/big5.c (ONE_DIRECTION): Define.
34032         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
34033         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
34034         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
34035         * iconvdata/cp932.c (ONE_DIRECTION): Define.
34036         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
34037         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
34038         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
34039         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
34040         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
34041         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
34042         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
34043         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
34044         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
34045         * iconvdata/gbk.c (ONE_DIRECTION): Define.
34046         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
34047         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
34048         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
34049         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
34050         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
34051         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
34052         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
34053         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
34054         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
34055         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
34056         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
34057         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
34058         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
34059         * iconvdata/iso646.c (ONE_DIRECTION): Define.
34060         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
34061         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
34062         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
34063         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
34064         * iconvdata/johab.c (ONE_DIRECTION): Define.
34065         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
34066         * iconvdata/sjis.c (ONE_DIRECTION): Define.
34067         * iconvdata/t.61.c (ONE_DIRECTION): Define.
34068         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
34069         * iconvdata/tscii.c (ONE_DIRECTION): Define.
34070         * iconvdata/uhc.c (ONE_DIRECTION): Define.
34071         * iconvdata/unicode.c (ONE_DIRECTION): Define.
34072         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
34073         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
34074         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
34075
34076 2014-05-01  Roland McGrath  <roland@hack.frob.com>
34077
34078         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
34079         (_IO_JUMPS_OFFSET): Define to 0.
34080
34081         * nptl/sysdeps/pthread/bits/libc-lock.h
34082         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
34083         (__libc_lock_define_initialized_recursive): Always define using
34084         initializer.  Modern compilers treat uninitialized (implicit zero) and
34085         explicit zero initializers the same (i.e. put the datum in bss).
34086
34087 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34088
34089         * nscd/nscd-client.h: Include <string.h>.
34090
34091 2014-05-01  David S. Miller  <davem@davemloft.net>
34092
34093         [BZ #16885]
34094         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
34095         multiple zero bytes exist at the end of a string.
34096         Reported by Aurelien Jarno <aurelien@aurel32.net>
34097
34098         * string/test-strcmp.c (check): Add explicit test for situations where
34099         there are multiple zero bytes after the first.
34100
34101 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34102
34103         [BZ #16890]
34104         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
34105         when compiling wprintf.
34106         * stdio-common/tstdiomisc.c (t3): New function.
34107         (main): Call it.
34108
34109 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34110
34111         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
34112         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
34113         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
34114         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
34115
34116 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34117
34118         * stdlib/longlong.h: Updated from GCC.
34119
34120 2014-05-01  Will Newton  <will.newton@linaro.org>
34121             Bernard Ogden  <bernie.ogden@linaro.org>
34122
34123         * NEWS: Update fixed bug list.
34124
34125         [BZ #15119]
34126         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34127
34128 2014-04-30  David S. Miller  <davem@davemloft.net>
34129
34130         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34131         (libc_feholdexcept_setround_sparc_ctx): New function.
34132         (libc_fesetenv_sparc_ctx): Likewise.
34133         (libc_feupdateenv_sparc_ctx): Likewise.
34134         (libc_feholdsetround_sparc_ctx): Likewise.
34135         (libc_feholdexcept_setround_ctx): Define.
34136         (libc_feholdexcept_setroundf_ctx): Likewise.
34137         (libc_feholdexcept_setroundl_ctx): Likewise.
34138         (libc_fesetenv_ctx): Likewise.
34139         (libc_fesetenvf_ctx): Likewise.
34140         (libc_fesetenvl_ctx): Likewise.
34141         (libc_feupdateenv_ctx): Likewise.
34142         (libc_feupdateenvf_ctx): Likewise.
34143         (libc_feupdateenvl_ctx): Likewise.
34144         (libc_feresetround_ctx): Likewise.
34145         (libc_feresetroundf_ctx): Likewise.
34146         (libc_feresetroundl_ctx): Likewise.
34147         (libc_feholdsetround_ctx): Likewise.
34148         (libc_feholdsetroundf_ctx): Likewise.
34149         (libc_feholdsetroundl_ctx): Likewise.
34150
34151         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34152         with __USE_GNU instead of XOPEN cpp guards.
34153
34154         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34155         0.
34156
34157         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34158         with XOPEN cpp guards.
34159
34160 2014-04-30  Julian Brown  <julian@codesourcery.com>
34161
34162         [BZ #16888]
34163         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34164         handling.
34165
34166 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34167
34168         [BZ #9894]
34169         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34170         Change to 2.6.32.
34171         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34172         * sysdeps/unix/sysv/linux/configure: Regenerated.
34173         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34174         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34175         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34176         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34177         * README: Update reference to required Linux kernel version.
34178         * manual/install.texi (Linux): Update reference to required Linux
34179         kernel headers version.
34180         * INSTALL: Regenerated.
34181
34182         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34183         header inclusion.
34184         [POSIX] (limits.h): Likewise.
34185         [POSIX] (math.h): Likewise.
34186         [POSIX] (sys/wait.h): Likewise.
34187         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34188         function.
34189         [POSIX] (stddef.h): Do not allow header inclusion.
34190
34191 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34192
34193         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34194
34195 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34196
34197         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34198         Return immediately after lll_futex_wake.
34199
34200 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34201
34202         [BZ #16791]
34203         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34204         structure.
34205         (datahead_init_pos): Call datahead_init_common early.
34206         (datahead_init_neg): Likewise.
34207
34208         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34209         datahead_init_neg): New functions.
34210         * nscd/aicache.c (addhstaiX): Use them.
34211         * nscd/grpcache.c (cache_addgr): Likewise.
34212         * nscd/hstcache.c (cache_addhst): Likewise.
34213         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34214         * nscd/netgroupcache.c (do_notfound): Likewise.
34215         (addgetnetgrentX): Likewise.
34216         (addinnetgrX): Likewise.
34217         * nscd/pwdcache.c (cache_addpw): Likewise.
34218         * nscd/servicescache.c (cache_addserv): Likewise.
34219
34220 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34221             Atsushi Onoe  <atsushi@onoe.org>
34222
34223         [BZ #14308]
34224         [BZ #12994]
34225         [BZ #13651]
34226         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34227         one response is valid.
34228         * resolv/res_send.c (send_dg): Check for validity of other
34229         response if the current response is a referral.
34230
34231 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34232
34233         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34234
34235 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34236
34237         [BZ #16823]
34238         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34239         Always divide by positive zero when computing -Inf result.
34240         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34241         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34242
34243 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34244
34245         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34246         FPSCR if value do not change.
34247         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34248         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34249         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34250         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34251         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34252         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34253         function.
34254
34255 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34256
34257         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34258         * sysdeps/unix/sysv/linux/hppa: Move directory from
34259         ports/systeps/unix/sysv/linux/hppa.
34260         * README: Update listing for hppa-*-linux-gnu.
34261
34262 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34263
34264         [BZ #16754]
34265         * manual/stdio.texi (Hook functions): Fix types of stream hook
34266         functions.
34267         [BZ #16854]
34268         * socket/sys/socket.h: Fix typo in comment.
34269
34270 2014-04-28  Wilco  <wdijkstr@arm.com>
34271
34272         * sysdeps/arm/fenv_private.h: New file.
34273         * sysdeps/arm/math_private.h: New file.
34274         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34275
34276 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34277
34278         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34279         with __int128_t.
34280         (La_x86_64_retval): Likewise.
34281
34282 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34283
34284         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34285         fpsr if value didn't change.
34286         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34287         to fpcr if value didn't change.
34288         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34289         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34290         fpsr or fpcr if value didn't change.
34291         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34292         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34293         fpcr if value didn't change.
34294         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34295         to fpsr if value didn't change.
34296
34297 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34298
34299         * nptl/tst-sem3.c: Use test-skeleton.c
34300         (main): Rename to do_test.  Use return instead of
34301         exit.
34302         * nptl/tst-sem4.c: Use test-skeleton.c
34303         (main): Rename to do_test.
34304
34305 2014-04-22  David S. Miller  <davem@davemloft.net>
34306
34307         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34308         (struct sigaction): New struct member __glibc_reserved0, change
34309         type of sa_flags to int.
34310
34311 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34312
34313         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34314         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34315
34316 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34317
34318         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34319         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34320
34321 2014-04-22  Will Newton  <will.newton@linaro.org>
34322             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34323
34324         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34325         (__longjmp): Add longjmp and longjmp_target SystemTap
34326         probes.
34327         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34328         (__sigsetjmp): Add setjmp SystemTap probe.
34329
34330 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34331
34332         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34333         match manual order.
34334
34335 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34336
34337         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34338
34339         * sysdeps/powerpc/fpu/fenv_private.h
34340         (libc_feholdexcept_setroundl_ctx): Define to
34341         libc_feholdexcept_setround_ppc_ctx.
34342         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34343         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34344         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34345         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34346
34347 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34348
34349         * sysdeps/aarch64/math-tests.h: New file.
34350
34351 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34352
34353         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34354         New.
34355         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34356         Check and set bit_AVX2_Usable.
34357         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34358         macro.
34359         (bit_AVX2): Likewise.
34360         (index_AVX2_Usable): Likewise.
34361         (CPUID_AVX2): Likewise.
34362         (HAS_AVX2): Likewise.
34363
34364 2014-04-17  Will Newton  <will.newton@linaro.org>
34365
34366         * manual/setjmp.texi (System V contexts): Add note that
34367         calling setcontext on a context created by a call to a
34368         signal handler is undefined.  Update text to note that
34369         setcontext from a signal handler is possible but not
34370         recommended.
34371
34372         [BZ #16629]
34373         * stdlib/tst-setcontext.c: Include signal.h.
34374         (main): Check that the signal stack before and
34375         after swapcontext is the same.
34376
34377         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34378         Re-implement to restore registers in user code and avoid
34379         rt_sigreturn system call.
34380
34381 2014-04-17  Wilco  <wdijkstr@arm.com>
34382
34383         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34384         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34385         * math/test-fenv.c: Skip exception trap tests on targets which only
34386         support non-stop mode.
34387
34388 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34389             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34390
34391         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34392         (libc_feholdsetround_aarch64_ctx)
34393         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34394         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34395         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34396         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34397         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34398         (libc_feresetround_noexl_ctx): Define.
34399
34400 2014-04-16  Richard Henderson  <rth@redhat.com>
34401
34402         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34403
34404         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34405         unwind tables.
34406
34407         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34408         const from the non-libc, non-ldso copy.
34409
34410         * sysdeps/alpha/libm-test-ulps: Regenerate.
34411
34412 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34413             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34414
34415         * sysdeps/aarch64/fpu/math_private.h: New file.
34416
34417 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34418
34419         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34420
34421 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34422
34423         [BZ #16275]
34424         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34425         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34426         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34427         Intel MPX bound registers before _dl_profile_fixup.
34428         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34429         registers after _dl_profile_fixup.  Save and restore bound
34430         registers bnd0/bnd1 when calling _dl_call_pltexit.
34431         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34432         (LR_BND_OFFSET): Likewise.
34433         (LRV_BND0_OFFSET): Likewise.
34434         (LRV_BND1_OFFSET): Likewise.
34435
34436 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34437
34438         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34439         to...
34440         * sysdeps/mach/hurd/i386/tls.h: ... here.
34441         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34442         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34443         fields.
34444
34445 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34446
34447         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34448
34449 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34450
34451         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34452
34453 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34454
34455         [BZ #14770]
34456         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34457         * sysdeps/s390/configure: Regenerate.
34458
34459         [BZ #16824]
34460         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34461         Set round-to-nearest internally to reduce error accumulation.
34462
34463 2014-04-16  Alan Modra  <amodra@gmail.com>
34464
34465         [BZ #16740]
34466         [BZ #16619]
34467         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34468         * math/libm-test.inc (frexp_test_data): Add tests.
34469         * NEWS: Update fixed bug list.
34470
34471 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34472
34473         * benchtests/Makefile: Depend on libraries in build directory.
34474         (bench-math): Separate out math tests.
34475         (bench-pthread): Separate out pthread tests.
34476         (bench): Include math and pthread tests.
34477
34478 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34479
34480         [BZ #16831]
34481         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34482         _dl_debug_initialize.
34483
34484         * configure.ac: Remove SELinux header check.
34485         * configure: Regenerate.
34486         * nscd/selinux.c (perms): Array of const char* to permission names.
34487         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34488         default policy. Call string_to_security_class and string_to_av_perm to
34489         translate strings. Enforce default policy and call avs_has_perm with
34490         results of translated strings.
34491
34492 2014-04-13  David S. Miller  <davem@davemloft.net>
34493
34494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34495
34496 2014-04-12  Allan McRae  <allan@archlinux.org>
34497
34498         [BZ #16838]
34499         * manual/string.texi (Collation Functions): Fix qsort argument
34500         order in example.
34501         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34502
34503 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34504
34505         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34506         Make the test a no-op if there are no exceptions defined.
34507
34508 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34509
34510         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34511         enable-hardcoded-path-in-tests
34512
34513 2014-04-11  Will Newton  <will.newton@linaro.org>
34514
34515         * benchtests/Makefile (extra-objs): Add json-lib.o.
34516         (bench-func): Tidy up JSON output.
34517         * benchtests/bench-skeleton.c: Include json-lib.h.
34518         (main): Use JSON library functions to do output of
34519         benchmark results.
34520         * benchtests/bench-timing-type.c (main): Output the
34521         timing type simply, leaving formatting to the user.
34522         * benchtests/json-lib.c: New file.
34523         * benchtests/json-lib.h: Likewise.
34524
34525 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34526
34527         [BZ #15215]
34528         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34529         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34530         memory barriers.  Add comments.
34531         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34532         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34533         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34534         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34535         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34536         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34537
34538 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34539
34540         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34541         * sysdeps/s390/s390-64/configure.ac: ... this ...
34542         * sysdeps/s390/configure.ac: ... to here.
34543         * sysdeps/s390/s390-32/configure: Delete file.
34544         * sysdeps/s390/s390-64/configure: Delete file.
34545         * sysdeps/s390/configure: Regenerate.
34546
34547 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34548
34549         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34550
34551 2014-04-11  Will Newton  <will.newton@linaro.org>
34552
34553         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34554         to zero if it is not defined elsewhere.  (mtrim): Test
34555         the value of MALLOC_DEBUG with #if rather than #ifdef.
34556
34557 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34558
34559         * benchtests/pthread_once-inputs: New file.
34560         * benchtests/pthread_once-source.c: New file.
34561         * benchtests/README: Update documentation.
34562
34563 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34564             H.J. Lu  <hongjiu.lu@intel.com>
34565
34566         [BZ #16275]
34567         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34568         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34569         * sysdeps/x86_64/configure: Regenerated.
34570         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34571         macro.
34572         (REGISTER_SAVE_RAX): Likewise.
34573         (REGISTER_SAVE_RCX): Likewise.
34574         (REGISTER_SAVE_RDX): Likewise.
34575         (REGISTER_SAVE_RSI): Likewise.
34576         (REGISTER_SAVE_RDI): Likewise.
34577         (REGISTER_SAVE_R8): Likewise.
34578         (REGISTER_SAVE_R9): Likewise.
34579         (REGISTER_SAVE_BND0): Likewise.
34580         (REGISTER_SAVE_BND1): Likewise.
34581         (REGISTER_SAVE_BND2): Likewise.
34582         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34583         bound registers when calling _dl_fixup.
34584
34585 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34586
34587         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34588         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34589         of its definition.
34590         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34591         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34592         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34593         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34594         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34595         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34596         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34597
34598 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34599
34600         [BZ #15514]
34601         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34602         pathconf(_PC_NAME_MAX).
34603
34604 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34605
34606         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34607         Remove macro usage.
34608         (__PTHREAD_SPINS): Move definition to ...
34609         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34610         (__PTHREAD_SPINS): ... here.
34611         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34612         (__PTHREAD_SPIN): Likewise.
34613         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34614         (__PTHREAD_SPIN): Likewise.
34615         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34616         (__PTHREAD_SPIN): Likewise.
34617         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34618         (__PTHREAD_SPIN): Likewise.
34619         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34620         (__PTHREAD_SPIN): Likewise.
34621         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34622         (__PTHREAD_SPIN): Likewise.
34623         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34624         (__PTHREAD_SPIN): Likewise.
34625         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34626         (__PTHREAD_SPIN): Likewise.
34627         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34628         (__PTHREAD_SPIN): Likewise.
34629         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34630         (__PTHREAD_SPIN): Likewise.
34631         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34632         (__PTHREAD_SPIN): Likewise.
34633         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34634         (__PTHREAD_SPIN): Likewise.
34635
34636         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34637         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34638         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34639         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34640         imply folder.
34641         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34642         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34643         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34644         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34645         correct imply path.
34646         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34647         strlen symbol for non multi-arch builds.
34648         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34649         missing hidden_def and weak_alias.
34650
34651 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34652
34653         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34654
34655 2014-04-07  Will Newton  <will.newton@linaro.org>
34656
34657         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34658         and contents.  [!_LIBC] Remove #ifndef and contents.
34659         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34660         * string/memccpy.c (__memccpy): Use ANSI prototype.
34661         * string/memfrob.c (memfrob): Likewise.
34662         * string/strcoll.c (STRCOLL): Likewise.
34663         * string/strlen.c (strlen): Likewise.
34664         * string/strtok.c (STRTOK): Likewise.
34665         * string/strcat.c: Remove unused #include of memcopy.h.
34666         (strcat): Use ANSI prototype.
34667         * string/strchr.c: Remove unused #include of memcopy.h.
34668         (strchr): Use ANSI prototype.
34669         * string/strcmp.c: Remove unused #include of memcopy.h.
34670         (strcmp): Use ANSI prototype.
34671         * string/strcpy.c: Remove unused #include of memcopy.h.
34672         (strcpy): Use ANSI prototype.
34673
34674 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34675
34676         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34677         * config.make.in (config-extra-cppflags): Set it from
34678         libc_extra_cppflags.
34679         * configure.ac (libc_extra_cflags): Make it accumulate over
34680         configure fragments.
34681         (libc_extra_cppflags): New flag.
34682         * configure. Regenerate.
34683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34684         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34685         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34687
34688         [BZ #16815]
34689         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34690         result for FE_DOWNWARD rounding mode.
34691         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34692         Likewise.
34693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34694
34695 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34696
34697         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34698         in function argument name.
34699
34700 2014-04-03  David Svoboda  <svoboda@cert.org>
34701
34702         [BZ #5666]
34703         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34704         explicitly.
34705
34706 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34707
34708         * elf/dl-unmap-segments.h: New file.
34709         * sysdeps/generic/ldsodefs.h
34710         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34711         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34712         * elf/dl-fptr.c: Likewise.
34713         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34714         * sysdeps/aarch64/tlsdesc.c: Likewise.
34715         * sysdeps/arm/tlsdesc.c: Likewise.
34716         * sysdeps/i386/tlsdesc.c: Likewise.
34717         * sysdeps/tile/dl-runtime.c: Likewise.
34718         * sysdeps/x86_64/tlsdesc.c: Likewise.
34719         * elf/dl-load.h: New file.
34720         * elf/dl-load.c: Include it.
34721         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34722         Macros moved to dl-load.h.
34723         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34724         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34725         Use _dl_unmap_segments in place of __munmap.
34726         Break out segment-mapping loop into ...
34727         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34728
34729 2014-04-03  Will Newton  <will.newton@linaro.org>
34730
34731         * elf/dl-lookup.c (do_lookup_x): Remove comment
34732         referring to nested function and move variable
34733         declarations down to before first use.
34734
34735 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34736
34737         [BZ #16799]
34738         [BZ #16800]
34739         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34740         with 0 numerator.
34741         * math/s_catanf.c (__catanf): Likewise.
34742         * math/s_catanh.c (__catanh): Likewise.
34743         * math/s_catanhf.c (__catanhf): Likewise.
34744         * math/s_catanhl.c (__catanhl): Likewise.
34745         * math/s_catanl.c (__catanl): Likewise.
34746         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34747         by positive zero when computing -Inf result.
34748         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34749         (catanh_test): Likewise.
34750         * sysdeps/i386/fpu/libm-test-ulps: Update.
34751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34752
34753         [BZ #16789]
34754         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34755         instead of using underflowing value in computing result.
34756         * math/s_clog10.c (__clog10): Likewise.
34757         * math/s_clog10f.c (__clog10f): Likewise.
34758         * math/s_clog10l.c (__clog10l): Likewise.
34759         * math/s_clogf.c (__clogf): Likewise.
34760         * math/s_clogl.c (__clogl): Likewise.
34761         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34762         (clog10_test): Likewise.
34763         * sysdeps/i386/fpu/libm-test-ulps: Update.
34764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34765
34766 2014-04-02  Alan Modra  <amodra@gmail.com>
34767
34768         [BZ #16739]
34769         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34770         output when value is near a power of two.  Use int64_t for lx and
34771         remove casts.  Use decimal rather than hex exponent constants.
34772         Don't use long double multiplication when double will suffice.
34773         * math/libm-test.inc (nextafter_test_data): Add tests.
34774         * NEWS: Add 16739 and 16786 to bug list.
34775
34776         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34777
34778         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34779
34780 2014-04-01  Will Newton  <will.newton@linaro.org>
34781
34782         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34783         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34784
34785 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34786
34787         [BZ #13347]
34788         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34789         * nptl/tst-setuid2.c: New file.
34790         * nptl/Makefile (xtests): Add tst-setuid2.
34791
34792 2014-04-01  Alan Modra  <amodra@gmail.com>
34793
34794         [BZ #16786]
34795         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34796
34797 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34798
34799         [BZ #6803]
34800         [BZ #6804]
34801         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34802         set errno as appropriate.
34803         * math/w_scalbf.c (__scalbf): Likewise.
34804         * math/w_scalbl.c (__scalbl): Likewise.
34805         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34806         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34807         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34808         Add more NaN tests.
34809
34810         [BZ #16349]
34811         * math/w_atan2.c: Include <errno.h>.
34812         (__atan2): Set errno for result underflowing to zero.
34813         * math/w_atan2f.c: Include <errno.h>.
34814         (__atan2f): Set errno for result underflowing to zero.
34815         * math/w_atan2l.c: Include <errno.h>.
34816         (__atan2l): Set errno for result underflowing to zero.
34817         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34818         tests.
34819         * math/auto-libm-test-out: Regenerated.
34820
34821 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34822
34823         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34824         Encode instruction correctly in little endian.
34825         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34826         Likewise.
34827         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34828         Likewise.
34829         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34830         Likewise.
34831         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34832         Likewise.
34833
34834 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34835
34836         [BZ #9894]
34837         * sysdeps/unix/sysv/linux/kernel-features.h
34838         [__sparc__ && !__arch64__ && !__sparc_v9__]
34839         (__ASSUME_SET_ROBUST_LIST): Do not define.
34840         [__sparc__ && !__arch64__ && !__sparc_v9__]
34841         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34842         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34843         Likewise.
34844         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34845         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34846         (__ASSUME_REQUEUE_PI): Likewise.
34847         (__ASSUME_SET_ROBUST_LIST): Likewise.
34848         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34849         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34850         Undefine.
34851         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34852         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34853         Likewise.
34854         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34855         Likewise.
34856         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34857         Likewise.
34858         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34859         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34860         Undefine.
34861         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34862         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34863         Likewise.
34864
34865         [BZ #16648]
34866         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34867         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34868         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34869
34870 2014-03-31  Will Newton  <will.newton@linaro.org>
34871
34872         * benchtests/Makefile (bench): Add ffs and ffsll to list
34873         of tests.
34874         * benchtests/ffs-inputs: New file.
34875         * benchtests/ffsll-inputs: Likewise.
34876
34877 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34878
34879         [BZ #16770]
34880         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34881         too large before casting to int.
34882         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34883         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34884         * math/libm-test.inc (scalb_test_data): Add more tests.
34885
34886 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34887
34888         * benchtests/Makefile (DETAILED_OPT): New make option.
34889         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34890         set.
34891         * benchtests/bench-skeleton.c: Include stdbool.h.
34892         (main): Store and print timings per input.
34893         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34894         member to each argument value.
34895         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34896         (_print_arg_data): Initialize per-input timing to 0.
34897
34898         * benchtests/Makefile (timing-type): New binary.
34899         (bench-clean): Also remove bench-timing-type.
34900         (bench): New target for timing-type.
34901         (bench-func): Print output in JSON format.
34902         * benchtests/bench-skeleton.c (main): Print output in JSON
34903         format.
34904         * benchtests/bench-timing-type.c: New file.
34905         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34906         (TIMING_PRINT_STATS): Remove.
34907         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34908         name separately.
34909
34910         * benchtests/bench-modf.c: Remove.
34911         * benchtests/modf-inputs: New inputs file.
34912
34913 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34914
34915         [BZ #16362]
34916         * math/s_clog10.c (M_PI_LOG10E): New macro.
34917         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34918         imaginary parts are 0.
34919         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34920         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34921         imaginary parts are 0.
34922         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34923         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34924         imaginary parts are 0.
34925         * math/libm-test.inc (clog10_test_data): Update expected results
34926         for when real and imaginary parts are 0.
34927
34928 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34929
34930         * elf/dl-load.c: Finish conversion of __builtin_expect into
34931         __glibc_{un}likely.
34932
34933 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34934
34935         [BZ #16348]
34936         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34937         1+x for argument with exponent below -67.
34938         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34939         Likewise.
34940         * math/auto-libm-test-in: Add more tests of exp.
34941         * math/auto-libm-test-out: Regenerated.
34942
34943 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34944
34945         [BZ #16759]
34946         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34947         (nscd_getnetgrent): Use it.
34948
34949         [BZ #16760]
34950         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34951         of stpcpy.
34952
34953 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34954
34955         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34956         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34957         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34958         (lll_robust_unlock): Remove out of line section. Use cfi
34959         intrinsics.
34960         (LLL_STUB_UNWIND_INFO*): Remove.
34961         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34962         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34963         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34964         (lll_robust_unlock): Remove out of line section. Use cfi
34965         intrinsics.
34966         (LLL_STUB_UNWIND_INFO*): Remove.
34967
34968 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34969
34970         [BZ #16758]
34971         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34972         blank values.
34973
34974 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34975
34976         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34977
34978 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34979
34980         [BZ #16198]
34981         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34982         fnstenv.
34983         * math/test-fenv-preserve.c: New file.
34984         * math/Makefile (tests): Add test-fenv-preserve.
34985
34986 2014-03-26  Will Newton <will.newton@linaro.org>
34987
34988         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34989
34990 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34991
34992         * scripts/versionlist.awk: Partition the version sets and emit all
34993         GLIBC_* (sorted) before all others (sorted).
34994
34995 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34996
34997         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34998         GLIBC_2.2.5 version.
34999
35000 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35001
35002         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
35003         calls.
35004
35005         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
35006         previous change.
35007
35008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35009
35010 2014-03-25  Andreas Schwab  <schwab@suse.de>
35011
35012         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
35013         label to be used after in6ailist is initialized.
35014
35015 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35016
35017         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35018         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35019
35020 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
35021
35022         [BZ #16357]
35023         [BZ #16599]
35024         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
35025         min_plus_half.
35026         (fp_formats): Update initializers.
35027         (init_fp_formats): Initialize new field.
35028         (output_for_one_input_case): Allow underflow for results up to
35029         min_plus_half.
35030         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
35031         * math/auto-libm-test-in: Don't mark some underflows from asin and
35032         atanh as spurious.
35033         * math/auto-libm-test-out: Regenerated.
35034         * sysdeps/i386/fpu/libm-test-ulps: Update.
35035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35036
35037 2014-03-25  Andreas Schwab  <schwab@suse.de>
35038
35039         * libio/Makefile (tst-ftell-partial-wide-ENV)
35040         (tst-ftell-active-handler-ENV): Define.
35041
35042 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
35043
35044         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
35045
35046 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35047
35048         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
35049
35050 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35051
35052         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
35053         * sysdeps/x86_64/fpu/multiarch/e_exp.c
35054         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
35055
35056 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35057
35058         [BZ #16634]
35059         * elf/dl-load.c (open_verify): Add mode parameter.
35060         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
35061         (open_path): Change from boolean 'secure' to complete flag 'mode'
35062         (_dl_map_object): Adjust.
35063         * elf/Makefile (tests): Add tst-dlopen-aout.
35064         * elf/tst-dlopen-aout.c: New test.
35065
35066 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
35067
35068         [BZ #16714]
35069         * sysdeps/unix/sysv/linux/s390/bits/stat.h
35070         (struct stat): Rename member pad0 to __glibc_reserved0.
35071
35072         [BZ #16712]
35073         * sysdeps/s390/s390-32/bits/wordsize.h
35074         (__WORDSIZE32_SIZE_ULONG): New define.
35075         * sysdeps/s390/s390-64/bits/wordsize.h
35076         (__WORDSIZE32_SIZE_ULONG): Likewise.
35077         * sysdeps/generic/stdint.h (SIZE_MAX):
35078         Define as UL if __WORDSIZE32_SIZE_ULONG.
35079
35080         [BZ #16713]
35081         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35082         (__glibc_reserved0): New variable.
35083         (sa_flags): Change type to int.
35084
35085         * posix/Makefile (before-compile): Use += before-compile instead
35086         of a :=.
35087
35088         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
35089         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35090
35091 2014-03-20  Andreas Schwab  <schwab@suse.de>
35092
35093         [BZ #16743]
35094         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
35095         non-matching result from nscd.
35096
35097 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35098
35099         * scripts/bench.py: Moved to ...
35100         * benchtests/scripts/bench.py: ... here.
35101         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
35102
35103 2014-03-24  Andreas Schwab  <schwab@suse.de>
35104
35105         [BZ #16002]
35106         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
35107         alloca_account and account alloca use for struct in6ailist.
35108
35109 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35110
35111         [BZ #16284]
35112         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
35113         rounding mode to recompute results that overflow to infinity or
35114         underflow to zero.
35115         * math/auto-libm-test-in: Don't mark tests as expected to fail for
35116         bug 16284.
35117         * math/auto-libm-test-out: Regenerated.
35118         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
35119         (ccosh_test): Likewise.
35120         (csin_test_data): Use plus_oflow.
35121         (csin_test): Use ALL_RM_TEST.
35122         (csinh_test_data): Use plus_oflow.
35123         (csinh_test): Use ALL_RM_TEST.
35124         * sysdeps/i386/fpu/libm-test-ulps: Update.
35125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35126
35127 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
35128
35129         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35130         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35131         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35132
35133         [BZ #16731]
35134         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35135         when x - 1 is zero.
35136         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35137         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35138         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35139         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35140         argument is 1.
35141         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35142         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35143         zero.
35144         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35145         * sysdeps/i386/fpu/libm-test-ulps: Update.
35146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35147
35148 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35149
35150         * scripts/bench.pl: Remove file.
35151         * scripts/bench.py: New benchmark script.
35152         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35153         * benchtests/README: Mention python dependency.
35154         * scripts/pylintrc: New file.
35155         * scripts/pylint: New file.
35156
35157         * bits/mathdef.h: Use #ifdef instead of #if.
35158         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35159         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35160         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35161         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35162         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35163         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35164
35165 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35166             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35167
35168         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35169         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35170         and strpbrk-ppc64 objects.
35171         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35172         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35173         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35174         multiarch strpbrk for POWER7.
35175         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35176         multiarch strpbrk for PPC64.
35177         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35178         ifunc selector.
35179         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35180         strpbrk for POWER7.
35181
35182 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35183
35184         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35185         (atan_test): Likewise.
35186         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35187         (atanh_test): Use ALL_RM_TEST.
35188         (atan2_test_data): Likewise.
35189         (cabs_test): Likewise.
35190         (cacosh_test): Likewise.
35191         (carg_test): Likewise.
35192         (casin_test): Likewise.
35193         (casinh_test): Likewise.
35194         (cbrt_test): Likewise.
35195         (csqrt_test): Likewise.
35196         (erf_test): Likewise.
35197         (erfc_test): Likewise.
35198         (pow10_test): Likewise.
35199         (exp2_test): Likewise.
35200         (hypot_test): Likewise.
35201         (j0_test): Likewise.
35202         (j1_test): Likewise.
35203         (lgamma_test): Likewise.
35204         (gamma_test): Likewise.
35205         (sincos_test): Likewise.
35206         (tanh_test): Likewise.
35207         (y0_test): Likewise.
35208         (y1_test): Likewise.
35209         * sysdeps/i386/fpu/libm-test-ulps: Update.
35210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35211
35212 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35213
35214         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35215         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35216         and strcspn-ppc64 objects.
35217         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35218         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35219         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35220         multiarch strcspn for POWER7.
35221         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35222         multiarch strcspn for PPC64.
35223         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35224         ifunc selector.
35225         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35226         strcspn for POWER7.
35227
35228 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35229
35230         * math/gen-libm-test.pl (generate_testfile): Expect only function
35231         name as argument to AUTO_TESTS_* and pass results for all rounding
35232         modes to parse_args.
35233         (parse_auto_input): Separate inputs of automatic tests from
35234         outputs before storing in %auto_tests.
35235         * math/libm-test.inc (acos_test_data): Update call to
35236         AUTO_TESTS_f_f.
35237         (acos_test): Use ALL_RM_TEST.
35238         (acos_tonearest_test_data): Remove.
35239         (acos_test_tonearest): Likewise.
35240         (acos_towardzero_test_data): Likewise.
35241         (acos_test_towardzero): Likewise.
35242         (acos_downward_test_data): Likewise.
35243         (acos_test_downward): Likewise.
35244         (acos_upward_test_data): Likewise.
35245         (acos_test_upward): Likewise.
35246         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35247         (asin_test_data): Likewise.
35248         (asin_test): Use ALL_RM_TEST.
35249         (asin_tonearest_test_data): Remove.
35250         (asin_test_tonearest): Likewise.
35251         (asin_towardzero_test_data): Likewise.
35252         (asin_test_towardzero): Likewise.
35253         (asin_downward_test_data): Likewise.
35254         (asin_test_downward): Likewise.
35255         (asin_upward_test_data): Likewise.
35256         (asin_test_upward): Likewise.
35257         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35258         (atan_test_data): Likewise.
35259         (atanh_test_data): Likewise.
35260         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35261         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35262         (carg_test_data): Likewise.
35263         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35264         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35265         (ccosh_test_data): Likewise.
35266         (cexp_test_data): Likewise.
35267         (clog_test_data): Likewise.
35268         (clog10_test_data): Likewise.
35269         (cos_test_data): Update call to AUTO_TESTS_f_f.
35270         (cos_test): Use ALL_RM_TEST.
35271         (cos_tonearest_test_data): Remove.
35272         (cos_test_tonearest): Likewise.
35273         (cos_towardzero_test_data): Likewise.
35274         (cos_test_towardzero): Likewise.
35275         (cos_downward_test_data): Likewise.
35276         (cos_test_downward): Likewise.
35277         (cos_upward_test_data): Likewise.
35278         (cos_test_upward): Likewise.
35279         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35280         (cosh_test): Use ALL_RM_TEST.
35281         (cosh_tonearest_test_data): Remove.
35282         (cosh_test_tonearest): Likewise.
35283         (cosh_towardzero_test_data): Likewise.
35284         (cosh_test_towardzero): Likewise.
35285         (cosh_downward_test_data): Likewise.
35286         (cosh_test_downward): Likewise.
35287         (cosh_upward_test_data): Likewise.
35288         (cosh_test_upward): Likewise.
35289         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35290         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35291         (ctan_test_data): Likewise.
35292         (ctan_test): Use ALL_RM_TEST.
35293         (ctan_tonearest_test_data): Remove.
35294         (ctan_test_tonearest): Likewise.
35295         (ctan_towardzero_test_data): Likewise.
35296         (ctan_test_towardzero): Likewise.
35297         (ctan_downward_test_data): Likewise.
35298         (ctan_test_downward): Likewise.
35299         (ctan_upward_test_data): Likewise.
35300         (ctan_test_upward): Likewise.
35301         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35302         (ctanh_test): Use ALL_RM_TEST.
35303         (ctanh_tonearest_test_data): Remove.
35304         (ctanh_test_tonearest): Likewise.
35305         (ctanh_towardzero_test_data): Likewise.
35306         (ctanh_test_towardzero): Likewise.
35307         (ctanh_downward_test_data): Likewise.
35308         (ctanh_test_downward): Likewise.
35309         (ctanh_upward_test_data): Likewise.
35310         (ctanh_test_upward): Likewise.
35311         (erf_test_data): Update call to AUTO_TESTS_f_f.
35312         (erfc_test_data): Likewise.
35313         (exp_test_data): Likewise.
35314         (exp_test): Use ALL_RM_TEST.
35315         (exp_tonearest_test_data): Remove.
35316         (exp_test_tonearest): Likewise.
35317         (exp_towardzero_test_data): Likewise.
35318         (exp_test_towardzero): Likewise.
35319         (exp_downward_test_data): Likewise.
35320         (exp_test_downward): Likewise.
35321         (exp_upward_test_data): Likewise.
35322         (exp_test_upward): Likewise.
35323         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35324         (exp10_test): Use ALL_RM_TEST.
35325         (exp10_tonearest_test_data): Remove.
35326         (exp10_test_tonearest): Likewise.
35327         (exp10_towardzero_test_data): Likewise.
35328         (exp10_test_towardzero): Likewise.
35329         (exp10_downward_test_data): Likewise.
35330         (exp10_test_downward): Likewise.
35331         (exp10_upward_test_data): Likewise.
35332         (exp10_test_upward): Likewise.
35333         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35334         (expm1_test_data): Likewise.
35335         (expm1_test): Use ALL_RM_TEST.
35336         (expm1_tonearest_test_data): Remove.
35337         (expm1_test_tonearest): Likewise.
35338         (expm1_towardzero_test_data): Likewise.
35339         (expm1_test_towardzero): Likewise.
35340         (expm1_downward_test_data): Likewise.
35341         (expm1_test_downward): Likewise.
35342         (expm1_upward_test_data): Likewise.
35343         (expm1_test_upward): Likewise.
35344         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35345         (fma_test): Use ALL_RM_TEST.
35346         (fma_towardzero_test_data): Remove.
35347         (fma_test_towardzero): Likewise.
35348         (fma_downward_test_data): Likewise.
35349         (fma_test_downward): Likewise.
35350         (fma_upward_test_data): Likewise.
35351         (fma_test_upward): Likewise.
35352         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35353         (j0_test_data): Update call to AUTO_TESTS_f_f.
35354         (j1_test_data): Likewise.
35355         (jn_test_data): Update call to AUTO_TESTS_if_f.
35356         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35357         (log_test_data): Update call to AUTO_TESTS_f_f.
35358         (log10_test_data): Likewise.
35359         (log1p_test_data): Likewise.
35360         (log2_test_data): Likewise.
35361         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35362         (pow_tonearest_test_data): Likewise.
35363         (sin_test_data): Update call to AUTO_TESTS_f_f.
35364         (sin_test): Use ALL_RM_TEST.
35365         (sin_tonearest_test_data): Remove.
35366         (sin_test_tonearest): Likewise.
35367         (sin_towardzero_test_data): Likewise.
35368         (sin_test_towardzero): Likewise.
35369         (sin_downward_test_data): Likewise.
35370         (sin_test_downward): Likewise.
35371         (sin_upward_test_data): Likewise.
35372         (sin_test_upward): Likewise.
35373         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35374         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35375         (sinh_test): Use ALL_RM_TEST.
35376         (sinh_tonearest_test_data): Remove.
35377         (sinh_test_tonearest): Likewise.
35378         (sinh_towardzero_test_data): Likewise.
35379         (sinh_test_towardzero): Likewise.
35380         (sinh_downward_test_data): Likewise.
35381         (sinh_test_downward): Likewise.
35382         (sinh_upward_test_data): Likewise.
35383         (sinh_test_upward): Likewise.
35384         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35385         (sqrt_test): Use ALL_RM_TEST.
35386         (sqrt_tonearest_test_data): Remove.
35387         (sqrt_test_tonearest): Likewise.
35388         (sqrt_towardzero_test_data): Likewise.
35389         (sqrt_test_towardzero): Likewise.
35390         (sqrt_downward_test_data): Likewise.
35391         (sqrt_test_downward): Likewise.
35392         (sqrt_upward_test_data): Likewise.
35393         (sqrt_test_upward): Likewise.
35394         (tan_test_data): Update call to AUTO_TESTS_f_f.
35395         (tan_test): Use ALL_RM_TEST.
35396         (tan_tonearest_test_data): Remove.
35397         (tan_test_tonearest): Likewise.
35398         (tan_towardzero_test_data): Likewise.
35399         (tan_test_towardzero): Likewise.
35400         (tan_downward_test_data): Likewise.
35401         (tan_test_downward): Likewise.
35402         (tan_upward_test_data): Likewise.
35403         (tan_test_upward): Likewise.
35404         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35405         (tgamma_test_data): Likewise.
35406         (y0_test_data): Likewise.
35407         (y1_test_data): Likewise.
35408         (yn_test_data): Update call to AUTO_TESTS_if_f.
35409         (main): Do not call removed functions.
35410
35411 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35412
35413         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35414         (ldexp_test_data): Remove.
35415         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35416         scalbn_test_data.
35417         (scalb_test): Use ALL_RM_TEST.
35418
35419 2014-03-19  Andreas Schwab  <schwab@suse.de>
35420
35421         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35422
35423 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35424
35425         [BZ #16649]
35426         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35427         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35428         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35429         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35430         (__ASSUME_PREADV): Undefine.
35431         (__ASSUME_PWRITEV): Likewise.
35432
35433 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35434
35435         * bits/mman-linux.h: Add comment about non-Linux use.
35436         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35437         bits/mman-linux.h resting place.
35438
35439         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35440         * bits/mman-linux.h: ... here.
35441
35442 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35443
35444         * conform/conformtest.pl: Add standard definition when calling C
35445         preprocessor on data files.
35446         (checknamespace): Remove unused variable.
35447
35448 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35449
35450         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35451         minus_oflow, plus_uflow and minus_uflow in expected results.
35452         * math/libm-test.inc (scalbn_test_data): Add more tests of
35453         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35454         minus_uflow.
35455         (scalbn_test): Use ALL_RM_TEST.
35456         (scalbln_test_data): Add more tests of negative arguments.  Use
35457         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35458         (scalbln_test): Use ALL_RM_TEST.
35459
35460 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35461
35462         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35463
35464 2014-03-18  Will Newton  <will.newton@linaro.org>
35465
35466         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35467         inaccurate comment.
35468
35469 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35470
35471         * Makerules [!subdir] (check-abi): Exit with error status if a
35472         test failed.
35473
35474 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35475
35476         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35477         for rint.  Include results for all rounding modes.
35478         (nearbyint_test): Use ALL_RM_TEST.
35479         (rint_test_data): Include all tests used for nearbyint.
35480
35481 2014-03-17  Will Newton  <will.newton@linaro.org>
35482
35483         * nptl/sysdeps/pthread/pthread.h: Revert previous
35484         change.
35485
35486         * sysdeps/generic/ldsodefs.h: Revert previous
35487         change.
35488
35489         * libio/genops.c: Revert previous change.
35490         * libio/libioP.h: Likewise.
35491         * stdio-common/vfprintf.c: Likewise.
35492
35493         * sysdeps/generic/math_private.h: Revert previous
35494         change.
35495
35496         * sysdeps/generic/math_private.h: Check whether
35497         HAVE_RM_CTX is defined with #ifdef rather
35498         than #if.
35499
35500         * argp/argp-fmtstream.h: Check whether
35501         __STRICT_ANSI__ is defined with #ifdef rather
35502         than #if.
35503         * argp/argp.h: Likewise.
35504
35505         * libio/genops.c: Check whether
35506         _IO_JUMPS_OFFSET is defined with #ifdef rather
35507         than #if.
35508         * libio/libioP.h: Likewise.
35509         * stdio-common/vfprintf.c: Likewise.
35510
35511         * sysdeps/generic/ldsodefs.h: Check whether
35512         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35513         than #if.
35514
35515         * nptl/sysdeps/pthread/pthread.h: Check
35516         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35517         its value.
35518
35519 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35520
35521         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35522         setting O_APPEND.
35523         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35524         test case.
35525
35526         [BZ #16680]
35527         * libio/fileops.c (_IO_file_open): Seek to end of file but
35528         don't cache the offset.
35529         (get_file_offset): Remove function.
35530         (do_ftell): Use cached offset when available.
35531         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35532         don't cache the offset.
35533         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35534         case.
35535         (do_one_test): Call it.
35536         (do_ftell_test): Fix up expected old offset for a+ mode.
35537         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35538         available.
35539
35540         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35541         up test status with function return status.
35542         (do_write_test): Likewise.
35543         (do_append_test): Likewise.
35544
35545         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35546         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35547         Remove.
35548
35549 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35550
35551         * math/gen-libm-test.pl (parse_args): Handle results specified for
35552         each rounding mode separately.
35553         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35554         tests and results from lrint_tonearest_test_data,
35555         lrint_towardzero_test_data, lrint_downward_test_data and
35556         lrint_upward_test_data.
35557         (lrint_test): Use ALL_RM_TEST.
35558         (lrint_tonearest_test_data): Remove.
35559         (lrint_test_tonearest): Likewise.
35560         (lrint_towardzero_test_data): Likewise.
35561         (lrint_test_towardzero): Likewise.
35562         (lrint_downward_test_data): Likewise.
35563         (lrint_test_downward): Likewise.
35564         (lrint_upward_test_data): Likewise.
35565         (lrint_test_upward): Likewise.
35566         (llrint_test_data): Merge in per-rounding-mode tests and results
35567         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35568         llrint_downward_test_data and llrint_upward_test_data.
35569         (llrint_test): Use ALL_RM_TEST.
35570         (llrint_tonearest_test_data): Remove.
35571         (llrint_test_tonearest): Likewise.
35572         (llrint_towardzero_test_data): Likewise.
35573         (llrint_test_towardzero): Likewise.
35574         (llrint_downward_test_data): Likewise.
35575         (llrint_test_downward): Likewise.
35576         (llrint_upward_test_data): Likewise.
35577         (llrint_test_upward): Likewise.
35578         (rint_test_data): Merge in per-rounding-mode tests and results
35579         from rint_tonearest_test_data, rint_towardzero_test_data,
35580         rint_downward_test_data and rint_upward_test_data.  Add
35581         per-rounding-mode results for tests not in those arrays.
35582         (rint_test): Use ALL_RM_TEST.
35583         (rint_tonearest_test_data): Remove.
35584         (rint_test_tonearest): Likewise.
35585         (rint_towardzero_test_data): Likewise.
35586         (rint_test_towardzero): Likewise.
35587         (rint_downward_test_data): Likewise.
35588         (rint_test_downward): Likewise.
35589         (rint_upward_test_data): Likewise.
35590         (rint_test_upward): Likewise.
35591         (main): Don't call removed functions.
35592
35593 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35594
35595         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35596         "Compiled on ..." crapola.  It is anti-useful.
35597
35598 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35599
35600         * scripts/evaluate-test.sh: Handle fourth argument to determine
35601         whether test run should stop on failure.
35602         * Makeconfig (stop-on-test-failure): New variable.
35603         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35604         $(stop-on-test-failure).
35605         * Makefile (tests): Give a summary of results from testing and
35606         exit with failure status if they include an ERROR or FAIL.
35607         (xtests): Likewise.
35608         * manual/install.texi (Configuring and compiling): Mention
35609         stop-on-test-failure=y.
35610         * INSTALL: Regenerated.
35611
35612 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35613
35614         * scripts/versionlist.awk: New file.
35615         * Makerules [$(build-shared) = yes]
35616         (postclean-generated): Add Versions.def, not Versions.def.v and
35617         Versions.def.v.i.
35618         ($(common-objpfx)Versions.def.v.i): Target removed.
35619         ($(common-objpfx)Versions.def): New target.
35620         ($(common-objpfx)Versions.all): Depend on that rather that
35621         $(common-objpfx)Versions.def.v.
35622         * Versions.def: File removed.
35623
35624         * Makeconfig (+gccwarn): Add -Wundef.
35625         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35626         a dl-sysdep.h breaking its contract.
35627         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35628         * include/stackinfo.h: New file.
35629         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35630         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35631         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35632         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35633         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35634         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35635         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35636         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35637         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35638         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35639         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35640         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35641         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35642         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35643         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35644
35645 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35646
35647         [BZ #16707]
35648         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35649         implementation.
35650         * math/libm-test.inc (round_test_data): Add more tests.
35651
35652         [BZ #16706]
35653         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35654         implementation.
35655         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35656
35657         [BZ #16701]
35658         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35659         implementation.
35660         * math/libm-test.inc (ceil_test_data): Add more tests.
35661
35662         * math/libm-test.inc (trunc_test_data): Add more tests related to
35663         BZ#16414.
35664
35665 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35666
35667         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35668         with #if rather than #ifdef.
35669         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35670
35671 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35672
35673         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35674         first.  Disable AVX-512 GCC support if assembler doesn't support
35675         it.
35676         * sysdeps/x86_64/configure: Regenerated.
35677
35678 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35679
35680         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35681         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35682         (__old_pthread_attr_setstack): Likewise.
35683         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35684         [!_STACK_GROWS_DOWN]: Likewise.
35685
35686 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35687
35688         * config.make.in (have-bash2): Delete.
35689         * configure.ac (libc_cv_have_bash2): Delete.
35690         * configure: Regenerate.
35691         * elf/Makefile (common-ldd-rewrite): Rename to ...
35692         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35693         (sh-ldd-rewrite): Delete.
35694         (bash-ldd-rewrite): Delete.
35695         (have-bash2): Delete checks.
35696         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35697         ldd-rewrite.
35698
35699         * config.make.in (have-ksh): Delete.
35700         (KSH): Delete.
35701         * configure.ac (libc_cv_have_ksh): Delete.
35702         * configure: Regenerate.
35703
35704         * elf/Makefile: Delete $(have-ksh) check.
35705         ($(objpfx)sotruss): Change KSH to BASH.
35706         * elf/sotruss.ksh: Rename to ...
35707         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35708         function style to match POSIX.  Drop ksh vim mode setting.
35709
35710         * manual/time.texi (Specifying the Time Zone with TZ): Change
35711         Tuesday to Thursday.
35712
35713         * debug/tst-longjmp_chk2.c: Update header comment.
35714         (stackoverflow_handler): Add comment.  Call assert on pass value.
35715
35716 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35717
35718         [BZ #16194]
35719         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35720         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35721         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35722         (La_x86_64_vector): Add zmm.
35723         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35724         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35725         ($(objpfx)tst-audit10): New target.
35726         ($(objpfx)tst-audit10.out): Likewise.
35727         (tst-audit10-ENV): New.
35728         (AVX512-CFLAGS): Likewise.
35729         (CFLAGS-tst-audit10.c): Likewise.
35730         (CFLAGS-tst-auditmod10a.c): Likewise.
35731         (CFLAGS-tst-auditmod10b.c): Likewise.
35732         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35733         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35734         * sysdeps/x86_64/configure: Regenerated.
35735         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35736         AVX-512 zmm register support.
35737         (_dl_x86_64_save_sse): Likewise.
35738         (_dl_x86_64_restore_sse): Likewise.
35739         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35740         size vector registers.
35741         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35742         (ZMM_SIZE): Likewise.
35743         * sysdeps/x86_64/tst-audit10.c: New file.
35744         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35745         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35746
35747 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35748
35749         * configure.ac (HAVE_EHDR_START): New check.
35750         * configure: Regenerated.
35751         * config.h.in (HAVE_EHDR_START): New #undef.
35752         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35753         assuming the lowest-addressed segment maps the start of the file.
35754
35755 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35756
35757         * INSTALL: Regenerated.
35758
35759 2014-03-13  Will Newton  <will.newton@linaro.org>
35760
35761         * manual/setjmp.texi (System V contexts): Improve
35762         clarity and grammar of documentation.
35763
35764 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35765
35766         [BZ #16381]
35767         * elf/Makefile (tests): Add tst-pie2.
35768         (tests-pie): Add tst-pie2.
35769         * elf/tst-pie2.c: New file.
35770         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35771         for ET_EXEC.
35772         * elf/rtld.c (map_doit): Load executable as lt_executable.
35773         (dl_main): Likewise.
35774
35775 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35776
35777         [BZ #16642]
35778         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35779         (__ASSUME_PSELECT): Undefine.
35780
35781 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35782
35783         [BZ #16689]
35784         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35785         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35786         static build.
35787         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35788         selector for static builds.
35789
35790 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35791
35792         [BZ #16695]
35793         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35794         key in the buffer.
35795
35796 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35797
35798         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35799         IFUNC selector for static builds.
35800
35801 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35802
35803         * sysdeps/mips/math_private.h [__mips_hard_float]
35804         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35805         libc_feresetround_mips_ctx.
35806         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35807         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35808         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35809
35810         [BZ #16677]
35811         * math/s_nextafter.c (__nextafter): Do not return value from
35812         overflowing computation.
35813         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35814         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35815         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35816         Likewise.
35817         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35818         Likewise.
35819         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35820         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35821
35822 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35823
35824         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35825         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35826         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35827         the new mov targetting sp.
35828
35829 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35830
35831         [BZ #16683]
35832         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35833         Define it for static builds as well.
35834         (NO_BZERO_IMPL): Likewise.
35835
35836 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35837
35838         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35839         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35840         multiarch strspn for PPC64.
35841         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35842         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35843         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35844         (__libc_ifunc_impl_list): Likewise.
35845         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35846         multiarch optimizations
35847         * string/strspn.c (strspn): Using macro to redefine symbol name.
35848
35849 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35850             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35851
35852         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35853         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35854         multiarch strncat for PPC64.
35855         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35856         * sysdeps/powerpc/powerpc64/multiarch/strncat-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 strncat
35860         multiarch optimizations
35861
35862 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35863
35864         [BZ #16639]
35865         * nscd/nscd.service: Make service type forking.
35866
35867 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35868
35869         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35870         sign in non default rounding modes.
35871         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35872
35873 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35874
35875         * math/libm-test.inc (ALL_RM_TEST): New macro.
35876         (ceil_test): Use ALL_RM_TEST.
35877         (cimag_test): Likewise.
35878         (conj_test): Likewise.
35879         (copysign_test): Likewise.
35880         (cproj_test): Likewise.
35881         (creal_test): Likewise.
35882         (fabs_test): Likewise.
35883         (floor_test): Likewise.
35884         (fmax_test): Likewise.
35885         (fmin_test): Likewise.
35886         (fmod_test): Likewise.
35887         (fpclassify_test): Likewise.
35888         (frexp_test): Likewise.
35889         (ilogb_test): Likewise.
35890         (isfinite_test): Likewise.
35891         (finite_test): Likewise.
35892         (isgreater_test): Likewise.
35893         (isgreaterequal_test): Likewise.
35894         (isinf_test): Likewise.
35895         (isless_test): Likewise.
35896         (islessequal_test): Likewise.
35897         (islessgreater_test): Likewise.
35898         (isnan_test): Likewise.
35899         (isnormal_test): Likewise.
35900         (issignaling_test): Likewise.
35901         (isunordered_test): Likewise.
35902         (logb_test): Likewise.
35903         (logb_downward_test_data): Remove.
35904         (logb_test_downward): Likewise.
35905         (lround_test): Use ALL_RM_TEST.
35906         (llround_test): Likewise.
35907         (modf_test): Likewise.
35908         (nexttoward_test): Likewise.
35909         (remainder_test): Likewise.
35910         (drem_test): Likewise.
35911         (remainder_tonearest_test_data): Likewise.
35912         (remainder_test_tonearest): Likewise.
35913         (drem_test_tonearest): Likewise.
35914         (remainder_towardzero_test_data): Likewise.
35915         (remainder_test_towardzero): Likewise.
35916         (drem_test_towardzero): Likewise.
35917         (remainder_downward_test_data): Likewise.
35918         (remainder_test_downward): Likewise.
35919         (drem_test_downward): Likewise.
35920         (remainder_upward_test_data): Likewise.
35921         (remainder_test_upward): Likewise.
35922         (drem_test_upward): Likewise.
35923         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35924         (round_test): Use ALL_RM_TEST.
35925         (signbit_test): Likewise.
35926         (trunc_test): Likewise.
35927         (significand_test): Likewise.
35928         (main): Don't call removed functions.
35929
35930 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35931
35932         [BZ #16674]
35933         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35934         || __USE_XOPEN2K8].
35935         (ILL_ILLOPN): Likewise.
35936         (ILL_ILLADR): Likewise.
35937         (ILL_ILLTRP): Likewise.
35938         (ILL_PRVOPC): Likewise.
35939         (ILL_PRVREG): Likewise.
35940         (ILL_COPROC): Likewise.
35941         (ILL_BADSTK): Likewise.
35942         (FPE_INTDIV): Likewise.
35943         (FPE_INTOVF): Likewise.
35944         (FPE_FLTDIV): Likewise.
35945         (FPE_FLTOVF): Likewise.
35946         (FPE_FLTUND): Likewise.
35947         (FPE_FLTRES): Likewise.
35948         (FPE_FLTINV): Likewise.
35949         (FPE_FLTSUB): Likewise.
35950         (SEGV_MAPERR): Likewise.
35951         (SEGV_ACCERR): Likewise.
35952         (BUS_ADRALN): Likewise.
35953         (BUS_ADRERR): Likewise.
35954         (BUS_OBJERR): Likewise.
35955         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35956         (TRAP_TRACE): Likewise.
35957         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35958         __USE_XOPEN2K8].
35959         (CLD_KILLED): Likewise.
35960         (CLD_DUMPED): Likewise.
35961         (CLD_TRAPPED): Likewise.
35962         (CLD_STOPPED): Likewise.
35963         (CLD_CONTINUED): Likewise.
35964         (POLL_IN): Likewise.
35965         (POLL_OUT): Likewise.
35966         (POLL_MSG): Likewise.
35967         (POLL_ERR): Likewise.
35968         (POLL_PRI): Likewise.
35969         (POLL_HUP): Likewise.
35970         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35971         Likewise.
35972         (ILL_ILLOPN): Likewise.
35973         (ILL_ILLADR): Likewise.
35974         (ILL_ILLTRP): Likewise.
35975         (ILL_PRVOPC): Likewise.
35976         (ILL_PRVREG): Likewise.
35977         (ILL_COPROC): Likewise.
35978         (ILL_BADSTK): Likewise.
35979         (FPE_INTDIV): Likewise.
35980         (FPE_INTOVF): Likewise.
35981         (FPE_FLTDIV): Likewise.
35982         (FPE_FLTOVF): Likewise.
35983         (FPE_FLTUND): Likewise.
35984         (FPE_FLTRES): Likewise.
35985         (FPE_FLTINV): Likewise.
35986         (FPE_FLTSUB): Likewise.
35987         (SEGV_MAPERR): Likewise.
35988         (SEGV_ACCERR): Likewise.
35989         (BUS_ADRALN): Likewise.
35990         (BUS_ADRERR): Likewise.
35991         (BUS_OBJERR): Likewise.
35992         (BUS_MCEERR_AR): Likewise.
35993         (BUS_MCEERR_AO): Likewise.
35994         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35995         (TRAP_TRACE): Likewise.
35996         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35997         __USE_XOPEN2K8].
35998         (CLD_KILLED): Likewise.
35999         (CLD_DUMPED): Likewise.
36000         (CLD_TRAPPED): Likewise.
36001         (CLD_STOPPED): Likewise.
36002         (CLD_CONTINUED): Likewise.
36003         (POLL_IN): Likewise.
36004         (POLL_OUT): Likewise.
36005         (POLL_MSG): Likewise.
36006         (POLL_ERR): Likewise.
36007         (POLL_PRI): Likewise.
36008         (POLL_HUP): Likewise.
36009         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
36010         (ILL_ILLOPN): Likewise.
36011         (ILL_ILLADR): Likewise.
36012         (ILL_ILLTRP): Likewise.
36013         (ILL_PRVOPC): Likewise.
36014         (ILL_PRVREG): Likewise.
36015         (ILL_COPROC): Likewise.
36016         (ILL_BADSTK): Likewise.
36017         (FPE_INTDIV): Likewise.
36018         (FPE_INTOVF): Likewise.
36019         (FPE_FLTDIV): Likewise.
36020         (FPE_FLTOVF): Likewise.
36021         (FPE_FLTUND): Likewise.
36022         (FPE_FLTRES): Likewise.
36023         (FPE_FLTINV): Likewise.
36024         (FPE_FLTSUB): Likewise.
36025         (SEGV_MAPERR): Likewise.
36026         (SEGV_ACCERR): Likewise.
36027         (BUS_ADRALN): Likewise.
36028         (BUS_ADRERR): Likewise.
36029         (BUS_OBJERR): Likewise.
36030         (BUS_MCEERR_AR): Likewise.
36031         (BUS_MCEERR_AO): Likewise.
36032         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36033         (TRAP_TRACE): Likewise.
36034         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36035         __USE_XOPEN2K8].
36036         (CLD_KILLED): Likewise.
36037         (CLD_DUMPED): Likewise.
36038         (CLD_TRAPPED): Likewise.
36039         (CLD_STOPPED): Likewise.
36040         (CLD_CONTINUED): Likewise.
36041         (POLL_IN): Likewise.
36042         (POLL_OUT): Likewise.
36043         (POLL_MSG): Likewise.
36044         (POLL_ERR): Likewise.
36045         (POLL_PRI): Likewise.
36046         (POLL_HUP): Likewise.
36047         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
36048         Likewise.
36049         (ILL_ILLOPN): Likewise.
36050         (ILL_ILLADR): Likewise.
36051         (ILL_ILLTRP): Likewise.
36052         (ILL_PRVOPC): Likewise.
36053         (ILL_PRVREG): Likewise.
36054         (ILL_COPROC): Likewise.
36055         (ILL_BADSTK): Likewise.
36056         (ILL_BADIADDR): Likewise.
36057         (ILL_BREAK): Likewise.
36058         (FPE_INTDIV): Likewise.
36059         (FPE_INTOVF): Likewise.
36060         (FPE_FLTDIV): Likewise.
36061         (FPE_FLTOVF): Likewise.
36062         (FPE_FLTUND): Likewise.
36063         (FPE_FLTRES): Likewise.
36064         (FPE_FLTINV): Likewise.
36065         (FPE_FLTSUB): Likewise.
36066         (FPE_DECOVF): Likewise.
36067         (FPE_DECDIV): Likewise.
36068         (FPE_DECERR): Likewise.
36069         (FPE_INVASC): Likewise.
36070         (FPE_INVDEC): Likewise.
36071         (SEGV_MAPERR): Likewise.
36072         (SEGV_ACCERR): Likewise.
36073         (SEGV_PSTKOVF): Likewise.
36074         (BUS_ADRALN): Likewise.
36075         (BUS_ADRERR): Likewise.
36076         (BUS_OBJERR): Likewise.
36077         (BUS_MCEERR_AR): Likewise.
36078         (BUS_MCEERR_AO): Likewise.
36079         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36080         (TRAP_TRACE): Likewise.
36081         (TRAP_BRANCH): Likewise.
36082         (TRAP_HWBKPT): Likewise.
36083         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36084         __USE_XOPEN2K8].
36085         (CLD_KILLED): Likewise.
36086         (CLD_DUMPED): Likewise.
36087         (CLD_TRAPPED): Likewise.
36088         (CLD_STOPPED): Likewise.
36089         (CLD_CONTINUED): Likewise.
36090         (POLL_IN): Likewise.
36091         (POLL_OUT): Likewise.
36092         (POLL_MSG): Likewise.
36093         (POLL_ERR): Likewise.
36094         (POLL_PRI): Likewise.
36095         (POLL_HUP): Likewise.
36096         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
36097         (ILL_ILLOPN): Likewise.
36098         (ILL_ILLADR): Likewise.
36099         (ILL_ILLTRP): Likewise.
36100         (ILL_PRVOPC): Likewise.
36101         (ILL_PRVREG): Likewise.
36102         (ILL_COPROC): Likewise.
36103         (ILL_BADSTK): Likewise.
36104         (FPE_INTDIV): Likewise.
36105         (FPE_INTOVF): Likewise.
36106         (FPE_FLTDIV): Likewise.
36107         (FPE_FLTOVF): Likewise.
36108         (FPE_FLTUND): Likewise.
36109         (FPE_FLTRES): Likewise.
36110         (FPE_FLTINV): Likewise.
36111         (FPE_FLTSUB): Likewise.
36112         (SEGV_MAPERR): Likewise.
36113         (SEGV_ACCERR): Likewise.
36114         (BUS_ADRALN): Likewise.
36115         (BUS_ADRERR): Likewise.
36116         (BUS_OBJERR): Likewise.
36117         (BUS_MCEERR_AR): Likewise.
36118         (BUS_MCEERR_AO): Likewise.
36119         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36120         (TRAP_TRACE): Likewise.
36121         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36122         __USE_XOPEN2K8].
36123         (CLD_KILLED): Likewise.
36124         (CLD_DUMPED): Likewise.
36125         (CLD_TRAPPED): Likewise.
36126         (CLD_STOPPED): Likewise.
36127         (CLD_CONTINUED): Likewise.
36128         (POLL_IN): Likewise.
36129         (POLL_OUT): Likewise.
36130         (POLL_MSG): Likewise.
36131         (POLL_ERR): Likewise.
36132         (POLL_PRI): Likewise.
36133         (POLL_HUP): Likewise.
36134         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36135         (ILL_ILLOPN): Likewise.
36136         (ILL_ILLADR): Likewise.
36137         (ILL_ILLTRP): Likewise.
36138         (ILL_PRVOPC): Likewise.
36139         (ILL_PRVREG): Likewise.
36140         (ILL_COPROC): Likewise.
36141         (ILL_BADSTK): Likewise.
36142         (FPE_INTDIV): Likewise.
36143         (FPE_INTOVF): Likewise.
36144         (FPE_FLTDIV): Likewise.
36145         (FPE_FLTOVF): Likewise.
36146         (FPE_FLTUND): Likewise.
36147         (FPE_FLTRES): Likewise.
36148         (FPE_FLTINV): Likewise.
36149         (FPE_FLTSUB): Likewise.
36150         (SEGV_MAPERR): Likewise.
36151         (SEGV_ACCERR): Likewise.
36152         (BUS_ADRALN): Likewise.
36153         (BUS_ADRERR): Likewise.
36154         (BUS_OBJERR): Likewise.
36155         (BUS_MCEERR_AR): Likewise.
36156         (BUS_MCEERR_AO): Likewise.
36157         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36158         (TRAP_TRACE): Likewise.
36159         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36160         __USE_XOPEN2K8].
36161         (CLD_KILLED): Likewise.
36162         (CLD_DUMPED): Likewise.
36163         (CLD_TRAPPED): Likewise.
36164         (CLD_STOPPED): Likewise.
36165         (CLD_CONTINUED): Likewise.
36166         (POLL_IN): Likewise.
36167         (POLL_OUT): Likewise.
36168         (POLL_MSG): Likewise.
36169         (POLL_ERR): Likewise.
36170         (POLL_PRI): Likewise.
36171         (POLL_HUP): Likewise.
36172         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36173         (ILL_ILLOPN): Likewise.
36174         (ILL_ILLADR): Likewise.
36175         (ILL_ILLTRP): Likewise.
36176         (ILL_PRVOPC): Likewise.
36177         (ILL_PRVREG): Likewise.
36178         (ILL_COPROC): Likewise.
36179         (ILL_BADSTK): Likewise.
36180         (FPE_INTDIV): Likewise.
36181         (FPE_INTOVF): Likewise.
36182         (FPE_FLTDIV): Likewise.
36183         (FPE_FLTOVF): Likewise.
36184         (FPE_FLTUND): Likewise.
36185         (FPE_FLTRES): Likewise.
36186         (FPE_FLTINV): Likewise.
36187         (FPE_FLTSUB): Likewise.
36188         (SEGV_MAPERR): Likewise.
36189         (SEGV_ACCERR): Likewise.
36190         (BUS_ADRALN): Likewise.
36191         (BUS_ADRERR): Likewise.
36192         (BUS_OBJERR): Likewise.
36193         (BUS_MCEERR_AR): Likewise.
36194         (BUS_MCEERR_AO): Likewise.
36195         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36196         (TRAP_TRACE): Likewise.
36197         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36198         __USE_XOPEN2K8].
36199         (CLD_KILLED): Likewise.
36200         (CLD_DUMPED): Likewise.
36201         (CLD_TRAPPED): Likewise.
36202         (CLD_STOPPED): Likewise.
36203         (CLD_CONTINUED): Likewise.
36204         (POLL_IN): Likewise.
36205         (POLL_OUT): Likewise.
36206         (POLL_MSG): Likewise.
36207         (POLL_ERR): Likewise.
36208         (POLL_PRI): Likewise.
36209         (POLL_HUP): Likewise.
36210         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36211         (ILL_ILLOPN): Likewise.
36212         (ILL_ILLADR): Likewise.
36213         (ILL_ILLTRP): Likewise.
36214         (ILL_PRVOPC): Likewise.
36215         (ILL_PRVREG): Likewise.
36216         (ILL_COPROC): Likewise.
36217         (ILL_BADSTK): Likewise.
36218         (ILL_DBLFLT): Likewise.
36219         (ILL_HARDWALL): Likewise.
36220         (FPE_INTDIV): Likewise.
36221         (FPE_INTOVF): Likewise.
36222         (FPE_FLTDIV): Likewise.
36223         (FPE_FLTOVF): Likewise.
36224         (FPE_FLTUND): Likewise.
36225         (FPE_FLTRES): Likewise.
36226         (FPE_FLTINV): Likewise.
36227         (FPE_FLTSUB): Likewise.
36228         (SEGV_MAPERR): Likewise.
36229         (SEGV_ACCERR): Likewise.
36230         (BUS_ADRALN): Likewise.
36231         (BUS_ADRERR): Likewise.
36232         (BUS_OBJERR): Likewise.
36233         (BUS_MCEERR_AR): Likewise.
36234         (BUS_MCEERR_AO): Likewise.
36235         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36236         (TRAP_TRACE): Likewise.
36237         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36238         __USE_XOPEN2K8].
36239         (CLD_KILLED): Likewise.
36240         (CLD_DUMPED): Likewise.
36241         (CLD_TRAPPED): Likewise.
36242         (CLD_STOPPED): Likewise.
36243         (CLD_CONTINUED): Likewise.
36244         (POLL_IN): Likewise.
36245         (POLL_OUT): Likewise.
36246         (POLL_MSG): Likewise.
36247         (POLL_ERR): Likewise.
36248         (POLL_PRI): Likewise.
36249         (POLL_HUP): Likewise.
36250         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36251         (ILL_ILLOPN): Likewise.
36252         (ILL_ILLADR): Likewise.
36253         (ILL_ILLTRP): Likewise.
36254         (ILL_PRVOPC): Likewise.
36255         (ILL_PRVREG): Likewise.
36256         (ILL_COPROC): Likewise.
36257         (ILL_BADSTK): Likewise.
36258         (FPE_INTDIV): Likewise.
36259         (FPE_INTOVF): Likewise.
36260         (FPE_FLTDIV): Likewise.
36261         (FPE_FLTOVF): Likewise.
36262         (FPE_FLTUND): Likewise.
36263         (FPE_FLTRES): Likewise.
36264         (FPE_FLTINV): Likewise.
36265         (FPE_FLTSUB): Likewise.
36266         (SEGV_MAPERR): Likewise.
36267         (SEGV_ACCERR): Likewise.
36268         (BUS_ADRALN): Likewise.
36269         (BUS_ADRERR): Likewise.
36270         (BUS_OBJERR): Likewise.
36271         (BUS_MCEERR_AR): Likewise.
36272         (BUS_MCEERR_AO): Likewise.
36273         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36274         (TRAP_TRACE): Likewise.
36275         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36276         __USE_XOPEN2K8].
36277         (CLD_KILLED): Likewise.
36278         (CLD_DUMPED): Likewise.
36279         (CLD_TRAPPED): Likewise.
36280         (CLD_STOPPED): Likewise.
36281         (CLD_CONTINUED): Likewise.
36282         (POLL_IN): Likewise.
36283         (POLL_OUT): Likewise.
36284         (POLL_MSG): Likewise.
36285         (POLL_ERR): Likewise.
36286         (POLL_PRI): Likewise.
36287         (POLL_HUP): Likewise.
36288         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36289         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36290
36291         [BZ #16670]
36292         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36293         before #include of <time.h>.
36294         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36295         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36296         (test-xfail-UNIX98/sched.h/conform): Likewise.
36297
36298 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36299
36300         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36301         error absence of trapping exception support.
36302         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36303
36304 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36305
36306         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36307         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36308         * timezone/Makefile (testdata): Move definition above include of
36309         Rules.
36310         (test-zones): New variable.
36311         (tests-special): Add zone files.
36312         (build-testdata): Use $(evaluate-test).
36313
36314         * elf/Makefile (tests-special): Rename tests to end with .out.
36315         ($(objpfx)noload-mem): Likewise.
36316         ($(objpfx)tst-leaks1-mem): Likewise.
36317         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36318         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36319         $(objpfx)test-iconvconfig.out.
36320         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36321         set -e inside subshell and redirect output to file.
36322         * iconvdata/Makefile (generated): Rename tests to end with .out.
36323         Correct type.
36324         (tests-special): Rename tests to end with .out.
36325         ($(objpfx)mtrace-tst-loading): Likewise.
36326         * intl/Makefile (generated): Likewise.
36327         (tests-special): Likewise.
36328         ($(objpfx)mtrace-tst-gettext): Likewise.
36329         * misc/Makefile (generated): Likewise.
36330         (tests-special): Likewise.
36331         ($(objpfx)tst-error1-mem): Likewise.
36332         * nptl/Makefile (tests-special): Likewise.
36333         ($(objpfx)tst-stack3-mem): Likewise.
36334         (generated): Likewise.
36335         * posix/Makefile (generated): Likewise.
36336         (tests-special): Likewise.
36337         (xtests-special): Likewise.
36338         ($(objpfx)tst-fnmatch-mem): Likewise.
36339         ($(objpfx)bug-regex2-mem): Likewise.
36340         ($(objpfx)bug-regex14-mem): Likewise.
36341         ($(objpfx)bug-regex21-mem): Likewise.
36342         ($(objpfx)bug-regex31-mem): Likewise.
36343         ($(objpfx)tst-vfork3-mem): Likewise.
36344         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36345         ($(objpfx)tst-pcre-mem): Likewise.
36346         ($(objpfx)tst-boost-mem): Likewise.
36347         ($(objpfx)bug-ga2-mem): Likewise.
36348         ($(objpfx)bug-glob2-mem): Likewise.
36349         * resolv/Makefile (generate): Likewise.
36350         (tests-special): Likewise.
36351         (xtests-special): Likewise.
36352         (generated): Likewise.
36353         ($(objpfx)mtrace-tst-leaks): Likewise.
36354         ($(objpfx)mtrace-tst-leaks2): Likewise.
36355
36356         * scripts/merge-test-results.sh: New file.
36357         * Makefile (tests-special-notdir): New variable.
36358         (tests): Run merge-test-results.sh.
36359         (xtests): Likewise.
36360         * Rules (tests-special-notdir): New variable.
36361         (xtests-special-notdir): Likewise.
36362         (tests): Run merge-test-results.sh
36363         (xtests): Likewise.
36364
36365         * Makeconfig (test-xfail-name): New variable.
36366         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36367         compute variable name for expected failures.
36368         * conform/Makefile (conformtest-headers-data): New variable.
36369         (conformtest-standards): Likewise.
36370         (conformtest-headers-ISO): Likewise.
36371         (conformtest-headers-ISO99): Likewise.
36372         (conformtest-headers-ISO11): Likewise.
36373         (conformtest-headers-POSIX): Likewise.
36374         (conformtest-headers-XPG3): Likewise.
36375         (conformtest-headers-XPG4): Likewise.
36376         (conformtest-headers-UNIX98): Likewise.
36377         (conformtest-headers-XOPEN2K): Likewise.
36378         (conformtest-headers-POSIX2008): Likewise.
36379         (conformtest-headers-XOPEN2K8): Likewise.
36380         (conformtest-header-list-base): Likewise.
36381         (conformtest-header-list-tests): Likewise.
36382         (conformtest-header-base): Likewise.
36383         (conformtest-header-tests): Likewise.
36384         (tests-special): Add $(conformtest-header-list-tests).  If
36385         [$(fast-check) && !$(cross-compiling)], add
36386         $(conformtest-header-tests) instead of
36387         $(objpfx)run-conformtest.out.
36388         (generated): Add $(conformtest-header-list-base).  If
36389         [$(fast-check) && !$(cross-compiling)], add
36390         $(conformtest-header-base).  Remove previous setting.
36391         ($(conformtest-header-list-tests)): New target.
36392         (test-xfail-run-conformtest): Remove variable.
36393         ($(objpfx)run-conformtest.out): Remove target.
36394         (test-xfail-ISO11/complex.h/conform): New variable.
36395         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36396         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36397         (test-xfail-XPG3/varargs.h/conform): Likewise.
36398         (test-xfail-XPG4/varargs.h/conform): Likewise.
36399         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36400         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36401         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36402         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36403         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36404         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36405         (test-xfail-XPG3/ftw.h/conform): Likewise.
36406         (test-xfail-XPG3/grp.h/conform): Likewise.
36407         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36408         (test-xfail-XPG3/limits.h/conform): Likewise.
36409         (test-xfail-XPG3/pwd.h/conform): Likewise.
36410         (test-xfail-XPG3/search.h/conform): Likewise.
36411         (test-xfail-XPG3/signal.h/conform): Likewise.
36412         (test-xfail-XPG3/stdio.h/conform): Likewise.
36413         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36414         (test-xfail-XPG3/string.h/conform): Likewise.
36415         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36416         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36417         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36418         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36419         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36420         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36421         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36422         (test-xfail-XPG3/termios.h/conform): Likewise.
36423         (test-xfail-XPG3/time.h/conform): Likewise.
36424         (test-xfail-XPG3/unistd.h/conform): Likewise.
36425         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36426         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36427         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36428         (test-xfail-XPG4/netdb.h/conform): Likewise.
36429         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36430         (test-xfail-XPG4/signal.h/conform): Likewise.
36431         (test-xfail-XPG4/stdio.h/conform): Likewise.
36432         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36433         (test-xfail-XPG4/stropts.h/conform): Likewise.
36434         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36435         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36436         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36437         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36438         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36439         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36440         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36441         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36442         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36443         (test-xfail-XPG4/termios.h/conform): Likewise.
36444         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36445         (test-xfail-XPG4/unistd.h/conform): Likewise.
36446         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36447         (test-xfail-POSIX/sched.h/conform): Likewise.
36448         (test-xfail-POSIX/signal.h/conform): Likewise.
36449         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36450         (test-xfail-POSIX/tar.h/conform): Likewise.
36451         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36452         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36453         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36454         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36455         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36456         (test-xfail-UNIX98/sched.h/conform): Likewise.
36457         (test-xfail-UNIX98/signal.h/conform): Likewise.
36458         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36459         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36460         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36461         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36462         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36463         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36464         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36465         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36466         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36467         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36468         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36469         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36470         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36471         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36472         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36473         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36474         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36475         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36476         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36477         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36478         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36479         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36480         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36481         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36482         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36483         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36484         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36485         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36486         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36487         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36488         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36489         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36490         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36491         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36492         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36493         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36494         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36495         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36496         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36497         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36498         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36499         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36500         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36501         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36502         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36503         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36504         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36505         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36506         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36507         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36508         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36509         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36510         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36511         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36512         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36513         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36514         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36515         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36516         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36517         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36518         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36519         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36520         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36521         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36522         (conformtest-cc-flags): Likewise.
36523         ($(conformtest-header-tests): New target.
36524         * conform/check-header-lists.sh: New file.
36525         * conform/run-conformtest.sh: Remove.
36526
36527         * conform/conformtest.pl: Allow ' and \ in values given for
36528         constants.
36529         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36530         inclusion.
36531         [POSIX] (sys/types.h): Likewise.
36532         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36533         inclusion.
36534         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36535         inclusion.
36536         * conform/data/signal.h-data (SIGIO): Remove expectation.
36537         [XPG3] (SIGBUS): Do not expect.
36538         [POSIX || XPG3] (SIGPOLL): Likewise.
36539         [POSIX || XPG3] (SIGPROF): Likewise.
36540         [POSIX || XPG3] (SIGSYS): Likewise.
36541         [XPG3] (SIGTRAP): Likewise.
36542         [POSIX || XPG3] (SIGURG): Likewise.
36543         [POSIX || XPG3] (SIGVTALRM): Likewise.
36544         [POSIX || XPG3] (SIGXCPU): Likewise.
36545         [POSIX || XPG3] (SIGXFSZ): Likewise.
36546         [POSIX] (SA_SIGINFO): Expect.
36547         [XPG3] (siginfo_t): Do not expect type or contents.
36548         [POSIX] (si_pid): Do not expect element.
36549         [POSIX] (si_uid): Likewise.
36550         [POSIX] (si_addr): Likewise.
36551         [POSIX] (si_status): Likewise.
36552         [POSIX] (si_band): Likewise.
36553         [XPG4] (si_value): Likewise.
36554         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36555         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36556         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36557         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36558         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36559         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36560         [POSIX || XPG3] (ILL_COPROC): Likewise.
36561         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36562         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36563         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36564         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36565         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36566         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36567         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36568         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36569         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36570         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36571         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36572         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36573         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36574         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36575         [POSIX || XPG3] (CLD_EXITED): Likewise.
36576         [POSIX || XPG3] (CLD_KILLED): Likewise.
36577         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36578         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36579         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36580         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36581         [POSIX || XPG3] (POLL_IN): Likewise.
36582         [POSIX || XPG3] (POLL_OUT): Likewise.
36583         [POSIX || XPG3] (POLL_MSG): Likewise.
36584         [POSIX || XPG3] (POLL_ERR): Likewise.
36585         [POSIX || XPG3] (POLL_PRI): Likewise.
36586         [POSIX || XPG3] (POLL_HUP): Likewise.
36587         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36588         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36589         (SIG*): Do not allow.
36590         [XPG3] (si_*): Likewise.
36591         [XPG3] (SI_*): Likewise.
36592         [XPG3 || XPG4] (sigev_*): Likewise.
36593         [XPG3 || XPG4] (SIGEV_*): Likewise.
36594         [XPG3 || XPG4] (sival_*): Likewise.
36595         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36596         [POSIX || XPG3] (BUS_*): Likewise.
36597         [POSIX || XPG3] (CLD_*): Likewise.
36598         [POSIX || XPG3] (FPE_*): Likewise.
36599         [POSIX || XPG3] (ILL_*): Likewise.
36600         [POSIX || XPG3] (POLL_*): Likewise.
36601         [POSIX || XPG3] (SEGV_*): Likewise.
36602         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36603         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36604         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36605         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36606         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36607         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36608         Specify type and value.
36609         (TVERSLEN): Likewise.
36610         (REGTYPE): Likewise.
36611         (AREGTYPE): Likewise.
36612         (LNKTYPE): Likewise.
36613         (SYMTYPE): Likewise.
36614         (CHRTYPE): Likewise.
36615         (BLKTYPE): Likewise.
36616         (DIRTYPE): Likewise.
36617         (FIFOTYPE): Likewise.
36618         (CONTTYPE): Likewise.
36619         (TSUID): Likewise.
36620         (TSGID): Likewise.
36621         (TSVTX): Likewise.
36622         (TUREAD): Likewise.
36623         (TUWRITE): Likewise.
36624         (TUEXEC): Likewise.
36625         (TGREAD): Likewise.
36626         (TGWRITE): Likewise.
36627         (TGEXEC): Likewise.
36628         (TOREAD): Likewise.
36629         (TOWRITE): Likewise.
36630         (TOEXEC): Likewise.
36631         [POSIX] (TSVTX): Expect constant.
36632
36633 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36634
36635         * Makefile (tests): Change dependencies to ....
36636         (tests-special): ... additions to this variable.
36637         (tests): Depend on $(tests-special).
36638         * Makerules (check-abi-list): New variable.
36639         (check-abi): Depend on $(check-abi-list).
36640         [$(subdir) = elf] (tests-special): Add
36641         $(objpfx)check-abi-libc.out.
36642         [$(build-shared) = yes && subdir] (tests-special): Add
36643         $(check-abi-list).
36644         [$(build-shared) = yes && subdir] (tests): Do not depend on
36645         check-abi.
36646         * Rules (tests): Depend on $(tests-special).
36647         (xtests): Depend on $(xtests-special).
36648         * catgets/Makefile (tests): Change dependencies to ....
36649         (tests-special): ... additions to this variable.
36650         * conform/Makefile (tests): Change dependencies to ....
36651         (tests-special): ... additions to this variable.
36652         * elf/Makefile (tests): Change dependencies to ....
36653         (tests-special): ... additions to this variable.
36654         * grp/Makefile (tests): Change dependencies to ....
36655         (tests-special): ... additions to this variable.
36656         * iconv/Makefile (xtests): Change dependencies to ....
36657         (xtests-special): ... additions to this variable.
36658         * iconvdata/Makefile (tests): Change dependencies to ....
36659         (tests-special): ... additions to this variable.
36660         * intl/Makefile (tests): Change dependencies to ....
36661         (tests-special): ... additions to this variable.  Also add
36662         $(objpfx)tst-gettext.out.
36663         * io/Makefile (tests): Change dependencies to ....
36664         (tests-special): ... additions to this variable.
36665         * libio/Makefile (tests): Change dependencies to ....
36666         (tests-special): ... additions to this variable.
36667         * malloc/Makefile (tests): Change dependencies to ....
36668         (tests-special): ... additions to this variable.
36669         * misc/Makefile (tests): Change dependencies to ....
36670         (tests-special): ... additions to this variable.
36671         * nptl/Makefile (tests): Change dependencies to ....
36672         (tests-special): ... additions to this variable.
36673         * nptl_db/Makefile (tests): Change dependencies to ....
36674         (tests-special): ... additions to this variable.
36675         * posix/Makefile (tests): Change dependencies to ....
36676         (tests-special): ... additions to this variable.
36677         (xtests): Change dependencies to ....
36678         (xtests-special): ... additions to this variable.
36679         * resolv/Makefile (tests): Change dependencies to ....
36680         (tests-special): ... additions to this variable.
36681         (xtests): Change dependencies to ....
36682         (xtests-special): ... additions to this variable.
36683         * stdio-common/Makefile (tests): Change dependencies to ....
36684         (tests-special): ... additions to this variable.
36685         (do-tst-unbputc): Remove target.
36686         (do-tst-printf): Likewise.
36687         * stdlib/Makefile (tests): Change dependencies to ....
36688         (tests-special): ... additions to this variable.
36689         * string/Makefile (tests): Change dependencies to ....
36690         (tests-special): ... additions to this variable.
36691         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36692         (tests-special): ... additions to this variable.
36693
36694         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36695         whole file.
36696         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36697         whole file.
36698         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36699         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36700
36701         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36702         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36703         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36704         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36705         * conform/data/libgen.h-data [XPG3]: Likewise.
36706         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36707         * conform/data/ndbm.h-data [XPG3]: Likewise.
36708         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36709         * conform/data/netdb.h-data [XPG3]: Likewise.
36710         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36711         * conform/data/poll.h-data [XPG3]: Likewise.
36712         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36713         * conform/data/strings.h-data [XPG3]: Likewise.
36714         * conform/data/stropts.h-data [XPG3]: Likewise.
36715         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36716         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36717         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36718         Likewise.
36719         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36720         * conform/data/sys/time.h-data [XPG3]: Likewise.
36721         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36722         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36723         * conform/data/sys/un.h-data [XPG3]: Likewise.
36724         * conform/data/syslog.h-data [XPG3]: Likewise.
36725         * conform/data/ucontext.h-data [XPG3]: Likewise.
36726         * conform/data/utmpx.h-data [XPG3]: Likewise.
36727         * conform/data/varargs.h-data [UNIX98]: Enable file.
36728
36729         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36730
36731         * math/libm-test.inc (struct test_f_f_data): Move expected results
36732         into structure for each rounding mode.
36733         (struct test_ff_f_data): Likewise.
36734         (struct test_ff_f_data_nexttoward): Likewise.
36735         (struct test_fi_f_data): Likewise.
36736         (struct test_fl_f_data): Likewise.
36737         (struct test_if_f_data): Likewise.
36738         (struct test_fff_f_data): Likewise.
36739         (struct test_c_f_data): Likewise.
36740         (struct test_f_f1_data): Likewise.
36741         (struct test_fF_f1_data): Likewise.
36742         (struct test_ffI_f1_data): Likewise.
36743         (struct test_c_c_data): Likewise.
36744         (struct test_cc_c_data): Likewise.
36745         (struct test_f_i_data): Likewise.
36746         (struct test_ff_i_data): Likewise.
36747         (struct test_f_l_data): Likewise.
36748         (struct test_f_L_data): Likewise.
36749         (struct test_fFF_11_data): Likewise.
36750         (RM_): New macro.
36751         (RM_FE_DOWNWARD): Likewise.
36752         (RM_FE_TONEAREST): Likewise.
36753         (RM_FE_TOWARDZERO): Likewise.
36754         (RM_FE_UPWARD): Likewise.
36755         (RUN_TEST_LOOP_f_f): Update references to expected results.
36756         (RUN_TEST_LOOP_2_f): Likewise.
36757         (RUN_TEST_LOOP_fff_f): Likewise.
36758         (RUN_TEST_LOOP_c_f): Likewise.
36759         (RUN_TEST_LOOP_f_f1): Likewise.
36760         (RUN_TEST_LOOP_fF_f1): Likewise.
36761         (RUN_TEST_LOOP_fI_f1): Likewise.
36762         (RUN_TEST_LOOP_ffI_f1): Likewise.
36763         (RUN_TEST_LOOP_c_c): Likewise.
36764         (RUN_TEST_LOOP_cc_c): Likewise.
36765         (RUN_TEST_LOOP_f_i): Likewise.
36766         (RUN_TEST_LOOP_f_i_tg): Likewise.
36767         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36768         (RUN_TEST_LOOP_f_b): Likewise.
36769         (RUN_TEST_LOOP_f_b_tg): Likewise.
36770         (RUN_TEST_LOOP_f_l): Likewise.
36771         (RUN_TEST_LOOP_f_L): Likewise.
36772         (RUN_TEST_LOOP_fFF_11): Likewise.
36773         * math/gen-libm-test.pl (parse_args): Output four copies of
36774         expected results for each test.
36775
36776         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36777         (__ASSUME_UTIMES): Remove.
36778         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36779         (__ASSUME_UTIMES): Likewise.
36780
36781         * math/gen-auto-libm-tests.c: Update comment on output format.
36782         (output_for_one_input_case): Generate before-rounding and
36783         after-rounding information as conditions on output flags not
36784         floating-point format.
36785         * math/auto-libm-test-out: Regenerated.
36786         * math/gen-libm-test.pl (cond_value): New function.
36787         (or_cond_value): Use cond_value.
36788         (generate_testfile): Handle conditional exceptions.
36789
36790 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36791
36792         * math/libm-test.inc (max_valid_error): New variable.
36793         (init_max_error): Take new argument specifying whether function
36794         results are exactly determined.  Set max_valid_error and bound
36795         other variables for errors based on this argument.
36796         (set_max_error): Do not record results above max_valid_error.
36797         (check_float_internal): Only accept errors of up to 0.5ulps if
36798         also at most max_valid_error.
36799         (START): Take new argument EXACT and pass it to init_max_error.
36800         (acos_test): Update call to START.
36801         (acos_test_tonearest): Likewise.
36802         (acos_test_towardzero): Likewise.
36803         (acos_test_downward): Likewise.
36804         (acos_test_upward): Likewise.
36805         (acosh_test): Likewise.
36806         (asin_test): Likewise.
36807         (asin_test_tonearest): Likewise.
36808         (asin_test_towardzero): Likewise.
36809         (asin_test_downward): Likewise.
36810         (asin_test_upward): Likewise.
36811         (asinh_test): Likewise.
36812         (atan_test): Likewise.
36813         (atanh_test): Likewise.
36814         (atan2_test): Likewise.
36815         (cabs_test): Likewise.
36816         (cacos_test): Likewise.
36817         (cacosh_test): Likewise.
36818         (carg_test): Likewise.
36819         (casin_test): Likewise.
36820         (casinh_test): Likewise.
36821         (catan_test): Likewise.
36822         (catanh_test): Likewise.
36823         (cbrt_test): Likewise.
36824         (ccos_test): Likewise.
36825         (ccosh_test): Likewise.
36826         (ceil_test): Likewise.
36827         (cexp_test): Likewise.
36828         (cimag_test): Likewise.
36829         (clog_test): Likewise.
36830         (clog10_test): Likewise.
36831         (conj_test): Likewise.
36832         (copysign_test): Likewise.
36833         (cos_test): Likewise.
36834         (cos_test_tonearest): Likewise.
36835         (cos_test_towardzero): Likewise.
36836         (cos_test_downward): Likewise.
36837         (cos_test_upward): Likewise.
36838         (cosh_test): Likewise.
36839         (cosh_test_tonearest): Likewise.
36840         (cosh_test_towardzero): Likewise.
36841         (cosh_test_downward): Likewise.
36842         (cosh_test_upward): Likewise.
36843         (cpow_test): Likewise.
36844         (cproj_test): Likewise.
36845         (creal_test): Likewise.
36846         (csin_test): Likewise.
36847         (csinh_test): Likewise.
36848         (csqrt_test): Likewise.
36849         (ctan_test): Likewise.
36850         (ctan_test_tonearest): Likewise.
36851         (ctan_test_towardzero): Likewise.
36852         (ctan_test_downward): Likewise.
36853         (ctan_test_upward): Likewise.
36854         (ctanh_test): Likewise.
36855         (ctanh_test_tonearest): Likewise.
36856         (ctanh_test_towardzero): Likewise.
36857         (ctanh_test_downward): Likewise.
36858         (ctanh_test_upward): Likewise.
36859         (erf_test): Likewise.
36860         (erfc_test): Likewise.
36861         (exp_test): Likewise.
36862         (exp_test_tonearest): Likewise.
36863         (exp_test_towardzero): Likewise.
36864         (exp_test_downward): Likewise.
36865         (exp_test_upward): Likewise.
36866         (exp10_test): Likewise.
36867         (exp10_test_tonearest): Likewise.
36868         (exp10_test_towardzero): Likewise.
36869         (exp10_test_downward): Likewise.
36870         (exp10_test_upward): Likewise.
36871         (pow10_test): Likewise.
36872         (exp2_test): Likewise.
36873         (expm1_test): Likewise.
36874         (expm1_test_tonearest): Likewise.
36875         (expm1_test_towardzero): Likewise.
36876         (expm1_test_downward): Likewise.
36877         (expm1_test_upward): Likewise.
36878         (fabs_test): Likewise.
36879         (fdim_test): Likewise.
36880         (floor_test): Likewise.
36881         (fma_test): Likewise.
36882         (fma_test_towardzero): Likewise.
36883         (fma_test_downward): Likewise.
36884         (fma_test_upward): Likewise.
36885         (fmax_test): Likewise.
36886         (fmin_test): Likewise.
36887         (fmod_test): Likewise.
36888         (fpclassify_test): Likewise.
36889         (frexp_test): Likewise.
36890         (hypot_test): Likewise.
36891         (ilogb_test): Likewise.
36892         (isfinite_test): Likewise.
36893         (finite_test): Likewise.
36894         (isgreater_test): Likewise.
36895         (isgreaterequal_test): Likewise.
36896         (isinf_test): Likewise.
36897         (isless_test): Likewise.
36898         (islessequal_test): Likewise.
36899         (islessgreater_test): Likewise.
36900         (isnan_test): Likewise.
36901         (isnormal_test): Likewise.
36902         (issignaling_test): Likewise.
36903         (isunordered_test): Likewise.
36904         (j0_test): Likewise.
36905         (j1_test): Likewise.
36906         (jn_test): Likewise.
36907         (ldexp_test): Likewise.
36908         (lgamma_test): Likewise.
36909         (gamma_test): Likewise.
36910         (lrint_test): Likewise.
36911         (lrint_test_tonearest): Likewise.
36912         (lrint_test_towardzero): Likewise.
36913         (lrint_test_downward): Likewise.
36914         (lrint_test_upward): Likewise.
36915         (llrint_test): Likewise.
36916         (llrint_test_tonearest): Likewise.
36917         (llrint_test_towardzero): Likewise.
36918         (llrint_test_downward): Likewise.
36919         (llrint_test_upward): Likewise.
36920         (log_test): Likewise.
36921         (log10_test): Likewise.
36922         (log1p_test): Likewise.
36923         (log2_test): Likewise.
36924         (logb_test): Likewise.
36925         (logb_test_downward): Likewise.
36926         (lround_test): Likewise.
36927         (llround_test): Likewise.
36928         (modf_test): Likewise.
36929         (nearbyint_test): Likewise.
36930         (nextafter_test): Likewise.
36931         (nexttoward_test): Likewise.
36932         (pow_test): Likewise.
36933         (pow_test_tonearest): Likewise.
36934         (pow_test_towardzero): Likewise.
36935         (pow_test_downward): Likewise.
36936         (pow_test_upward): Likewise.
36937         (remainder_test): Likewise.
36938         (drem_test): Likewise.
36939         (remainder_test_tonearest): Likewise.
36940         (drem_test_tonearest): Likewise.
36941         (remainder_test_towardzero): Likewise.
36942         (drem_test_towardzero): Likewise.
36943         (remainder_test_downward): Likewise.
36944         (drem_test_downward): Likewise.
36945         (remainder_test_upward): Likewise.
36946         (drem_test_upward): Likewise.
36947         (remquo_test): Likewise.
36948         (rint_test): Likewise.
36949         (rint_test_tonearest): Likewise.
36950         (rint_test_towardzero): Likewise.
36951         (rint_test_downward): Likewise.
36952         (rint_test_upward): Likewise.
36953         (round_test): Likewise.
36954         (scalb_test): Likewise.
36955         (scalbn_test): Likewise.
36956         (scalbln_test): Likewise.
36957         (signbit_test): Likewise.
36958         (sin_test): Likewise.
36959         (sin_test_tonearest): Likewise.
36960         (sin_test_towardzero): Likewise.
36961         (sin_test_downward): Likewise.
36962         (sin_test_upward): Likewise.
36963         (sincos_test): Likewise.
36964         (sinh_test): Likewise.
36965         (sinh_test_tonearest): Likewise.
36966         (sinh_test_towardzero): Likewise.
36967         (sinh_test_downward): Likewise.
36968         (sinh_test_upward): Likewise.
36969         (sqrt_test): Likewise.
36970         (sqrt_test_tonearest): Likewise.
36971         (sqrt_test_towardzero): Likewise.
36972         (sqrt_test_downward): Likewise.
36973         (sqrt_test_upward): Likewise.
36974         (tan_test): Likewise.
36975         (tan_test_tonearest): Likewise.
36976         (tan_test_towardzero): Likewise.
36977         (tan_test_downward): Likewise.
36978         (tan_test_upward): Likewise.
36979         (tanh_test): Likewise.
36980         (tgamma_test): Likewise.
36981         (trunc_test): Likewise.
36982         (y0_test): Likewise.
36983         (y1_test): Likewise.
36984         (yn_test): Likewise.
36985         (significand_test): Likewise.
36986
36987         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36988         individual tests in comment.
36989         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36990         (prev_max_error): New variable.
36991         (prev_real_max_error): Likewise.
36992         (prev_imag_max_error): Likewise.
36993         (compare_ulp_data): Don't refer to test names in comment.
36994         (find_test_ulps): Remove function.
36995         (find_function_ulps): Likewise.
36996         (find_complex_function_ulps): Likewise.
36997         (init_max_error): Take function name as argument.  Look up ulps
36998         for that function.
36999         (print_ulps): Remove function.
37000         (print_max_error): Use prev_max_error instead of calling
37001         find_function_ulps.
37002         (print_complex_max_error): Use prev_real_max_error and
37003         prev_imag_max_error instead of calling find_complex_function_ulps.
37004         (check_float_internal): Take max_ulp parameter instead of calling
37005         find_test_ulps.  Don't call print_ulps.
37006         (check_float): Update call to check_float_internal.
37007         (check_complex): Update calls to check_float_internal.
37008         (START): Pass argument to init_max_error.
37009         * math/gen-libm-test.pl (%results): Don't include "kind"
37010         information.
37011         (parse_ulps): Don't handle ulps of individual tests.
37012         (print_ulps_file): Likewise.
37013         (output_ulps): Likewise.
37014         * math/README.libm-test: Update.
37015         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
37016         individual tests.
37017         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
37018         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
37019         * sysdeps/arm/libm-test-ulps: Likewise.
37020         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
37021         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
37022         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
37023         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
37024         * sysdeps/microblaze/libm-test-ulps: Likewise.
37025         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
37026         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
37027         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37028         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
37029         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
37030         * sysdeps/sh/libm-test-ulps: Likewise.
37031         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
37032         * sysdeps/tile/libm-test-ulps: Likewise.
37033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37034
37035 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
37036
37037         * math/libm-test.inc (print_complex_max_error): Check separately
37038         whether real and imaginary errors are within allowed range and
37039         pass 0 to print_complex_function_ulps instead of value within
37040         allowed range.
37041
37042 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37043
37044         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
37045         formatting.
37046         (get_handles_fopen): Likewise.
37047         (do_write_test): Likewise.
37048
37049         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
37050
37051         * libio/fileops.c (do_ftell): Use cached offset when
37052         available.
37053         * libio/iofwide.c (do_ftell_wide): Likewise.
37054         * libio/iofdopen.c (_IO_new_fdopen): Don't use
37055         _IO_file_attach.
37056         * libio/wfileops.c (_IO_fwide): Don't cache offset.
37057
37058         [BZ #16532]
37059         * libio/libioP.h (get_file_offset): New function.
37060         * libio/fileops.c (get_file_offset): Likewise.
37061         (do_ftell): Likewise.
37062         (_IO_new_file_seekoff): Split out ftell logic.
37063         * libio/wfileops.c (do_ftell_wide): Likewise.
37064         (_IO_wfile_seekoff): Split out ftell logic.
37065         * libio/tst-ftell-active-handler.c: New test case.
37066         * libio/Makefile (tests): Add it.
37067
37068 2014-03-03  Roland McGrath  <roland@hack.frob.com>
37069
37070         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
37071         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
37072
37073 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
37074
37075         [BZ #16639]
37076         * nscd/connections.c (nscd_init): Call do_exit.
37077         (start_threads): Call do_exit and notify_parent.
37078         (begin_drop_privileges): Call do_exit.
37079         (finish_drop_privileges): Likewise.
37080         * nscd/selinux.c (preserve_capabilities): Likewise.
37081         (install_real_capabilities): Likewise.
37082         (nscd_selinux_enabled): Likewise.
37083         (avc_create_thread): Likewise.
37084         (avc_alloc_lock): Likewise.
37085         (nscd_avc_init): Likewise.
37086         * nscd/nscd.c (parent_fd): New static variable.
37087         (main): Create a pipe between parent and child processes.
37088         Skip closing parent_fd.
37089         (monitor_child): New function.
37090         (do_exit): Likewise.
37091         (notify_parent): Likewise.
37092         * nscd/nscd.h (notify_parent): Likewise.
37093         (do_exit): Likewise.
37094
37095 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
37096
37097         * malloc/malloc.c (__libc_calloc): Revert last change.
37098
37099 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37100
37101         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37102
37103 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37104
37105         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
37106         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
37107         implementation.
37108         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37109         (__libc_ifunc_impl_list): Likewise.
37110         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
37111         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
37112         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
37113         * string/strrchr.c: Define STRRCHR.
37114
37115 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
37116
37117         * benchtest/bench-strtok.c (simple_strtok): Delete.
37118         (strtok_string): Use as benchmark.
37119         * string/strtok (STRTOK): New macro.
37120
37121 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
37122
37123         * manual/threads.texi: Add header and standard comments to all
37124         functions.
37125
37126         * elf/dl-lookup.c (check_match): New function.
37127         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37128         (do_lookup_x): Remove nested function check_match. Use non-nested
37129         function check_match.
37130
37131 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37132
37133         * csu/Makefile (generated, before-compile): Use += rather than =.
37134         * catgets/Makefile (generated, generated-dirs): Likewise.
37135         * debug/Makefile (generated): Likewise.
37136         * dlfcn/Makefile (generated): Likewise.
37137         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37138         * iconvdata/Makefile (before-compile, generated): Likewise.
37139         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37140         * libio/Makefile (generated): Likewise.
37141         * malloc/Makefile (generated): Likewise.
37142         * manual/Makefile (generated, generated-dirs): Likewise.
37143         * misc/Makefile (generated): Likewise.
37144         * posix/Makefile (generated): Likewise.
37145         * resolv/Makefile (generated): Likewise.
37146         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37147         * timezone/Makefile (generated, generated-dirs): Likewise.
37148
37149         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37150
37151 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37152
37153         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37154         power8 implementation.
37155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37156         file: POWER8 llround ifunc implementation.
37157         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37158         (__lllround): Add POWER8 implementation.
37159         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37160         POWER8 llround implementation.
37161
37162         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37163         power8 implementation.
37164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37165         file: POWER8 llrint ifunc implementation.
37166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37167         Add POWER8 implementation.
37168         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37169         POWER8 llrint implementation.
37170
37171         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37172         power8 implementation.
37173         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37174         file: POWER8 finite ifunc implementation.
37175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37176         Add POWER8 implementation.
37177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37178         Likewise.
37179         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37180         POWER8 finite implementation.
37181         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37182
37183         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37184         power8 implementation.
37185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37186         file: POWER8 isinf ifunc implementation.
37187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37188         POWER8 implementation.
37189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37190         Likewise.
37191         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37192         isinf implementation.
37193         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37194
37195         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37196         (INIT_ARCH): Add hwcap2 initialization.
37197         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37198         power8 implementation.
37199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37200         file: POWER8 isnan ifunc implementation.
37201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37202         POWER8 implementation.
37203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37204         Likewise.
37205         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37206         isnan implementation.
37207         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37208
37209 2014-02-27  Joey Ye  <joey.ye@arm.com>
37210
37211         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37212         (_FP_NANFRAC_Q): Set to zero.
37213
37214 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37215
37216         [BZ #16623]
37217         * math/auto-libm-test-in: New test inputs.
37218         * math/auto-libm-test-out: Regenerate.
37219         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37220         and DA.
37221         (__cos): Likewise.
37222         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37223
37224 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37225
37226         * scripts/evaluate-test.sh: Take new argument indicating whether
37227         failure is expected.
37228         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37229         indicating whether failure is expected.
37230         * conform/Makefile (test-xfail-run-conformtest): New variable.
37231         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37232         level.
37233         * posix/Makefile (test-xfail-annexc): New variable.
37234         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37235
37236 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37237
37238         * argp/Makefile: Include Makeconfig immediately after defining
37239         subdir.
37240         * assert/Makefile: Likewise.
37241         * benchtests/Makefile: Likewise.
37242         * catgets/Makefile: Likewise.
37243         * conform/Makefile: Likewise.
37244         * crypt/Makefile: Likewise.
37245         * csu/Makefile: Likewise.
37246         (all): Remove target.
37247         * ctype/Makefile: Include Makeconfig immediately after defining
37248         subdir.
37249         * debug/Makefile: Likewise.
37250         * dirent/Makefile: Likewise.
37251         * dlfcn/Makefile: Likewise.
37252         * gmon/Makefile: Likewise.
37253         * gnulib/Makefile: Likewise.
37254         * grp/Makefile: Likewise.
37255         * gshadow/Makefile: Likewise.
37256         * hesiod/Makefile: Likewise.
37257         * hurd/Makefile: Likewise.
37258         (all): Remove target.
37259         * iconvdata/Makefile: Include Makeconfig immediately after
37260         defining subdir.
37261         * inet/Makefile: Likewise.
37262         * intl/Makefile: Likewise.
37263         * io/Makefile: Likewise.
37264         * libio/Makefile: Likewise.
37265         (all): Remove target.
37266         * locale/Makefile: Include Makeconfig immediately after defining
37267         subdir.
37268         * login/Makefile: Likewise.
37269         * mach/Makefile: Likewise.
37270         (all): Remove target.
37271         * malloc/Makefile: Include Makeconfig immediately after defining
37272         subdir.
37273         (all): Remove target.
37274         * manual/Makefile: Include Makeconfig immediately after defining
37275         subdir.
37276         * math/Makefile: Likewise.
37277         * misc/Makefile: Likewise.
37278         * nis/Makefile: Likewise.
37279         * nss/Makefile: Likewise.
37280         * po/Makefile: Likewise.
37281         (all): Remove target.
37282         * posix/Makefile: Include Makeconfig immediately after defining
37283         subdir.
37284         * pwd/Makefile: Likewise.
37285         * resolv/Makefile: Likewise.
37286         * resource/Makefile: Likewise.
37287         * rt/Makefile: Likewise.
37288         * setjmp/Makefile: Likewise.
37289         * shadow/Makefile: Likewise.
37290         * signal/Makefile: Likewise.
37291         * socket/Makefile: Likewise.
37292         * soft-fp/Makefile: Likewise.
37293         * stdio-common/Makefile: Likewise.
37294         * stdlib/Makefile: Likewise.
37295         * streams/Makefile: Likewise.
37296         * string/Makefile: Likewise.
37297         * sunrpc/Makefile: Likewise.
37298         (all): Remove target.
37299         * sysvipc/Makefile: Include Makeconfig immediately after defining
37300         subdir.
37301         * termios/Makefile: Likewise.
37302         * time/Makefile: Likewise.
37303         * timezone/Makefile: Likewise.
37304         (all): Remove target.
37305         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37306         subdir.
37307         * wctype/Makefile: Likewise.
37308
37309 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37310
37311         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37312         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37313         (libc_feholdexcept_setround_mips): Ditto.
37314         (libc_feholdsetround): New.
37315         (libc_feholdsetroundf): New.
37316         (libc_feholdsetroundl): New.
37317         (libc_feupdateenv_test_mips): New.
37318         (libc_feupdateenv_test): New.
37319         (libc_feupdateenv_testf): New.
37320         (libc_feupdateenv_testl): New.
37321         (libc_feresetround): New.
37322         (libc_feresetroundf): New.
37323         (libc_feresetroundl): New.
37324         (libc_fetestexcept_mips): New.
37325         (libc_fetestexcept): New.
37326         (libc_fetestexceptf): New.
37327         (libc_fetestexceptl): New.
37328         (HAVE_RM_CTX): New.
37329         (libc_feholdexcept_setround_mips_ctx): New.
37330         (libc_feholdexcept_setround_ctx): New.
37331         (libc_feholdexcept_setroundf_ctx): New.
37332         (libc_feholdexcept_setroundl_ctx): New.
37333         (libc_fesetenv_mips_ctx): New.
37334         (libc_fesetenv_ctx): New.
37335         (libc_fesetenv_ctxf): New.
37336         (libc_fesetenv_ctxl): New.
37337         (libc_feupdateenv_mips_ctx): New.
37338         (libc_feupdateenv_ctx): New.
37339         (libc_feupdateenvf_ctx): New.
37340         (libc_feupdateenvl_ctx): New.
37341         (libc_feholdsetround_mips_ctx): New.
37342         (libc_feholdsetround_ctx): New.
37343         (libc_feholdsetroundf_ctx): New.
37344         (libc_feholdsetroundl_ctx): New.
37345         (libc_feresetround_mips_ctx): New.
37346         (libc_feresetround_ctx): New.
37347         (libc_feresetroundf_ctx): New.
37348         (libc_feresetroundl_ctx): New.
37349
37350 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37351
37352         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37353
37354         * manual/ipc.texi: New file.
37355         * manual/Makefile (chapters): Add ipc.
37356         * manual/job.texi: Add "Inter-Process Communication" to next.
37357         * manual/process.texi: Add "Inter-Process Communication" to prev.
37358
37359 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37360
37361         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37362
37363 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37364
37365         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37366
37367         * manual/arith.texi: Fix spaces after sentences.
37368         * manual/charset.texi: Likewise.
37369         * manual/errno.texi: Likewise.
37370         * manual/install.texi: Likewise.
37371         * manual/llio.texi: Likewise.
37372         * manual/locale.texi: Likewise.
37373         * manual/maint.texi: Likewise.
37374         * manual/math.texi: Likewise.
37375         * manual/memory.texi: Likewise.
37376         * manual/message.texi: Likewise.
37377         * manual/probes.texi: Likewise.
37378         * manual/resource.texi: Likewise.
37379         * manual/signal.texi: Likewise.
37380         * manual/socket.texi: Likewise.
37381         * manual/stdio.texi: Likewise.
37382         * manual/string.texi: Likewise.
37383         * manual/time.texi: Likewise.
37384         * manual/users.texi: Likewise.
37385
37386 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37387
37388         [BZ #16632]
37389         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37390         _DEFAULT_SOURCE is defined.
37391
37392 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37393             Carlos O'Donell  <carlos@redhat.com>
37394
37395         [BZ #16613]
37396         * elf/dl-tls.c (_dl_count_modids): New function.
37397         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37398         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37399         audit library and increment generation counter.
37400         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37401         * elf/tst-audit9.c: New file.
37402         * elf/tst-auditmod9a.c: New file.
37403         * elf/tst-auditmod9b.c: New file.
37404         * elf/Makefile: Add rules to build and run tst-audit9.
37405
37406 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37407
37408         [BZ #15347]
37409         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37410
37411 2014-02-25  Will Newton  <will.newton@linaro.org>
37412
37413         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37414         (__longjmp): Restore sp and lr before restoring callee
37415         saved registers.  Add longjmp and longjmp_target
37416         SystemTap probe point.
37417         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37418         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37419         Define to zero to match jmpbuf layout.
37420         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37421         (__sigsetjmp): Save sp and lr before saving callee
37422         saved registers.  Add setjmp SystemTap probe point.
37423
37424 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37425
37426         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37427
37428 2014-02-24  Andreas Schwab  <schwab@suse.de>
37429
37430         [BZ #15804]
37431         * elf/pldd.c (wait_for_ptrace_stop): New function.
37432         (main): Call it after attaching.
37433
37434 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37435
37436         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37437         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37438         Versions files is now verboten.
37439         * hurd/Versions (libc: GLIBC_2.0):
37440         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37441         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37442         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37443         * mach/Versions: Likewise.
37444
37445         * csu/Versions: Remove unused %include.
37446         * resolv/Versions: Likewise.
37447
37448 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37449
37450         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37451         ($(objpfx)check-local-headers.out): Likewise.
37452         ($(objpfx)begin-end-check.out): Likewise.
37453         * Makerules (check-abi-%.out): Likewise.
37454         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37455         ($(objpfx)test2.cat): Likewise.
37456         ($(objpfx)de/libc.cat): Likewise.
37457         ($(objpfx)test-gencat.out): Likewise.
37458         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37459         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37460         ($(objpfx)noload-mem): Likewise.
37461         ($(objpfx)tst-pathopt.out): Likewise.
37462         ($(objpfx)tst-rtld-load-self.out): Likewise.
37463         ($(objpfx)tst-array1-cmp.out): Likewise.
37464         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37465         ($(objpfx)tst-array2-cmp.out): Likewise.
37466         ($(objpfx)tst-array3-cmp.out): Likewise.
37467         ($(objpfx)tst-array4-cmp.out): Likewise.
37468         ($(objpfx)tst-array5-cmp.out): Likewise.
37469         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37470         ($(objpfx)check-textrel.out): Likewise.
37471         ($(objpfx)check-execstack.out): Likewise.
37472         ($(objpfx)check-localplt.out): Likewise.
37473         ($(objpfx)order2-cmp.out): Likewise.
37474         ($(objpfx)tst-leaks1-mem): Likewise.
37475         ($(objpfx)tst-leaks1-static-mem): Likewise.
37476         ($(objpfx)tst-initorder-cmp.out): Likewise.
37477         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37478         ($(objpfx)tst-unused-dep.out): Likewise.
37479         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37480         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37481         * iconv/Makefile (test-iconvconfig): Likewise.
37482         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37483         ($(objpfx)iconv-test.out): Likewise.
37484         ($(objpfx)tst-tables.out): Likewise.
37485         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37486         ($(objpfx)tst-gettext.out): Likewise.
37487         ($(objpfx)tst-translit.out): Likewise.
37488         ($(objpfx)tst-gettext2.out): Likewise.
37489         ($(objpfx)tst-gettext4.out): Likewise.
37490         ($(objpfx)tst-gettext6.out): Likewise.
37491         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37492         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37493         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37494         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37495         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37496         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37497         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37498         ($(objpfx)wordexp-tst.out): Likewise.
37499         ($(objpfx)annexc.out): Likewise.
37500         ($(objpfx)tst-fnmatch-mem): Likewise.
37501         ($(objpfx)bug-regex2-mem): Likewise.
37502         ($(objpfx)bug-regex14-mem): Likewise.
37503         ($(objpfx)bug-regex21-mem): Likewise.
37504         ($(objpfx)bug-regex31-mem): Likewise.
37505         ($(objpfx)tst-vfork3-mem): Likewise.
37506         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37507         ($(objpfx)tst-pcre-mem): Likewise.
37508         ($(objpfx)tst-boost-mem): Likewise.
37509         ($(objpfx)tst-getconf.out): Likewise.
37510         ($(objpfx)bug-ga2-mem): Likewise.
37511         ($(objpfx)bug-glob2-mem): Likewise.
37512         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37513         ($(objpfx)mtrace-tst-leaks2): Likewise.
37514         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37515         ($(objpfx)tst-printf.out): Likewise.
37516         ($(objpfx)tst-setvbuf1.out): Likewise.
37517         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37518         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37519         ($(objpfx)tst-fmtmsg.out): Likewise.
37520         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37521         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37522
37523         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37524         * bits/sigaction.h [__USE_MISC]: Likewise.
37525         * bits/waitstatus.h: Update #endif comments.
37526         * ctype/ctype.h: Likewise.
37527         * dirent/dirent.h: Likewise.
37528         [__USE_MISC]: Remove redundant conditionals.
37529         * grp/grp.h: Update #endif comments.
37530         [__USE_GNU]: Remove redundant conditionals.
37531         [__USE_MISC]: Likewise.
37532         * inet/netinet/in.h [__USE_GNU]: Likewise.
37533         * io/sys/stat.h [__USE_MISC]: Likewise.
37534         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37535         * libio/bits/stdio.h: Update #endif comments.
37536         [__USE_MISC]: Remove redundant conditionals.
37537         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37538         * libio/stdio.h: Update #endif comments.
37539         [__USE_MISC]: Remove redundant conditionals.
37540         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37541         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37542         * math/math.h: Update #else and #endif comments.
37543         [__USE_MISC]: Remove redundant conditionals.
37544         * misc/sys/uio.h: Update #endif comments.
37545         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37546         * posix/glob.h [__USE_MISC]: Likewise.
37547         * posix/sys/types.h: Update #endif comments.
37548         [__USE_MISC]: Remove redundant conditionals.
37549         * posix/sys/wait.h: Update #endif comments.
37550         [__USE_MISC]: Remove redundant conditionals.
37551         * posix/unistd.h: Update #endif comments.
37552         [__USE_MISC]: Remove redundant conditionals.
37553         * pwd/pwd.h [__USE_GNU]: Likewise.
37554         [__USE_MISC]: Likewise.
37555         * resolv/netdb.h [__USE_GNU]: Likewise.
37556         * signal/signal.h: Update #endif comments.
37557         [__USE_MISC]: Remove redundant conditionals.
37558         * stdlib/stdlib.h: Update #else and #endif comments.
37559         [__USE_MISC]: Remove redundant conditionals.
37560         [__USE_GNU]: Likewise.
37561         * string/bits/string2.h [__USE_MISC]: Likewise.
37562         * string/string.h: Update #endif comments.
37563         [__USE_MISC]: Remove redundant conditionals.
37564         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37565         Likewise.
37566         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37567         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37568         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37569         Likewise.
37570         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37571         Likewise.
37572         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37573         comments.
37574         [__USE_MISC]: Remove redundant conditionals.
37575         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37576         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37577         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37578         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37579         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37580         Likewise.
37581         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37582         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37583         Likewise.
37584         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37585         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37586         Likewise.
37587         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37588         Likewise.
37589         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37590         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37591         Likewise.
37592         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37593         Likewise.
37594         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37595         * sysdeps/x86/bits/string.h: Update #endif comments.
37596         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37597         conditionals.
37598         * time/sys/time.h: Update #endif comments.
37599         * time/time.h: Likewise.
37600         [__USE_MISC]: Remove redundant conditionals.
37601
37602 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37603
37604         [BZ #16600]
37605         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37606
37607 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37608
37609         * Versions.def (librt): Add GLIBC_2.17.
37610
37611 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37612
37613         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37614         synonym for _SYS_AUXV_H to allow direct inclusion.
37615         * sysdeps/sparc/bits/hwcap.h: Likewise.
37616         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37617         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37618         * sysdeps/sparc/sysdep.h: Likewise.
37619
37620 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37621
37622         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37623
37624 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37625
37626         * benchtests/bench-strrchr.c: Print length instead of position.
37627
37628 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37629
37630         [BZ #16611]
37631         * sysdeps/unix/sysv/linux/kernel-features.h
37632         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37633         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37634         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37635         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37636         Likewise.
37637         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37638         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37639         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37640         (__ASSUME_SENDMMSG): Define instead of using previous
37641         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37642         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37643         (__ASSUME_SENDMMSG_SYSCALL): Define.
37644         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37645         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37646         Likewise.
37647         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37648         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37649         Likewise.
37650         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37651         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37652         Likewise.
37653         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37654         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37655         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37656         [__ASSUME_SENDMMSG]: Change conditionals to
37657         [__ASSUME_SENDMMSG_SOCKETCALL].
37658         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37659         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37660         Define.
37661         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37662         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37663         Likewise.
37664         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37665         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37666         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37667         [!__ASSUME_SENDMMSG]: Change conditional to
37668         [!__ASSUME_SENDMMSG_SOCKETCALL].
37669         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37670         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37671         Define.
37672
37673         [BZ #16610]
37674         * sysdeps/unix/sysv/linux/kernel-features.h
37675         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37676         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37677         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37678         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37679         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37680         [__i386__ || __sparc__]
37681         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37682         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37683         (__ASSUME_RECVMMSG): Define instead of using previous
37684         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37685         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37686         (__ASSUME_RECVMMSG_SYSCALL): Define.
37687         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37688         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37689         Likewise.
37690         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37691         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37692         Likewise.
37693         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37694         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37695         Likewise.
37696         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37697         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37698         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37699         [__ASSUME_RECVMMSG]: Change condition to
37700         [__ASSUME_RECVMMSG_SOCKETCALL].
37701         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37702         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37703         Define.
37704         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37705         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37706         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37707         Likewise.
37708         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37709         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37710         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37711         [!__ASSUME_RECVMMSG]: Change condition to
37712         [!__ASSUME_RECVMMSG_SOCKETCALL].
37713         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37714         (__ASSUME_RECVMMSG_SYSCALL): Define.
37715
37716         [BZ #16609]
37717         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37718         __powerpc__ || __s390__ || __sh__ || __sparc__]
37719         (__ASSUME_SOCKETCALL): Define.
37720         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37721         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37722         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37723         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37724         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37725         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37726         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37727         (__ASSUME_ACCEPT4): Define instead of using previous
37728         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37729         __powerpc__ || __sparc__ || __s390__)] condition.
37730         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37731         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37732         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37733         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37734         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37735         [!__ASSUME_ACCEPT4]: Change condition to
37736         [!__ASSUME_ACCEPT4_SOCKETCALL].
37737         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37738         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37739         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37740         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37741         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37742         __ASSUME_ACCEPT4_SYSCALL.
37743         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37744         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37745         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37746         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37747         __ASSUME_ACCEPT4_SYSCALL.
37748         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37749         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37750         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37751         [__ASSUME_ACCEPT4]: Change condition to
37752         [__ASSUME_ACCEPT4_SOCKETCALL].
37753         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37754         (__ASSUME_SOCKETCALL): Define.
37755         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37756         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37757         (__ASSUME_SOCKETCALL): Define.
37758         (__ASSUME_ACCEPT4): Remove.
37759         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37760         Define.
37761         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37762         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37763         Likewise.
37764         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37765         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37766
37767         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37768         macro.
37769         (HWCAP_ARM_LPAE): Likewise.
37770         (HWCAP_ARM_EVTSTRM): Likewise.
37771         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37772         Add vpfd32, lpae and evtstrm.
37773         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37774         Increase to 22.
37775
37776 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37777
37778         * math/auto-libm-test-in: Add tests of clog10.
37779         * math/auto-libm-test-out: Regenerated.
37780         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37781         * sysdeps/i386/fpu/libm-test-ulps: Update.
37782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37783
37784 2014-02-18  Andreas Schwab  <schwab@suse.de>
37785
37786         [BZ #16574]
37787         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37788         Store non-zero if the second buffer was newly allocated.
37789         (send_dg): Likewise.
37790         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37791         to send_vc and send_dg.
37792         (res_nsend): Pass NULL for ansp2_malloced.
37793         * resolv/res_query.c (__libc_res_nquery): Add parameter
37794         answerp2_malloced and pass it down to __libc_res_nsend.
37795         (res_nquery): Pass additional NULL to __libc_res_nquery.
37796         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37797         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37798         second answer buffer if answerp2_malloced was set.
37799         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37800         (__libc_res_nquerydomain): Add parameter
37801         answerp2_malloced and pass it down to __libc_res_nquery.
37802         (res_nquerydomain): Pass additional NULL to
37803         __libc_res_nquerydomain.
37804         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37805         additional NULL to __libc_res_nsend and __libc_res_nquery.
37806         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37807         additional NULL to __libc_res_nsearch.
37808         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37809         parameter of __libc_res_nsearch to check for separately allocated
37810         second buffer.
37811         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37812         __libc_res_nquery.
37813         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37814         additional NULL to __libc_res_nquery.
37815         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37816         __libc_res_nsearch.
37817         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37818         * include/resolv.h: Update prototypes of __libc_res_nquery,
37819         __libc_res_nsearch, __libc_res_nsend.
37820
37821 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37822
37823         * math/auto-libm-test-in: Add tests of fma.
37824         * math/auto-libm-test-out: Regenerated.
37825         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37826         (fma_towardzero_test_data): Likewise.
37827         (fma_downward_test_data): Likewise.
37828         (fma_upward_test_data): Likewise.
37829         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37830         mpc_mode.
37831         (rounding_modes): Add values for new field.
37832         (func_calc_method): Add value mpfr_fff_f.
37833         (func_calc_desc): Add mpfr_fff_f union field.
37834         (test_function): Add field exact_args.
37835         (FUNC): Add macro argument EXACT_ARGS.
37836         (FUNC_mpfr_f_f): Update call to FUNC.
37837         (FUNC_mpfr_f_f): Likewise.
37838         (FUNC_mpfr_ff_f): Likewise.
37839         (FUNC_mpfr_if_f): Likewise.
37840         (FUNC_mpc_c_f): Likewise.
37841         (FUNC_mpc_c_c): Likewise.
37842         (test_functions): Add fma.  Update calls to FUNC.
37843         (handle_input_arg): Add argument exact_args.
37844         (add_test): Update call to handle_input_arg.
37845         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37846         (output_for_one_input_case): Update call to calc_generic_results.
37847         Recalculate exact zero results in each rounding mode.
37848
37849         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37850         non-negative before setting low bit.
37851         * math/auto-libm-test-in: Mark one asin test possibly having
37852         spurious underflow.
37853         * math/auto-libm-test-out: Regenerated.
37854         * sysdeps/i386/fpu/libm-test-ulps: Update.
37855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37856
37857 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37858
37859         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37860         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37861         ports/sysdeps/unix/sysv/linux/microblaze.
37862         * README: Add missing listing for microblaze*-*-linux-gnu.
37863
37864 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37865
37866         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37867         duplicate code
37868
37869 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37870
37871         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37872         * sysdeps/unix/sysv/linux/ia64: Move directory from
37873         ports/sysdeps/unix/sysv/linux/ia64.
37874         * README: Update listing for ia64-*-linux-gnu.
37875
37876 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37877             Joseph Myers  <joseph@codesourcery.com>
37878
37879         * Makeconfig (test-name): New variable.
37880         (evaluate-test): Likewise.
37881         * Makerules (do-test-clean): Remove .test-result files.
37882         (common-mostlyclean): Likewise.
37883         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37884         * scripts/evaluate-test.sh: New file.
37885
37886 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37887
37888         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37889         separate $(objpfx)tst-fopenloc-cmp.out and
37890         $(objpfx)tst-fopenloc-mem.out targets.
37891         (tests): Update dependencies.
37892         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37893         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37894         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37895         (tst-rxspencer-no-utf8-ARGS): New variable.
37896         (tst-rxspencer-no-utf8-ENV): Likewise.
37897         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37898         instead of $(objpfx)tst-rxspencer-mem.
37899         ($(objpfx)tst-rxspencer-mem): Change target to
37900         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37901         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37902         * posix/tst-rxspencer-no-utf8.c: New file.
37903
37904         * elf/Makefile ($(objpfx)order.out): Remove rule.
37905         [$(run-built-tests) = yes] (tests): Depend on
37906         $(objpfx)order-cmp.out.
37907         ($(objpfx)order-cmp.out): New rule.
37908         [$(run-built-tests) = yes] (tests): Depend on
37909         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37910         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37911         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37912         $(objpfx)tst-array5-static-cmp.out.
37913         ($(objpfx)tst-array1.out): Remove rule.
37914         ($(objpfx)tst-array1-cmp.out): New rule.
37915         ($(objpfx)tst-array1-static.out): Remove rule.
37916         ($(objpfx)tst-array1-static-cmp.out): New rule.
37917         ($(objpfx)tst-array2.out): Remove rule.
37918         ($(objpfx)tst-array2-cmp.out): New rule.
37919         ($(objpfx)tst-array3.out): Remove rule.
37920         ($(objpfx)tst-array3-cmp.out): New rule.
37921         ($(objpfx)tst-array4.out): Remove rule.
37922         ($(objpfx)tst-array4-cmp.out): New rule.
37923         ($(objpfx)tst-array5.out): Remove rule.
37924         ($(objpfx)tst-array5-cmp.out): New rule.
37925         ($(objpfx)tst-array5-static.out): Remove rule.
37926         ($(objpfx)tst-array5-static-cmp.out): New rule.
37927         [$(run-built-tests) = yes] (tests): Depend on
37928         $(objpfx)order2-cmp.out.
37929         ($(objpfx)order2.out): Remove rule.
37930         ($(objpfx)order2-cmp.out): New rule.
37931         ($(objpfx)tst-initorder.out): Remove rule.
37932         [$(run-built-tests) = yes] (tests): Depend on
37933         $(objpfx)tst-initorder-cmp.out.
37934         ($(objpfx)tst-initorder-cmp.out): New rule.
37935         ($(objpfx)tst-initorder2.out): Remove rule.
37936         [$(run-built-tests) = yes] (tests): Depend on
37937         $(objpfx)tst-initorder2-cmp.out.
37938         ($(objpfx)tst-initorder2-cmp.out): New rule.
37939         [$(run-built-tests) = yes] (tests): Depend on
37940         $(objpfx)tst-unused-dep-cmp.out.
37941         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37942         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37943         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37944         on $(objpfx)tst-setvbuf1-cmp.out.
37945         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37946         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37947         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37948         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37949         ($(objpfx)tst-svc.out): Remove rule.
37950         ($(objpfx)tst-svc-cmp.out): New rule.
37951
37952 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37953
37954         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37955         * ctype/ctype.h [__USE_MISC]: Likewise.
37956         * dirent/dirent.h [__USE_MISC]: Likewise.
37957         * grp/grp.h [__USE_MISC]: Likewise.
37958         * io/fcntl.h [__USE_MISC]: Likewise.
37959         * io/sys/stat.h [__USE_MISC]: Likewise.
37960         * libio/stdio.h [__USE_MISC]: Likewise.
37961         * posix/unistd.h [__USE_MISC]: Likewise.
37962         * pwd/pwd.h [__USE_MISC]: Likewise.
37963         * stdlib.h [__USE_MISC]: Likewise.
37964         * string/bits/string2.h [__USE_MISC]: Likewise.
37965         * string/string.h [__USE_MISC]: Likewise.
37966         * time/time.h [__USE_MISC]: Likewise.
37967
37968 2014-02-13  Andreas Schwab  <schwab@suse.de>
37969
37970         [BZ #16574]
37971         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37972         second answer buffer if it was separately allocated.
37973
37974 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37975
37976         * sysdeps/mips/math-tests.h: Include <features.h>.
37977         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37978         (ROUNDING_TESTS_long_double): Do not define.
37979         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37980         (EXCEPTION_TESTS_long_double): Likewise.
37981         * sysdeps/mips/mips64/libm-test-ulps: Update.
37982
37983         * include/features.h (__USE_BSD): Remove macro definitions.
37984         (__USE_SVID): Likewise.
37985         (_BSD_SOURCE): Likewise.
37986         (_SVID_SOURCE): Likewise.
37987         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37988         from definition of _DEFAULT_SOURCE.
37989         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37990         [_DEFAULT_SOURCE].
37991         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37992         * bits/mman.h [__USE_BSD]: Likewise.
37993         * bits/termios.h [__USE_BSD]: Likewise.
37994         * bits/waitstatus.h [__USE_BSD]: Likewise.
37995         * ctype/ctype.h [__USE_SVID]: Likewise.
37996         * dirent/dirent.h [__USE_BSD]: Likewise.
37997         * grp/grp.h [__USE_SVID]: Likewise.
37998         [__USE_BSD]: Likewise.
37999         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
38000         * io/fcntl.h [__USE_BSD]: Likewise.
38001         * io/ftw.h [__USE_BSD]: Likewise.
38002         * io/sys/stat.h [__USE_BSD]: Likewise.
38003         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
38004         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
38005         * libio/stdio.h [__USE_SVID]: Likewise.
38006         [__USE_BSD]: Likewise.
38007         * math/math.h [__USE_SVID]: Likewise.
38008         [__USE_BSD]: Likewise.
38009         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
38010         * misc/bits/syslog.h [__USE_BSD]: Likewise.
38011         * misc/search.h [__USE_SVID]: Likewise.
38012         * misc/sys/mman.h [__USE_BSD]: Likewise.
38013         * misc/sys/syslog.h [__USE_BSD]: Likewise.
38014         * misc/sys/uio.h [__USE_BSD]: Likewise.
38015         * posix/bits/unistd.h [__USE_BSD]: Likewise.
38016         * posix/glob.h [__USE_BSD]: Likewise.
38017         * posix/regex.h [__USE_BSD]: Likewise.
38018         * posix/sys/types.h [__USE_BSD]: Likewise.
38019         [__USE_SVID]: Likewise.
38020         * posix/sys/utsname.h [__USE_SVID]: Likewise.
38021         * posix/sys/wait.h [__USE_BSD]: Likewise.
38022         [__USE_SVID]: Likewise.
38023         * posix/unistd.h [__USE_BSD]: Likewise.
38024         [__USE_SVID]: Likewise.
38025         * pwd/pwd.h [__USE_SVID]: Likewise.
38026         * resolv/netdb.h [__USE_BSD]: Likewise.
38027         * setjmp/setjmp.h [__USE_BSD]: Likewise.
38028         * signal/signal.h [__USE_BSD]: Likewise.
38029         [__USE_SVID]: Likewise.
38030         * socket/sys/socket.h [__USE_BSD]: Likewise.
38031         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
38032         * stdlib/stdlib.h [__USE_BSD]: Likewise.
38033         [__USE_SVID]: Likewise.
38034         * string/bits/string2.h [__USE_BSD]: Likewise.
38035         [__USE_SVID]: Likewise.
38036         * string/bits/string3.h [__USE_BSD]: Likewise.
38037         * string/endian.h [__USE_BSD]: Likewise.
38038         * string/string.h [__USE_SVID]: Likewise.
38039         [__USE_BSD]: Likewise.
38040         * string/strings.h [__USE_BSD]: Likewise.
38041         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
38042         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
38043         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
38044         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
38045         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
38046         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
38047         Likewise.
38048         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
38049         Likewise.
38050         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
38051         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
38052         Likewise.
38053         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
38054         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
38055         Likewise.
38056         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
38057         Likewise.
38058         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
38059         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
38060         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
38061         Likewise.
38062         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
38063         Likewise.
38064         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
38065         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
38066         * termios/termios.h [__USE_BSD]: Likewise.
38067         * time/sys/time.h [__USE_BSD]: Likewise.
38068         * time/time.h [__USE_BSD]: Likewise.
38069         [__USE_SVID]: Likewise.
38070
38071         * Makefile (subdir_targets): Remove subdir_lint.out.
38072
38073         * stdio-common/Makefile (do-tst-unbputc): Remove target.
38074         (do-tst-printf): Likewise.
38075         (tests): Depend directly on $(objpfx)tst-unbputc.out and
38076         $(objpfx)tst-printf.out.
38077
38078         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
38079
38080         * Makerules (check-abi-%): Change target to
38081         $(objpfx)check-abi-%.out.
38082         (check-abi target): Update dependencies.
38083         (check-abi-pattern variable): Redirect output of diff to $@.
38084         (check-abi variable): Likewise.
38085         * elf/Makefile (check-abi): Update dependencies.
38086
38087         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
38088         unused.
38089         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
38090         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
38091         subnormal range.
38092         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
38093         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
38094         value has largest subnormal exponent.
38095         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
38096         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
38097         * sysdeps/aarch64/soft-fp/sfp-machine.h
38098         (_FP_TININESS_AFTER_ROUNDING): New macro.
38099         * sysdeps/alpha/soft-fp/sfp-machine.h
38100         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38101         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38102         Likewise.
38103         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
38104         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38105         * sysdeps/mips/soft-fp/sfp-machine.h
38106         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38107         * sysdeps/powerpc/soft-fp/sfp-machine.h
38108         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38109         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38110         Likewise.
38111         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38112         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38113         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38114         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38115         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38116         Likewise.
38117
38118 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
38119
38120         [BZ #16545]
38121         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
38122         model 1.
38123
38124 2014-02-12  Richard Henderson  <rth@redhat.com>
38125
38126         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38127         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38128         * sysdeps/unix/sysv/linux/alpha: Move directory from
38129         ports/sysdeps/unix/sysv/linux/alpha.
38130         * README: Update listing for alpha-*-linux-gnu.
38131
38132 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38133
38134         * include/features.h: Update comment documenting feature test
38135         macros.
38136         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38137         _DEFAULT_SOURCE.
38138         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38139         (_SVID_SOURCE): Likewise.
38140         (_DEFAULT_SOURCE): Update description of default features.
38141         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38142         with _GNU_SOURCE.
38143         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38144         (S_ISVTX): Likewise.
38145         * manual/math.texi (Mathematical Constants): Likewise.
38146         * manual/signal.texi (Interrupted Primitives): Likewise.
38147         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38148         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38149         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38150         Don't refer to _SVID_SOURCE in warning text.
38151
38152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38153
38154         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38155         already defined.
38156         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38157         * sysdeps/mips/dl-lookup.c: Remove.
38158         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38159
38160 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38161
38162         [BZ #16447]
38163         * math/auto-libm-test-in: Add testcase for expl.
38164         * math/auto-libm-test-out: Regenerate.
38165         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38166         calculation of unsafe.
38167         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38168
38169 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38170
38171         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38172         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38173         ports/sysdeps/unix/sysv/linux/aarch64.
38174         * README: Update listing for aarch64*-*-linux-gnu.
38175
38176 2014-02-11  Will Newton  <will.newton@linaro.org>
38177
38178         * manual/probes.texi (Mathematical Function Probes): Use
38179         "triggered" instead of "hit".
38180
38181         * manual/probes.texi (Internal Probes): Add documentation
38182         of setjmp, longjmp and longjmp_target probes.
38183
38184         * include/stap-probe.h: Add comment about probe argument
38185         format.
38186
38187         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38188         definition.  (tr_where, tr_freehook, tr_mallochook,
38189         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38190
38191 2014-02-11  David S. Miller  <davem@davemloft.net>
38192
38193         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38194         processing int_tests.
38195
38196 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38197
38198         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38199         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38200         * sysdeps/unix/sysv/linux/mips: Move directory from
38201         ports/sysdeps/unix/sysv/linux/mips.
38202         * README: Update listing for mips-*-linux-gnu and
38203         mips64-*-linux-gnu.
38204
38205 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38206
38207         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38208         * sysdeps/unix/sysv/linux/m68k: Move directory from
38209         ports/sysdeps/unix/sysv/linux/m68k.
38210         * README: Update listing for m68k-*-linux-gnu.
38211
38212 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38213
38214         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38215         * sysdeps/unix/sysv/linux/generic: Move directory from
38216         ports/sysdeps/unix/sysv/linux/generic.
38217         * sysdeps/unix/sysv/linux/tile: Move directory from
38218         ports/sysdeps/unix/sysv/linux/tile.
38219         * README: Update listing for tile*-*-linux-gnu.
38220
38221 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38222
38223         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38224         __builtin_expect.
38225         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38226         * catgets/open_catalog.c (__open_catalog): Likewise.
38227         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38228         * debug/confstr_chk.c: Likewise.
38229         * debug/fread_chk.c (__fread_chk): Likewise.
38230         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38231         * debug/getgroups_chk.c: Likewise.
38232         * debug/mbsnrtowcs_chk.c: Likewise.
38233         * debug/mbsrtowcs_chk.c: Likewise.
38234         * debug/mbstowcs_chk.c: Likewise.
38235         * debug/memcpy_chk.c: Likewise.
38236         * debug/memmove_chk.c: Likewise.
38237         * debug/mempcpy_chk.c: Likewise.
38238         * debug/memset_chk.c: Likewise.
38239         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38240         * debug/strcat_chk.c (__strcat_chk): Likewise.
38241         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38242         * debug/strncat_chk.c (__strncat_chk): Likewise.
38243         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38244         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38245         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38246         * debug/wcpncpy_chk.c: Likewise.
38247         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38248         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38249         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38250         * debug/wcsncpy_chk.c: Likewise.
38251         * debug/wcsnrtombs_chk.c: Likewise.
38252         * debug/wcsrtombs_chk.c: Likewise.
38253         * debug/wcstombs_chk.c: Likewise.
38254         * debug/wmemcpy_chk.c: Likewise.
38255         * debug/wmemmove_chk.c: Likewise.
38256         * debug/wmempcpy_chk.c: Likewise.
38257         * debug/wmemset_chk.c: Likewise.
38258         * dirent/scandirat.c (SCANDIRAT): Likewise.
38259         * dlfcn/dladdr1.c (dladdr1): Likewise.
38260         * dlfcn/dladdr.c (dladdr): Likewise.
38261         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38262         * dlfcn/dlerror.c (__dlerror): Likewise.
38263         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38264         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38265         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38266         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38267         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38268         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38269         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38270         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38271         Likewise.
38272         * elf/dl-conflict.c: Likewise.
38273         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38274         * elf/dl-dst.h: Likewise.
38275         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38276         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38277         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38278         * elf/dl-init.c (call_init, _dl_init): Likewise.
38279         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38280         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38281         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38282         Likewise.
38283         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38284         Likewise.
38285         * elf/dl-minimal.c (__libc_memalign): Likewise.
38286         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38287         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38288         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38289         * elf/dl-sym.c (do_sym): Likewise.
38290         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38291         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38292         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38293         * elf/dl-writev.h (_dl_writev): Likewise.
38294         * elf/ldconfig.c (search_dir): Likewise.
38295         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38296         (dl_main): Likewise.
38297         * elf/setup-vdso.h (setup_vdso): Likewise.
38298         * grp/compat-initgroups.c (compat_call): Likewise.
38299         * grp/fgetgrent.c (fgetgrent): Likewise.
38300         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38301         * grp/putgrent.c (putgrent): Likewise.
38302         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38303         Likewise.
38304         * hurd/hurdinit.c: Likewise.
38305         * iconvdata/8bit-gap.c (struct): Likewise.
38306         * iconvdata/ansi_x3.110.c : Likewise.
38307         * iconvdata/big5.c : Likewise.
38308         * iconvdata/big5hkscs.c : Likewise.
38309         * iconvdata/cp1255.c: Likewise.
38310         * iconvdata/cp1258.c : Likewise.
38311         * iconvdata/cp932.c : Likewise.
38312         * iconvdata/euc-cn.c: Likewise.
38313         * iconvdata/euc-jisx0213.c : Likewise.
38314         * iconvdata/euc-jp.c: Likewise.
38315         * iconvdata/euc-jp-ms.c : Likewise.
38316         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38317         * iconvdata/gb18030.c : Likewise.
38318         * iconvdata/gbbig5.c (const): Likewise.
38319         * iconvdata/gbgbk.c: Likewise.
38320         * iconvdata/gbk.c : Likewise.
38321         * iconvdata/ibm1364.c : Likewise.
38322         * iconvdata/ibm930.c : Likewise.
38323         * iconvdata/ibm932.c: Likewise.
38324         * iconvdata/ibm933.c : Likewise.
38325         * iconvdata/ibm935.c : Likewise.
38326         * iconvdata/ibm937.c : Likewise.
38327         * iconvdata/ibm939.c : Likewise.
38328         * iconvdata/ibm943.c: Likewise.
38329         * iconvdata/iso_11548-1.c: Likewise.
38330         * iconvdata/iso-2022-cn.c : Likewise.
38331         * iconvdata/iso-2022-cn-ext.c : Likewise.
38332         * iconvdata/iso-2022-jp-3.c: Likewise.
38333         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38334         * iconvdata/iso-2022-kr.c : Likewise.
38335         * iconvdata/iso646.c (gconv_end): Likewise.
38336         * iconvdata/iso_6937-2.c : Likewise.
38337         * iconvdata/iso_6937.c : Likewise.
38338         * iconvdata/iso8859-1.c: Likewise.
38339         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38340         * iconvdata/shift_jisx0213.c : Likewise.
38341         * iconvdata/sjis.c : Likewise.
38342         * iconvdata/t.61.c : Likewise.
38343         * iconvdata/tcvn5712-1.c : Likewise.
38344         * iconvdata/tscii.c: Likewise.
38345         * iconvdata/uhc.c : Likewise.
38346         * iconvdata/unicode.c (gconv_end): Likewise.
38347         * iconvdata/utf-16.c (gconv_end): Likewise.
38348         * iconvdata/utf-32.c (gconv_end): Likewise.
38349         * iconvdata/utf-7.c (base64): Likewise.
38350         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38351         * iconv/gconv_close.c (__gconv_close): Likewise.
38352         * iconv/gconv_open.c (__gconv_open): Likewise.
38353         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38354         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38355         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38356         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38357         (ucs4le_internal_loop_single): Likewise.
38358         * iconv/iconv.c (iconv): Likewise.
38359         * iconv/iconv_close.c: Likewise.
38360         * iconv/loop.c (SINGLE): Likewise.
38361         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38362         * include/atomic.h: Likewise.
38363         * inet/inet6_option.c (option_alloc): Likewise.
38364         * intl/bindtextdom.c (set_binding_values): Likewise.
38365         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38366         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38367         * intl/localealias.c (read_alias_file): Likewise.
38368         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38369         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38370         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38371         * libio/fmemopen.c (fmemopen): Likewise.
38372         * libio/iofgets.c (_IO_fgets): Likewise.
38373         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38374         * libio/iofgetws.c (fgetws): Likewise.
38375         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38376         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38377         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38378         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38379         * locale/findlocale.c (_nl_find_locale): Likewise.
38380         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38381         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38382         Likewise.
38383         * locale/setlocale.c (setlocale): Likewise.
38384         * login/programs/pt_chown.c (main): Likewise.
38385         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38386         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38387         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38388         (mmap, mmap64, mremap, munmap): Likewise.
38389         * math/e_exp2l.c: Likewise.
38390         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38391         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38392         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38393         * math/s_catan.c (__catan): Likewise.
38394         * math/s_catanf.c (__catanf): Likewise.
38395         * math/s_catanh.c (__catanh): Likewise.
38396         * math/s_catanhf.c (__catanhf): Likewise.
38397         * math/s_catanhl.c (__catanhl): Likewise.
38398         * math/s_catanl.c (__catanl): Likewise.
38399         * math/s_ccosh.c (__ccosh): Likewise.
38400         * math/s_ccoshf.c (__ccoshf): Likewise.
38401         * math/s_ccoshl.c (__ccoshl): Likewise.
38402         * math/s_cexp.c (__cexp): Likewise.
38403         * math/s_cexpf.c (__cexpf): Likewise.
38404         * math/s_cexpl.c (__cexpl): Likewise.
38405         * math/s_clog10.c (__clog10): Likewise.
38406         * math/s_clog10f.c (__clog10f): Likewise.
38407         * math/s_clog10l.c (__clog10l): Likewise.
38408         * math/s_clog.c (__clog): Likewise.
38409         * math/s_clogf.c (__clogf): Likewise.
38410         * math/s_clogl.c (__clogl): Likewise.
38411         * math/s_csin.c (__csin): Likewise.
38412         * math/s_csinf.c (__csinf): Likewise.
38413         * math/s_csinh.c (__csinh): Likewise.
38414         * math/s_csinhf.c (__csinhf): Likewise.
38415         * math/s_csinhl.c (__csinhl): Likewise.
38416         * math/s_csinl.c (__csinl): Likewise.
38417         * math/s_csqrt.c (__csqrt): Likewise.
38418         * math/s_csqrtf.c (__csqrtf): Likewise.
38419         * math/s_csqrtl.c (__csqrtl): Likewise.
38420         * math/s_ctan.c (__ctan): Likewise.
38421         * math/s_ctanf.c (__ctanf): Likewise.
38422         * math/s_ctanh.c (__ctanh): Likewise.
38423         * math/s_ctanhf.c (__ctanhf): Likewise.
38424         * math/s_ctanhl.c (__ctanhl): Likewise.
38425         * math/s_ctanl.c (__ctanl): Likewise.
38426         * math/w_pow.c: Likewise.
38427         * math/w_powf.c: Likewise.
38428         * math/w_powl.c: Likewise.
38429         * math/w_scalb.c (sysv_scalb): Likewise.
38430         * math/w_scalbf.c (sysv_scalbf): Likewise.
38431         * math/w_scalbl.c (sysv_scalbl): Likewise.
38432         * misc/error.c (error_tail): Likewise.
38433         * misc/pselect.c (__pselect): Likewise.
38434         * nis/nis_callback.c (__nis_create_callback): Likewise.
38435         * nis/nis_call.c (__nisfind_server): Likewise.
38436         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38437         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38438         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38439         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38440         * nis/nis_lookup.c (nis_lookup): Likewise.
38441         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38442         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38443         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38444         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38445         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38446         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38447         * nis/nss_compat/compat-initgroups.c (add_group)
38448         (internal_getgrent_r): Likewise.
38449         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38450         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38451         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38452         (internal_getspnam_r): Likewise.
38453         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38454         (_nss_nis_getaliasbyname_r): Likewise.
38455         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38456         (_nss_nis_getntohost_r): Likewise.
38457         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38458         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38459         (_nss_nis_getgrgid_r): Likewise.
38460         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38461         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38462         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38463         (_nss_nis_gethostbyname4_r): Likewise.
38464         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38465         (initgroups_netid): Likewise.
38466         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38467         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38468         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38469         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38470         (_nss_nis_getprotobynumber_r): Likewise.
38471         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38472         (_nss_nis_getsecretkey): Likewise.
38473         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38474         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38475         (_nss_nis_getpwuid_r): Likewise.
38476         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38477         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38478         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38479         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38480         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38481         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38482         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38483         Likewise.
38484         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38485         (_nss_nisplus_getntohost_r): Likewise.
38486         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38487         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38488         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38489         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38490         Likewise.
38491         * nis/nss_nisplus/nisplus-initgroups.c
38492         (_nss_nisplus_initgroups_dyn): Likewise.
38493         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38494         (_nss_nisplus_getnetbyaddr_r): Likewise.
38495         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38496         (_nss_nisplus_getprotobynumber_r): Likewise.
38497         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38498         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38499         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38500         Likewise.
38501         * nis/nss_nisplus/nisplus-service.c
38502         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38503         (_nss_nisplus_getservbyport_r): Likewise.
38504         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38505         (_nss_nisplus_getspnam_r): Likewise.
38506         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38507         Likewise.
38508         * nscd/aicache.c (addhstaiX): Likewise.
38509         * nscd/cache.c (cache_search, prune_cache): Likewise.
38510         * nscd/connections.c (register_traced_file, send_ro_fd)
38511         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38512         (main_loop_epoll): Likewise.
38513         * nscd/grpcache.c (addgrbyX): Likewise.
38514         * nscd/hstcache.c (addhstbyX): Likewise.
38515         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38516         * nscd/mem.c (gc, mempool_alloc): Likewise.
38517         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38518         (addinnetgrX): Likewise.
38519         * nscd/nscd-client.h (__nscd_acquire_maplock)
38520         (__nscd_drop_map_ref): Likewise.
38521         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38522         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38523         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38524         Likewise.
38525         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38526         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38527         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38528         (__nscd_get_map_ref): Likewise.
38529         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38530         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38531         Likewise.
38532         * nscd/pwdcache.c (addpwbyX): Likewise.
38533         * nscd/selinux.c (preserve_capabilities): Likewise.
38534         * nscd/servicescache.c (addservbyX): Likewise.
38535         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38536         * posix/fnmatch.c (fnmatch): Likewise.
38537         * posix/getopt.c (_getopt_internal_r): Likewise.
38538         * posix/glob.c (glob, glob_in_dir): Likewise.
38539         * posix/wordexp.c (exec_comm_child): Likewise.
38540         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38541         (getanswer_r, gaih_getanswer_slice): Likewise.
38542         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38543         * resolv/res_init.c: Likewise.
38544         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38545         * resolv/res_query.c (__libc_res_nquery): Likewise.
38546         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38547         Likewise.
38548         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38549         * stdio-common/perror.c (perror): Likewise.
38550         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38551         * stdio-common/tmpnam.c (tmpnam): Likewise.
38552         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38553         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38554         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38555         Likewise.
38556         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38557         * stdlib/putenv.c (putenv): Likewise.
38558         * stdlib/setenv.c (__add_to_environ): Likewise.
38559         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38560         * stdlib/strtol_l.c (INTERNAL): Likewise.
38561         * string/memmem.c (memmem): Likewise.
38562         * string/strerror.c (strerror): Likewise.
38563         * string/strnlen.c (__strnlen): Likewise.
38564         * string/test-memmem.c (simple_memmem): Likewise.
38565         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38566         * sunrpc/pm_getport.c (__get_socket): Likewise.
38567         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38568         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38569         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38570         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38571         Likewise.
38572         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38573         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38574         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38575         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38576         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38577         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38578         Likewise.
38579         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38580         Likewise.
38581         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38582         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38583         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38584         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38585         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38586         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38587         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38588         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38589         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38590         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38591         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38592         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38593         Likewise.
38594         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38595         Likewise.
38596         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38597         Likewise.
38598         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38599         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38600         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38601         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38602         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38603         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38604         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38605         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38606         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38607         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38608         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38609         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38610         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38611         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38612         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38613         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38614         Likewise.
38615         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38616         Likewise.
38617         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38618         Likewise.
38619         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38620         Likewise.
38621         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38622         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38623         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38624         Likewise.
38625         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38626         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38627         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38628         * sysdeps/posix/sleep.c: Likewise.
38629         * sysdeps/posix/tempname.c: Likewise.
38630         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38631         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38632         Likewise.
38633         * sysdeps/powerpc/powerpc32/dl-machine.h
38634         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38635         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38636         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38637         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38638         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38639         Likewise.
38640         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38641         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38642         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38643         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38644         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38645         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38646         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38647         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38648         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38649         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38650         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38651         (elf_machine_lazy_rel): Likewise.
38652         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38653         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38654         (elf_machine_lazy_rel): Likewise.
38655         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38656         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38657         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38658         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38659         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38660         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38661         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38662         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38663         Likewise.
38664         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38665         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38666         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38667         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38668         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38669         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38670         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38671         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38672         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38673         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38674         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38675         Likewise.
38676         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38677         (__posix_fallocate64_l64): Likewise.
38678         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38679         (posix_fallocate): Likewise.
38680         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38681         Likewise.
38682         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38683         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38684         (getifaddrs_internal): Likewise.
38685         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38686         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38687         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38688         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38689         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38690         (__posix_fallocate64_l64): Likewise.
38691         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38692         Likewise.
38693         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38694         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38695         (__get_clockfreq): Likewise.
38696         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38697         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38698         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38699         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38700         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38701         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38702         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38703         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38704         Likewise.
38705         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38706         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38707         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38708         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38709         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38710         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38711         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38712         Likewise.
38713         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38714         (posix_fallocate): Likewise.
38715         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38716         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38717         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38718         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38719         (elf_machine_rela, elf_machine_rela_relative)
38720         (elf_machine_lazy_rel): Likewise.
38721         * time/asctime.c (asctime_internal): Likewise.
38722         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38723         * time/tzset.c (__tzset_parse_tz): Likewise.
38724         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38725         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38726         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38727         * wcsmbs/wcsmbsload.h: Likewise.
38728
38729         [BZ #15894]
38730         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38731
38732         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38733         (arena_get2): Remove THREAD_STATS conditionals.
38734         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38735         (__malloc_stats, int): Likewise.
38736
38737 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38738
38739         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38740         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38741
38742         * manual/setjmp.texi: Fix typos/grammar errors.
38743
38744         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38745         Only return early when n is <= 0.  Delete unused return statement.
38746
38747         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38748         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38749         * debug/tst-longjmp_chk3.c: New file.
38750
38751         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38752         (test_main): Replace code with set_fortify_handler call.
38753         * debug/test-strcpy_chk.c: Likewise.
38754         * debug/tst-chk1.c: Likewise.
38755         * debug/tst-longjmp_chk.c: Likewise.
38756         * test-skeleton.c: Include fcntl.h & paths.h
38757         (set_fortify_handler): Define.
38758
38759         * debug/tst-longjmp_chk.c: Add header comment and include
38760         ../test-skeleton.c.
38761         (do_test): Mark static.
38762         (TEST_FUNCTION): Define.
38763
38764         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38765         (IP_PMTUDISC_INTERFACE): Likewise.
38766         (IP_MULTICAST_IF): Likewise.
38767         (IP_MULTICAST_TTL): Likewise.
38768         (IP_MULTICAST_LOOP): Likewise.
38769         (IP_ADD_MEMBERSHIP): Likewise.
38770         (IP_DROP_MEMBERSHIP): Likewise.
38771         (IP_UNBLOCK_SOURCE): Likewise.
38772         (IP_BLOCK_SOURCE): Likewise.
38773         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38774         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38775         (IP_MSFILTER): Likewise.
38776         (MCAST_JOIN_GROUP): Likewise.
38777         (MCAST_BLOCK_SOURCE): Likewise.
38778         (MCAST_UNBLOCK_SOURCE): Likewise.
38779         (MCAST_LEAVE_GROUP): Likewise.
38780         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38781         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38782         (MCAST_MSFILTER): Likewise.
38783         (IP_MULTICAST_ALL): Likewise.
38784         (IP_UNICAST_IF): Likewise.
38785
38786         * timezone/Makefile: Delete $(have-ksh) check.
38787         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38788         * timezone/tzselect.ksh: Add +x mode bits.
38789
38790         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38791         (ANON_INODE_FS_MAGIC): Likewise.
38792         (BDEVFS_MAGIC): Likewise.
38793         (BINFMTFS_MAGIC): Likewise.
38794         (BTRFS_TEST_MAGIC): Likewise.
38795         (CRAMFS_MAGIC_WEND): Likewise.
38796         (DEBUGFS_MAGIC): Likewise.
38797         (ECRYPTFS_SUPER_MAGIC): Likewise.
38798         (EXT3_SUPER_MAGIC): Likewise.
38799         (EXT4_SUPER_MAGIC): Likewise.
38800         (FUTEXFS_SUPER_MAGIC): Likewise.
38801         (HOSTFS_SUPER_MAGIC): Likewise.
38802         (HUGETLBFS_MAGIC): Likewise.
38803         (MINIX3_SUPER_MAGIC): Likewise.
38804         (MTD_INODE_FS_MAGIC): Likewise.
38805         (NILFS_SUPER_MAGIC): Likewise.
38806         (OPENPROM_SUPER_MAGIC): Likewise.
38807         (PIPEFS_MAGIC): Likewise.
38808         (PSTOREFS_MAGIC): Likewise.
38809         (QNX6_SUPER_MAGIC): Likewise.
38810         (RAMFS_MAGIC): Likewise.
38811         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38812         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38813         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38814         (SECURITYFS_MAGIC): Likewise.
38815         (SELINUX_MAGIC): Likewise.
38816         (SMACK_MAGIC): Likewise.
38817         (SOCKFS_MAGIC): Likewise.
38818         (SQUASHFS_MAGIC): Likewise.
38819         (STACK_END_MAGIC): Likewise.
38820         (TMPFS_MAGIC): Likewise.
38821         (USBDEVICE_SUPER_MAGIC): Likewise.
38822         (V9FS_MAGIC): Likewise.
38823         (XENFS_SUPER_MAGIC): Likewise.
38824         (CRAMFS_MAGIC): Fix typo in comment.
38825         (EXT2_SUPER_MAGIC): Update comment.
38826         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38827
38828 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38829
38830         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38831         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38832         * sysdeps/unix/sysv/linux/arm: Move directory from
38833         ports/sysdeps/unix/sysv/linux/arm.
38834         * README: Update listing for arm-*-linux-gnueabi.
38835
38836         * README: Remove mention of am33.
38837
38838 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38839
38840         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38841         than the comma operator, to avoid "rhs of comma has no effect"
38842         compiler warnings.
38843         (__sigfillset, __sigandset, __sigorset): Likewise.
38844         * include/signal.h (__sigemptyset): Likewise.
38845         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38846
38847 2014-02-07  Allan McRae  <allan@archlinux.org>
38848
38849         * version.h (RELEASE): Set to "development".
38850         (VERSION): Set to "2.19.90"
38851         * NEWS: Add 2.20 section.
38852
38853 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38854
38855         [BZ #16529]
38856         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38857
38858 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38859
38860         * manual/contrib.texi: Update entry for Carlos O'Donell,
38861         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38862
38863 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38864
38865         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38866
38867         * sysdeps/unix/sysv/linux/kernel-features.h
38868         [__LINUX_KERNEL_VERSION >= 0x020621]
38869         (__ASSUME_PROC_PID_TASK_COMM): Define.
38870
38871 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38872
38873         [BZ #16398]
38874         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38875         conversion when destination buffer does not have enough space.
38876         * libio/tst-ftell-partial-wide.c: New test case.
38877         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38878
38879         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38880         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38881         Leonard and Allan McRae.
38882
38883 2014-02-04  David S. Miller  <davem@davemloft.net>
38884
38885         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38886         32-bit.
38887
38888 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38889
38890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38891         New file
38892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38893         New file
38894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38895         New file.
38896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38897         New file.
38898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38899         New file.
38900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38901         New file.
38902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38903         New file.
38904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38905         New file.
38906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38907         New file.
38908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38909         New file.
38910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38911         New file.
38912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38913         New file.
38914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38915         New file.
38916
38917 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38918
38919         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38920         * shlib-versions: Likewise.
38921
38922 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38923             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38924
38925         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38926         (abilist-pattern): New variable, set to %-le.abilist.
38927
38928         * Makerules (abilist-pattern): New variable.
38929         (vpath): Use $(abilist-pattern) in place of %.abilist.
38930         (check-abi-% pattern rule): Likewise.
38931         (check-abi, update-abi): Likewise.
38932
38933 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38934
38935         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38936
38937 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38938
38939         * manual/startup.texi: Add next, previous, and top entries for
38940         the `Program Arguments' and `Environment Variables' nodes.
38941
38942 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38943
38944         * manual/macros.texi: Add comments before MTASC-safety macros.
38945
38946         * manual/users.texi: Document MTASC-safety properties.
38947
38948         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38949         (pthread_getspecific, pthread_setspecific): Format with
38950         @deftypefun, and add @safety note.
38951         * manual/signal.texi: Move comments that analyze the above
38952         functions to their home place.
38953
38954 2014-02-03  Allan McRae  <allan@archlinux.org>
38955
38956         * po/sl.po: Update Slovenian translation from translation project.
38957
38958 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38959
38960         * manual/time.texi (timegm): Add missing blank after @c.
38961         Reported by Joseph Myers <joseph@codesourcery.com>.
38962
38963 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38964
38965         * manual/check-safety.sh: New.
38966         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38967
38968         * manual/terminal.texi: Document MTASC-safety properties.
38969
38970         * manual/filesys.texi: Document MTASC-safety properties.
38971
38972         * manual/errno.texi: Document MTASC-safety properties.
38973
38974         * manual/intro.texi: Document safety identifiers and
38975         conditionals.
38976
38977         * manual/string.texi (wcstok): Fix prototype.
38978         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38979
38980         * manual/time.texi: Document MTASC-safety properties.
38981
38982         * manual/string.texi: Document MTASC-safety properties.
38983
38984         * manual/threads.texi: Document MTASC-safety properties.
38985
38986         * manual/stdio.texi: Document MTASC-safety properties.
38987
38988         * manual/syslog.texi: Document MTASC-safety properties.
38989
38990         * manual/sysinfo.texi: Document MTASC-safety properties.
38991
38992         * manual/startup.texi: Document MTASC-safety properties.
38993
38994         * manual/socket.texi: Document MTASC-safety properties.
38995
38996         * manual/signal.texi: Document MTASC-safety properties.
38997
38998 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38999
39000         * manual/setjmp.texi: Document MTASC-safety properties.
39001
39002         * manual/search.texi: Document MTASC-safety properties.
39003
39004         * manual/resource.texi: Document MTASC-safety properties.
39005
39006         * manual/process.texi: Document MTASC-safety properties.
39007
39008         * manual/platform.texi: Document MTASC-safety properties.
39009
39010         * manual/pipe.texi: Document MTASC-safety properties.
39011
39012         * manual/pattern.texi: Document MTASC-safety properties.
39013
39014         * manual/message.texi: Document MTASC-safety properties.
39015
39016         [BZ #12751]
39017         * manual/memory.texi: Document MTASC-safety properties.
39018
39019         * manual/math.texi: Document MTASC-safety properties.
39020
39021         * manual/locale.texi: Document MTASC-safety properties.
39022
39023         * manual/llio.texi: Document MTASC-safety properties.
39024
39025         * manual/libdl.texi: New.
39026
39027         * manual/lang.texi: Document MTASC-safety properties.
39028
39029         * manual/job.texi: Document MTASC-safety properties.
39030
39031         * manual/getopt.texi: Document MTASC-safety properties.
39032
39033         * manual/ctype.texi: Document MTASC-safety properties.
39034
39035 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
39036
39037         [BZ #16046]
39038         * csu/libc-tls.c (static_map): Remove variable.
39039         (__libc_setup_tls): Use main executable's link map for TLS data.
39040         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
39041         casing for LM_ID_BASE and GL(dl_nns).
39042         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
39043         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
39044         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
39045         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
39046         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
39047         member.
39048         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
39049         l_phnum members.
39050
39051 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
39052
39053         * manual/debug.texi: Document MTASC-safety properties.
39054
39055 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
39056
39057         [BZ #16510]
39058         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
39059         of __x86_64__ when disabling x87 inline functions.
39060
39061 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
39062
39063         * manual/charset.texi: Document MTASC-safety properties.
39064
39065         * manual/crypt.texi: Document MTASC-safety properties.
39066
39067         * manual/conf.texi: Document MTASC-safety properties.
39068
39069         * manual/arith.texi: Document MTASC-safety properties.
39070
39071         * manual/argp.texi: Document MTASC-safety properties.
39072
39073         * manual/macros.texi: Introduce macros to document multi
39074         thread, asynchronous signal and asynchronous cancellation
39075         safety properties.
39076         * manual/intro.texi: Introduce the properties themselves.
39077
39078 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39079
39080         * sysdeps/sh/sh4/Makefile: New file.
39081
39082 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
39083
39084         * math/gen-libm-test.pl ($srcdir): New variable.
39085         ($auto_input): Use it.
39086
39087 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39088
39089         [BZ #16506]
39090         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
39091         access beyond array bounds when parsing netgroups file.
39092
39093         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
39094         the old buffer before realloc.
39095
39096 2014-01-27  Allan McRae  <allan@archlinux.org>
39097
39098         * po/fr.po: Update French translation from translation project.
39099
39100 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39101
39102         * sysdeps/sh/libm-test-ulps: Regenerate.
39103
39104 2014-01-24  David S. Miller  <davem@davemloft.net>
39105
39106         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
39107
39108 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39109
39110         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
39111         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
39112
39113 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
39114
39115         [BZ #16474]
39116         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
39117         string pointers after reallocation.
39118
39119 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39120
39121         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
39122         __SH4A__ instead of __SH_FPU_ANY__.
39123
39124 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39125
39126         * sysdeps/sh/fpu_control.h: New file.
39127         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39128         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39129         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39130         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39131         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39132         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39133         * sysdeps/sh/sys/ucontext.h: Remove.
39134         * sysdeps/sh/sys: Remove directory.
39135
39136 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39137
39138         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39139         s390/sys/ucontext.h.
39140         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39141         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39142
39143 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39144
39145         [BZ #15605]
39146         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39147
39148 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39149
39150         [BZ#16431]
39151         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39152         Adjust the vDSO correctly for internal calls.
39153         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39154
39155 2014-01-20  Allan McRae  <allan@archlinux.org>
39156
39157         * po/ca.po: Update Catalan translation from translation project.
39158
39159 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39160
39161         * sysdeps/s390/sotruss-lib.c: New file.
39162
39163 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39164
39165         [BZ#16430]
39166         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39167         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39168         local calls issues by not having a PLT stub required for IFUNC calls.
39169         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39170
39171 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39172
39173         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39174         * math/test-fpucw-static.c: Likewise.
39175
39176 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39177
39178         [BZ #16453]
39179         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39180
39181 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39182
39183         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39184         implementation for powerpc.
39185
39186 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39187
39188         [BZ #14782]
39189         * sysdeps/posix/system.c (__libc_system): Do not enable
39190         asynchronous cancellation.
39191
39192 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39193
39194         [BZ #16427]
39195         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39196         handling only for numbers special also in the IEEE case.
39197
39198 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39199
39200         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39201
39202 2014-01-11  Allan McRae  <allan@archlinux.org>
39203
39204         * po/bg.po: Update Bulgarian translation from translation project.
39205
39206         * po/de.po: Update German translation from translation project.
39207
39208 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39209
39210         * sysdeps/generic/gcc-compat.h: New file.
39211
39212 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39213
39214         * benchtests/asin-inputs: Correct slow inputs.
39215         * benchtests/acos-inputs: Likewise.
39216
39217 2014-01-10  Allan McRae  <allan@archlinux.org>
39218
39219         * po:sv.po: Update Swedish translation from translation project.
39220
39221         * po/vi.po: Update Vietnamese translation from translation project.
39222
39223         * po/eo.po: Update Esperanto translation from translation project.
39224
39225         * po/cs.po: Update Czech translation from translation project.
39226
39227         * po/nl.po: Update Dutch translation from translation project.
39228
39229         * po/pl.po: Update Polish translation from translation project.
39230
39231         * po/ru.po: Update Russian translation from translation project.
39232
39233         * po/uk.po: Update Ukrainian translation from translation project.
39234
39235 2014-01-08  Brooks Moses  <bmoses@google.com>
39236
39237         * elf/dl-load.c: Fix comment typo.
39238
39239 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39240
39241         * po/header.pot: Rename to...
39242         * po/pot.header: ... this.
39243         * po/Makefile: Use pot.header.
39244
39245 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39246             Maxim Kuvyrkov  <maxim@kugelworks.com>
39247
39248         [BZ #16394]
39249         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39250         SRC and DEST against LEN.
39251
39252 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39253
39254         [BZ #16414]
39255         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39256         implementation.
39257         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39258
39259 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39260
39261         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39262
39263 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39264
39265         [BZ #16408]
39266         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39267         for large positive arguments.
39268
39269 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39270
39271         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39272
39273         * math/auto-libm-test-in: Mark various tests with
39274         xfail-rounding:ldbl-128ibm.
39275         * math/auto-libm-test-out: Regenerated.
39276
39277         [BZ #16407]
39278         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39279         Increase overflow threshold.
39280
39281 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39282
39283         [BZ #14286]
39284         * stdio-common/vfprintf.c: Check for integer overflow.
39285
39286 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39287
39288         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39289         the first argument and return value of __tls_get_addr_internal.
39290
39291 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39292
39293         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39294         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39295
39296 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39297
39298         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39299         * sysdeps/s390/rtld-global-offsets.sym: New file.
39300         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39301         GLIBC_2.19 symbol.
39302         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39303         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39304         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39305         ... this.
39306         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39307         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39308         ... this.
39309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39310         Regenerate.
39311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39312         Regenerate.
39313         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39314         halfs of GPRs for high_gprs contexts.
39315         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39316         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39317         field.
39318         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39319         uc_flags field.
39320         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39321         64 bit versions:
39322         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39323         for high GPRs (uc_high_gprs) and for future extensions
39324         (__reserved).
39325         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39326         for future extensions (__reserved).
39327         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39328         64 bit versions:
39329         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39330         SC_HIGHGPRS offset definition.
39331         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39332         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39333
39334         * Versions.def: Add GLIBC_2.19 for libpthread.
39335         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39336         siglongjmp for libpthread with GLIBC_2.19 symver.
39337         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39338         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39339         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39340         * sysdeps/s390/__longjmp.c: New file.
39341         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39342         * sysdeps/s390/longjmp.c: New file.
39343         * sysdeps/s390/setjmp.S: New file.
39344         * sysdeps/s390/sigjmp.S: New file.
39345         * sysdeps/s390/v1-longjmp.c: New file.
39346         * sysdeps/s390/v1-setjmp.h: New file.
39347         * sysdeps/s390/v1-sigjmp.c: New file.
39348         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39349         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39350         GLIBC_2.19 version.
39351         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39352         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39353         versioned symbols for ____longjmp_chk.
39354         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39355         Likewise.
39356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39357         Regenerate.
39358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39359         Regenerate.
39360         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39361         Regenerate.
39362         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39363         Regenerate.
39364         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39365         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39366         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39367         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39368         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39369         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39370         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39371         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39372         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39373         * sysdeps/s390/rtld-__longjmp.c: New file.
39374         * sysdeps/s390/rtld-setjmp.S: New file.
39375
39376 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39377
39378         [BZ #16400]
39379         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39380         Return -__logl (x) for small positive arguments without evaluating
39381         a polynomial.
39382
39383 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39384
39385         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39386         Rename to ...
39387         (__ptrace_peeksiginfo_args): ... this.
39388         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39389         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39390         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39391
39392 2014-01-06  Allan McRae  <allan@archlinux.org>
39393
39394         * inet/netinet/in.h: Fix typo in comment.
39395
39396 2014-01-05  Andreas Jaeger  <aj@suse.de>
39397
39398         * sysdeps/i386/fpu/libm-test-ulps: Update.
39399
39400 2014-01-05  Allan McRae  <allan@archlinux.org>
39401
39402         * po/libc.pot: Regenerated.
39403
39404         * malloc/memusagestat.c: Fix gettext call formatting.
39405
39406 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39407
39408         * nscd/nscd.c: Improve usage() output.
39409
39410 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39411
39412         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39413         * sysdeps/unix/sysv/linux/configure: Regenerated.
39414         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39415         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39416
39417 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39418
39419         [BZ #16390]
39420         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39421         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39422
39423 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39424
39425         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39426         extra tokens at end of #undef directive.
39427         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39428         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39429         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39430
39431 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39432
39433         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39434
39435         * math/auto-libm-test-in: Mark various tests with
39436         xfail-rounding:ldbl-128ibm.
39437         * math/auto-libm-test-out: Regenerated.
39438
39439 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39440
39441         [BZ #16386]
39442         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39443         numbers with subnormal high part when calculating exponent.
39444
39445         [BZ #16385]
39446         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39447         fabs.
39448
39449         [BZ #16384]
39450         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39451         M_LN2l.
39452         (__ieee754_acoshl): Use __log1pl not __log1p.
39453
39454 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39455
39456         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39457         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39458         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39459         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39460         (reused_arena, arena_get2): Convert to GNU style.
39461         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39462         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39463         (memalign_check, __malloc_set_state): Likewise.
39464         * malloc/mallocbug.c (main): Likewise.
39465         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39466         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39467         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39468         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39469         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39470         (__posix_memalign, malloc_info): Likewise.
39471         * malloc/malloc.h: Likewise.
39472         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39473         (mallochook, memalignhook, reallochook, mabort): Likewise.
39474         * malloc/mcheck.h: Likewise.
39475         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39476         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39477         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39478         * malloc/morecore.c (__default_morecore): Likewise.
39479         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39480         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39481         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39482         (print_and_abort): Likewise.
39483         * malloc/obstack.h: Likewise.
39484         * malloc/set-freeres.c (__libc_freeres): Likewise.
39485         * malloc/tst-mallocstate.c (main): Likewise.
39486         * malloc/tst-mtrace.c (main): Likewise.
39487         * malloc/tst-realloc.c (do_test): Likewise.
39488
39489 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39490
39491         [BZ #16366]
39492         * nscd/netgroupcache.c (do_notfound): New function.
39493         (addgetnetgrentX): Use it.
39494
39495         [BZ # 16365]
39496         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39497         NSS_STATUS_NOTFOUND.
39498
39499 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39500
39501         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39503
39504 2014-01-01  Allan McRae  <allan@archlinux.org>
39505
39506         * scripts/update-copyrights: Update configure input file suffix.
39507
39508         * NEWS: Update copyright year.
39509         * catgets/gencat.c: Likewise.
39510         * csu/version.c: Likewise.
39511         * debug/catchsegv.sh: Likewise.
39512         * debug/pcprofiledump.c: Likewise.
39513         * debug/xtrace.sh: Likewise.
39514         * elf/ldconfig.c: Likewise.
39515         * elf/ldd.bash.in: Likewise.
39516         * elf/pldd.c: Likewise.
39517         * elf/sotruss.ksh: Likewise.
39518         * elf/sprof.c: Likewise.
39519         * iconv/iconv_prog.c: Likewise.
39520         * iconv/iconvconfig.c: Likewise.
39521         * locale/programs/locale.c: Likewise.
39522         * locale/programs/localedef.c: Likewise.
39523         * login/programs/pt_chown.c: Likewise.
39524         * malloc/memusage.sh: Likewise.
39525         * malloc/memusagestat.c: Likewise.
39526         * malloc/mtrace.pl: Likewise.
39527         * manual/libc.texinfo: Likewise.
39528         * nscd/nscd.c: Likewise.
39529         * nss/getent.c: Likewise.
39530         * nss/makedb.c: Likewise.
39531         * posix/getconf.c: Likewise.
39532         * scripts/test-installation.pl: Likewise.
39533
39534         * All files with FSF copyright notices: Update copyright dates
39535         using scripts/update-copyrights.
39536         * intl/plural.c: Regenerated.
39537         * locale/programs/charmap-kw.h: Likewise.
39538         * locale/programs/locfile-kw.h: Likewise.
39539
39540 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39541
39542         * sysdeps/unix/sysv/linux/configure: Regenerated.
39543         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39544         the linux/fanotify.h header.
39545         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39546         HAVE_LINUX_FANOTIFY_H is defined.
39547
39548 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39549
39550         * benchtests/cos-inputs: New inputs.
39551         * benchtests/sin-inputs: Likewise.
39552
39553         * benchtests/atan-inputs: New inputs. Fix name of multiple
39554         precision fallback inputs.
39555
39556         * benchtests/atanh-inputs: New inputs.
39557         * benchtests/tanh-inputs: Likewise.
39558
39559         * benchtests/acosh-inputs: New inputs.
39560         * benchtests/asinh-inputs: Likewise.
39561
39562         * benchtests/cosh-inputs: New inputs.
39563         * benchtests/sinh-inputs: Likewise.
39564
39565         * benchtests/acos-inputs: Add more inputs.
39566         * benchtests/asin-inputs: Likewise.
39567
39568 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39569
39570         [BZ #16375]
39571         * manual/arith.texi: Fix spelling.
39572         * manual/charset.texi: Likewise.
39573         * manual/errno.texi: Likewise.
39574         * manual/filesys.texi: Likewise.
39575         * manual/lang.texi: Likewise.
39576         * manual/llio.texi: Likewise.
39577         * manual/locale.texi: Likewise.
39578         * manual/message.texi: Likewise.
39579         * manual/resource.texi: Likewise.
39580         * manual/search.texi: Likewise.
39581         * manual/setjmp.texi: Likewise.
39582         * manual/stdio.texi: Likewise.
39583         * manual/string.texi: Likewise.
39584         * manual/sysinfo.texi: Likewise.
39585         * manual/time.texi: Likewise.
39586
39587 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39588
39589         * po/sl.po: New file.
39590
39591 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39592
39593         * .gitignore: Add core/.gdbinit/.gdb_history.
39594
39595 2013-12-27  Allan McRae  <allan@archlinux.org>
39596
39597         [BZ #16369]
39598         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39599         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39600
39601 2013-12-24  Brooks Moses  <bmoses@google.com>
39602
39603         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39604         all compilers that claim C++98 compliance, not just GCC.
39605         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39606         Likewise.
39607
39608 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39609
39610         * NEWS: Restore accidentally deleted bug-fix entries.
39611
39612 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39613             Ondřej Bílka  <neleai@seznam.cz>
39614
39615         [BZ #15073]
39616         * malloc/malloc.c (_int_free): Perform sanity check only if we
39617         have_lock.
39618
39619 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39620
39621         [BZ #12986]
39622         * manual/stdio.texi (String Input Conversions): Clarify that character
39623         classes are not supported.
39624
39625 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39626
39627         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39628
39629 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39630
39631         [BZ #16337]
39632         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39633         Calculate results for small negative arguments directly rather
39634         than using reflection formula with special underflow handling.
39635
39636         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39637         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39638         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39639         (fchflags): Likewise.
39640         (revoke): Likewise.
39641         (setlogin): Likewise.
39642         (sigaltstack): Likewise.
39643         (wait4): Likewise.
39644         (sigblock): Remove.
39645         (sigsetmask): Likewise.
39646         (wait3): Likewise.
39647         (waitpid): Likewise.
39648         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39649         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39650         file.
39651         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39652         * sysdeps/unix/bsd/Makefile: ... here.
39653         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39654         * sysdeps/unix/bsd/Versions: ... here.
39655         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39656         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39657         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39658         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39659         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39660         * sysdeps/unix/bsd/sigblock.c: ... here.
39661         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39662         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39663         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39664         * sysdeps/unix/bsd/sigvec.c: ... here.
39665         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39666         * sysdeps/unix/bsd/tcdrain.c: ... here.
39667         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39668         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39669         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39670         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39671         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39672         * sysdeps/unix/bsd/wait.c: ... here.
39673         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39674         * sysdeps/unix/bsd/wait3.c: ... here.
39675         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39676         * sysdeps/unix/bsd/waitpid.c: ... here.
39677
39678 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39679
39680         [BZ #16356]
39681         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39682         round-to-nearest for [!USE_AS_EXPM1L].
39683         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39684         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39685         more tests of exp and exp10.  Expect some exp10 tests to miss
39686         exceptions or fail in directed rounding modes.
39687         * math/auto-libm-test-out: Regenerated.
39688         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39689         (exp10_test_tonearest): New function.
39690         (exp10_towardzero_test_data): New array.
39691         (exp10_test_towardzero): New function.
39692         (exp10_downward_test_data): New array.
39693         (exp10_test_downward): New function.
39694         (exp10_upward_test_data): New array.
39695         (exp10_test_upward): New function.
39696         (main): Call the new functions.
39697         * sysdeps/i386/fpu/libm-test-ulps: Update.
39698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39699
39700 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39701
39702         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39703         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39704         * math/auto-libm-test-out: Regenerated.
39705         * math/libm-test.inc (acosh_test_data): Add more tests.
39706         (atanh_test_data): Likewise.
39707         (ceil_test_data): Likewise.
39708         (copysign_test_data): Likewise.
39709         * sysdeps/i386/fpu/libm-test-ulps: Update.
39710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39711
39712         * timezone/checktab.awk: Update from tzcode 2013i.
39713         * timezone/private.h: Likewise.
39714         * timezone/scheck.c: Likewise.
39715         * timezone/tzfile.h: Likewise.
39716         * timezone/tzselect.ksh: Likewise.
39717         * timezone/zdump.c: Likewise.
39718         * timezone/zic.c: Likewise.
39719
39720         * math/auto-libm-test-in: Add tests of cpow.
39721         * math/auto-libm-test-out: Regenerated.
39722         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39723         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39724         mpc_cc_c.
39725         (func_calc_desc): Add mpc_cc_c union field.
39726         (test_functions): Add cpow.
39727         (special_fill_2pi): New function.
39728         (special_real_inputs): Add 2pi.
39729         (calc_generic_results): Handle mpc_cc_c.
39730         * sysdeps/i386/fpu/libm-test-ulps: Update.
39731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39732
39733         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39734         csqrt, ctan and ctanh.
39735         * math/auto-libm-test-out: Regenerated.
39736         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39737         (TEST_COND_x86): Likewise.
39738         (ccos_test_data): Use AUTO_TESTS_c_c.
39739         (ccosh_test_data): Likewise.
39740         (cexp_test_data): Likewise.
39741         (clog_test_data): Likewise.
39742         (csqrt_test_data): Likewise.
39743         (ctan_test_data): Likewise.
39744         (ctan_tonearest_test_data): Likewise.
39745         (ctan_towardzero_test_data): Likewise.
39746         (ctan_downward_test_data): Likewise.
39747         (ctan_upward_test_data): Likewise.
39748         (ctanh_test_data): Likewise.
39749         (ctanh_tonearest_test_data): Likewise.
39750         (ctanh_towardzero_test_data): Likewise.
39751         (ctanh_downward_test_data): Likewise.
39752         (ctanh_upward_test_data): Likewise.
39753         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39754         mpc_c_c.
39755         (func_calc_desc): Add mpc_c_c union field.
39756         (FUNC_mpc_c_c): New macro.
39757         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39758         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39759         ctanh.
39760         (special_fill_min_subnorm_p120): New function.
39761         (special_real_inputs): Add min_subnorm_p120.
39762         (calc_generic_results): Handle mpc_c_c.
39763         * sysdeps/i386/fpu/libm-test-ulps: Update.
39764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39765
39766 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39767
39768         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39769         (do_sin_slow): New functions.
39770         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39771         (cslow2, csloww1, csloww2): Use the new functions.
39772
39773         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39774         Use M to change sign of result instead of X.  Assume X is
39775         positive.
39776         (csloww1): Likewise.
39777         (__sin): Adjust.
39778         (__cos): Adjust.
39779
39780         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39781         arguments A and DA.
39782         (__sin): Adjust.
39783         (__cos): Likewise.
39784
39785         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39786         (__cos): Likewise.
39787         (sloww1): Don't adjust sign of DX.
39788         (csloww1): Likewise.
39789         (sloww2): Use X directly and don't adjust sign of DX.
39790         (csloww2): Likewise.
39791
39792 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39793
39794         * math/auto-libm-test-in: Add tests of cabs and carg.
39795         * math/auto-libm-test-out: Regenerated.
39796         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39797         (carg_test_data): Likewise.
39798         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39799         mpc_c_f.
39800         (func_calc_desc): Add mpc_c_f union field.
39801         (test_functions): Add cabs and carg.
39802         (calc_generic_results): Handle mpc_c_f.
39803
39804         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39805         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39806         as a macro and a compat symbol.
39807         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39808         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39809         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39810         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39811         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39812         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39813         not use .hidden.
39814         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39815         Likewise.
39816         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39817         Likewise.
39818         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39819         Likewise.
39820         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39821         Likewise.
39822         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39823         Likewise.
39824         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39825         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39826         from GLIBC_2.3.2.
39827
39828 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39829
39830         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39831
39832 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39833
39834         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39835         trailing whitespace removed.
39836         * scripts/config.guess: Update to version 2013-11-29.
39837         * scripts/config.sub: Update to version 2013-10-01.
39838
39839         * math/auto-libm-test-in: Add tests of sincos.
39840         * math/auto-libm-test-out: Regenerated.
39841         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39842         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39843         mpfr_f_11.
39844         (func_calc_desc): Add mpfr_f_11 union field.
39845         (test_functions): Add sincos.
39846         (calc_generic_results): Handle mpfr_f_11.
39847         * sysdeps/i386/fpu/libm-test-ulps: Update.
39848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39849
39850 2013-12-19  Andreas Schwab  <schwab@suse.de>
39851
39852         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39853         CALL_MCOUNT.
39854         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39855         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39856         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39857
39858 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39859
39860         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39861         * sysdeps/i386/fpu/libm-test-ulps: Update.
39862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39863
39864         [BZ #16293]
39865         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39866         round-to-nearest mode when using frndint.
39867         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39868         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39869         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39870         Likewise.
39871         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39872         sinh test to fail.
39873         * math/auto-libm-test-out: Regenerated.
39874         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39875         (TEST_COND_x86): Likewise.
39876         (expm1_tonearest_test_data): New array.
39877         (expm1_test_tonearest): New function.
39878         (expm1_towardzero_test_data): New array.
39879         (expm1_test_towardzero): New function.
39880         (expm1_downward_test_data): New array.
39881         (expm1_test_downward): New function.
39882         (expm1_upward_test_data): New array.
39883         (expm1_test_upward): New function.
39884         (main): Run the new test functions.
39885         * sysdeps/i386/fpu/libm-test-ulps: Update.
39886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39887
39888         * include/features.h: Update comment documenting feature test
39889         macros.  Mention _DEFAULT_SOURCE in comment.
39890         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39891         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39892         _BSD_SOURCE and _SVID_SOURCE.
39893         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39894         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39895         !_SVID_SOURCE]: Likewise.
39896         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39897         (__USE_POSIX_IMPLICITLY): Define.
39898         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39899         (_POSIX_SOURCE): Undefine and redefine.
39900         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39901         (_POSIX_C_SOURCE): Likewise.
39902         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39903         (Feature Test Macros): Update documentation of default features.
39904
39905 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39906
39907         * benchtests/Makefile: Add bench-strtok.
39908         * benchtests/bench-strtok.c: New file: strtok benchtest.
39909
39910 2013-12-19  Allan McRae  <allan@archlinux.org>
39911
39912         * manual/install.texi: Suppress menu for plain text output.
39913         * INSTALL: Regenerated.
39914
39915 2013-12-18  Brooks Moses  <bmoses@google.com>
39916
39917         [BZ #15846]
39918         * misc/getauxval.c: Include errno.h.
39919         (__getauxval): Set errno to ENOENT if the requested type is not
39920         found.
39921         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39922         don't declare with __attribute_const__.
39923         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39924         * manual/startup.texi: Document that getauxval sets errno.
39925
39926 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39927
39928         * math/auto-libm-test-in: Add tests of jn and yn.
39929         * math/auto-libm-test-out: Regenerated.
39930         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39931         (yn_test_data): Likewise.
39932         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39933         mpfr_if_f.
39934         (func_calc_desc): Add mpfr_if_f union field.
39935         (FUNC_mpfr_if_f): New macro.
39936         (test_functions): Add jn and yn.
39937         (calc_generic_results): Assert type of second input for
39938         mpfr_ff_f.  Handle mpfr_if_f.
39939         (output_for_one_input_case): Disable all checking for arguments
39940         fitting floating-point types in case of an integer argument.
39941         * sysdeps/i386/fpu/libm-test-ulps: Update.
39942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39943
39944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39945         Don't expect fegetround reference in libm.so.
39946
39947 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39948
39949         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39950         $(config-cflags-nofma).
39951
39952 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39953
39954         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39955         * math/auto-libm-test-out: Regenerated.
39956
39957         [BZ #16338]
39958         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39959         to determine exponent and adjust argument to have exponent of -1.
39960         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39961         log2.
39962         * math/auto-libm-test-out: Regenerated.
39963         * sysdeps/i386/fpu/libm-test-ulps: Update.
39964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39965
39966 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39967
39968         * manual/probes.texi: Remove cases when per-thread arenas are
39969         disabled.
39970
39971 2013-12-18  Andreas Schwab  <schwab@suse.de>
39972
39973         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39974         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39975         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39976         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39977         * sysdeps/i386/i686/multiarch/Makefile: Update.
39978         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39979
39980 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39981
39982         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39983         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39984
39985 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39986
39987         [BZ #15968]
39988         Support TZ transition times < 00:00:00.
39989         This is needed for version-3 tz-format files; it supports time
39990         stamps past 2037 for America/Godthab (the only entry in the tz
39991         database for which this change is relevant).
39992         * manual/time.texi (TZ Variable): Document transition times
39993         from -167:59:59 through -00:00:01.
39994         * time/tzset.c (tz_rule): Time of day is now signed.
39995         (__tzset_parse_tz): Parse negative time of day.
39996
39997         Document TZ transition times >= 25:00:00.
39998         * manual/time.texi (TZ Variable): Document transition times from
39999         25:00:00 through 167:59:59.  These are already supported, and this
40000         support will help with version-3 tz-format files.
40001
40002         * manual/time.texi (TZ Variable): Modernize North America example
40003         to reflect current (i.e., 2007-and-later) daylight saving rules.
40004
40005         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
40006
40007 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40008
40009         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
40010         * sysdeps/unix/bsd/bits/stat.h: Likewise.
40011         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
40012         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
40013         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
40014         * sysdeps/unix/bsd/bsdstat.h: Likewise.
40015         * sysdeps/unix/bsd/clock.c: Likewise.
40016         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
40017         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
40018         * sysdeps/unix/bsd/init-posix.c: Likewise.
40019         * sysdeps/unix/bsd/poll.c: Likewise.
40020         * sysdeps/unix/bsd/ptsname.c: Likewise.
40021         * sysdeps/unix/bsd/seekdir.c: Likewise.
40022         * sysdeps/unix/bsd/setegid.c: Likewise.
40023         * sysdeps/unix/bsd/seteuid.c: Likewise.
40024         * sysdeps/unix/bsd/setgid.c: Likewise.
40025         * sysdeps/unix/bsd/setrgid.c: Likewise.
40026         * sysdeps/unix/bsd/setruid.c: Likewise.
40027         * sysdeps/unix/bsd/setsid.c: Likewise.
40028         * sysdeps/unix/bsd/setuid.c: Likewise.
40029         * sysdeps/unix/bsd/sigaction.c: Likewise.
40030         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
40031         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
40032         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
40033         * sysdeps/unix/bsd/telldir.c: Likewise.
40034         * sysdeps/unix/bsd/times.c: Likewise.
40035         * sysdeps/unix/bsd/usleep.c: Likewise.
40036
40037         * misc/Makefile (install-lib): Remove libbsd-compat.a.
40038         ($(objpfx)libbsd-compat.a): Remove rule.
40039
40040         * include/features.h (__FAVOR_BSD): Do not define.
40041         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
40042         features conflicting with POSIX.
40043         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
40044         (_BSD_SOURCE): Remove description of not being a subset of other
40045         feature test macros.
40046         * manual/job.texi (getpgrp): Do not document BSD version.
40047         (getpgid): Do not document by reference to BSD getpgrp.
40048         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
40049         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
40050         * signal/signal.h [__FAVOR_BSD]: Likewise.
40051         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
40052         instead of making contents conditional on [__FAVOR_BSD].
40053         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
40054
40055 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40056
40057         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40058
40059 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40060
40061         [BZ #16314]
40062         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
40063         values below 2**-450, not 2**-500.
40064         * math/auto-libm-test-in: Don't allow spurious underflow from
40065         hypot.
40066         * math/auto-libm-test-out: Regenerated.
40067
40068         [BZ #16316]
40069         [BZ #16330]
40070         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
40071         values of ha and hb and sort them after adjusting subnormal
40072         arguments.
40073         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
40074         Likewise.
40075         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
40076         values of ea and eb and sort them after adjusting subnormal
40077         arguments.
40078         * math/auto-libm-test-in: Do not expect some hypot tests of
40079         subnormals to fail.  Add more hypot tests.
40080         * math/auto-libm-test-out: Regenerated.
40081
40082 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40083
40084         [BZ #13304]
40085         * sysdeps/sh/s_fma.c: New file.
40086         * sysdeps/sh/s_fmaf.c: New file.
40087         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
40088         version.
40089         * sysdeps/sh/Implies: Add sh/soft-fp.
40090
40091 2013-12-16  Roland McGrath  <roland@hack.frob.com>
40092
40093         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
40094         level of indirection to members `objname', `errstring', `malloced'.
40095         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
40096         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
40097         it as the __longjmp argument (just pass 1 instead).
40098         (_dl_catch_error): Initialize C with argument pointers and address of
40099         volatile local ERRCODE rather than copying values out of C at return.
40100
40101 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
40102
40103         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
40104         * math/auto-libm-test-out: Regenerated.
40105         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
40106         (hypot_test_data): Likewise.
40107         (pow_test_data): Likewise.
40108         (pow_tonearest_test_data): Likewise.
40109         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40110         mpfr_ff_f.
40111         (func_calc_desc): Add mpfr_ff_f union field.
40112         (FUNC_mpfr_ff_f): New macro.
40113         (test_functions): Add atan2, hypot and pow.
40114         (special_fill_min): New function.
40115         (special_fill_minus_min): Likewise.
40116         (special_fill_min_subnorm): Likewise.
40117         (special_fill_minus_min_subnorm): Likewise.
40118         (special_real_inputs): Add min, -min, min_subnorm and
40119         -min_subnorm.
40120         (calc_generic_results): Handle mpfr_ff_f.
40121         * sysdeps/i386/fpu/libm-test-ulps: Update.
40122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40123
40124 2013-12-16  Will Newton  <will.newton@linaro.org>
40125
40126         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40127         (Aligned Memory Blocks): Add documentation for aligned_alloc
40128         and suggest it as an alternative to posix_memalign.
40129         (Hooks for Malloc): Document __memalign_hook is also called
40130         for aligned_alloc.  (Summary of Malloc): Add summary for
40131         aligned alloc.  Document __memalign_hook is also called
40132         for aligned_alloc.
40133
40134 2013-12-16  Will Newton  <will.newton@linaro.org>
40135
40136         * manual/memory.texi (Malloc Examples): Clarify default
40137         alignment documentation.  Suggest posix_memalign rather
40138         than memalign or valloc.
40139         (Aligned Memory Blocks): Remove suggestion to use memalign
40140         or valloc.  Remove obsolete comment about BSD.
40141         Document memalign errno values and mark the function obsolete.
40142         Document posix_memalign returned error codes.  Mark valloc
40143         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40144         called for posix_memalign and valloc.
40145         (Summary of Malloc): Add posix_memalign to function summary.
40146         __memalign_hook is also called for posix_memalign and valloc.
40147
40148 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40149
40150         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40151         TAYLOR_SIN.
40152         (__sin): Adjust.
40153         (__cos): Likewise.
40154         (sloww): Use mynumber union.  Expand ternary operator into
40155         if-else statements.
40156         (cslow): use mynumber union.
40157
40158 2013-12-16  Allan McRae  <allan@archlinux.org>
40159
40160         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40161         * configure: Regenerated.
40162
40163         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40164
40165         [BZ #14120]
40166         * configure.ac: Added --enable-maintainer-mode. Check for
40167         autoconf when enabled.
40168         * configure: Regenerated.
40169
40170         * nscd/nscd.service: New file.
40171         * nscd/nscd.tmpfiles: New file.
40172
40173 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40174
40175         [BZ #12100]
40176         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40177         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40178         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40179         (strstr): Add __strstr_sse2_unaligned ifunc.
40180         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40181         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40182         (strcasestr): Remove __strcasestr_sse42 ifunc.
40183         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40184         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40185         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40186
40187 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40188
40189         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40190         * sysdeps/sh/bits/fenv.h: ... here.
40191         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40192
40193 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40194
40195         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40196
40197         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40198         hypotf multiarch implementations.
40199         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40200         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40201         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40202         multiarch hypot for PPC64.
40203         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40204         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40205         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40206         multiarch hypotf for PPC64.
40207
40208         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40209         modff multiarch implementations.
40210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40213         multiarch modf for PPC64.
40214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40217         multiarch modff for PPC64.
40218
40219         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40220         and logl multiarch implementations.
40221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40224         multiarch logb for PPC64.
40225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40228         multiarch logb for PPC64.
40229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40232         multiarch logb for PPC64.
40233
40234         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40235         isinff multiarch implementation.
40236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40237         file.
40238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40240         multiarch isinf for PPC64.
40241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40242         file.
40243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40244         multiarch isinff for PPC64.
40245
40246         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40247         finitef multiarch implementation.
40248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40249         file.
40250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40252         multiarch finite for PPC64.
40253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40254         file.
40255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40256         multiarch finitef for PPC64.
40257
40258         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40259         lrint multiarch implementation.
40260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40261         file.
40262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40264         multiarch llrint for PPC64.
40265         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40266         multiarch lrint for PPC64.
40267
40268         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40269         copysignf multiarch implementation.
40270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40271         file.
40272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40273         file.
40274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40275         multiarch copysign for PPC64.
40276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40277         multiarch copysignf for PPC64.
40278
40279         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40280         multiarch implementation.
40281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40282         file.
40283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40284         file.
40285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40286         file.
40287         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40288         file.
40289         multiarch llround for PPC64.
40290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40291         multiarch trunc for PPC64.
40292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40293         multiarch truncf for PPC64.
40294
40295         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40296         multiarch implementation.
40297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40298         file.
40299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40300         file.
40301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40302         file.
40303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40304         file.
40305         multiarch llround for PPC64.
40306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40307         multiarch round for PPC64.
40308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40309         multiarch roundf for PPC64.
40310
40311         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40312         multiarch implementation.
40313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40314         file.
40315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40316         file.
40317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40318         file.
40319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40320         file.
40321         multiarch llround for PPC64.
40322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40323         multiarch floor for PPC64.
40324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40325         multiarch floorf for PPC64.
40326
40327         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40328         multiarch implementation.
40329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40330         file.
40331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40332         file.
40333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40334         file.
40335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40336         file.
40337         multiarch llround for PPC64.
40338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40339         multiarch ceil for PPC64.
40340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40341         multiarch ceilf for PPC64.
40342
40343         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40344         multiarch implementation.
40345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40346         file.
40347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40348         file.
40349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40350         file.
40351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40352         multiarch llround for PPC64.
40353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40354         multiarch lround for PPC64.
40355
40356         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40357         multiarch implementation.
40358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40361         file.
40362         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40364         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40365         multiarch isnan for PPC64.
40366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40367         multiarch isnanf for PPC64.
40368
40369         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40370         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40371         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40372         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40373         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40375
40376         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40377         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40378         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40379         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40380
40381         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40382         multiarch implementations.
40383         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40384         (__libc_ifunc_impl_list): Likewise.
40385         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40386         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40387         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40388         multiarch stpcpy for PPC64.
40389
40390         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40391         multiarch implementations.
40392         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40393         (__libc_ifunc_impl_list): Likewise.
40394         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40395         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40396         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40397         multiarch strcpy for PPC64.
40398
40399         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40400         redefine function name.
40401         (_wordcopy_fwd_dest_aligned): Likewise.
40402         (_wordcopy_bwd_aligned): Likewise.
40403         (_wordcopy_bwd_dest_aligned): Likewise.
40404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40405         multiarch implementations.
40406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40407         (__libc_ifunc_impl_list): Likewise.
40408         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40409         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40410         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40411         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40412         multiarch wcscpy for PPC64.
40413
40414         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40415         multiarch implementations.
40416         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40417         (__libc_ifunc_impl_list): Likewise.
40418         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40419         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40420         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40421         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40422         multiarch wcscpy for PPC64.
40423
40424         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40425         multiarch implementations.
40426         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40427         (__libc_ifunc_impl_list): Likewise.
40428         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40429         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40430         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40431         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40432         multiarch wcsrchr for PPC64.
40433
40434         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40435         multiarch implementations.
40436         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40437         (__libc_ifunc_impl_list): Likewise.
40438         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40439         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40440         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40441         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40442         multiarch wcschr for PPC64.
40443
40444         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40445         multiarch implementations.
40446         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40447         (__libc_ifunc_impl_list): Likewise.
40448         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40449         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40450         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40451         multiarch strchrnul for PPC64.
40452
40453         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40454         implementations.
40455         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40456         (__libc_ifunc_impl_list): Likewise.
40457         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40458         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40459         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40460         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40461         strchr for PPC64.
40462
40463         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40464         implementations.
40465         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40466         (__libc_ifunc_impl_list): Likewise.
40467         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40468         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40469         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40470         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40471         strncmp for PPC64.
40472
40473         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40474         multiarch implementations.
40475         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40476         (__libc_ifunc_impl_list): Likewise.
40477         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40478         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40479         strncasecmp for PPC64.
40480         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40481         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40482         multiarch strncasecmp_l for PPC64.
40483
40484         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40485         multiarch implementations.
40486         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40487         (__libc_ifunc_impl_list): Likewise.
40488         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40489         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40490         multiarch strcasecmp for PPC64.
40491         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40492         file.
40493         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40494         multiarch strcasecmp_l for PPC64.
40495
40496         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40497         implementations.
40498         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40499         (__libc_ifunc_impl_list): Likewise.
40500         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40501         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40502         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40503         strnlen for PPC64.
40504
40505         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40506         implementations.
40507         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40508         (__libc_ifunc_impl_list): Likewise.
40509         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40510         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40511         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40512         strlen for PPC64.
40513
40514         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40515         implementations.
40516         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40517         (__libc_ifunc_impl_list): Likewise.
40518         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40519         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40520         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40521         rawmemrchr for PPC64.
40522
40523         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40524         implementation.
40525         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40526         (__libc_ifunc_impl_list): Likewise.
40527         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40528         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40529         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40530         memrchr for PPC64.
40531
40532         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40533         implementation.
40534         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40535         (__libc_ifunc_impl_list): Likewise.
40536         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40537         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40538         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40539         memchr for PPC64.
40540
40541         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40542         implementation.
40543         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40544         (__libc_ifunc_impl_list): Likewise.
40545         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40546         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40547         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40548         mempcpy for PPC64.
40549
40550         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40551         avoid cretion of __bzero symbol.
40552         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40553         Likewise.
40554         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40555         Likewise.
40556         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40557         Likewise.
40558         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40559         multiarch implementations.
40560         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40561         (__libc_ifunc_impl_list): Likewise.
40562         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40563         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40564         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40565         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40566         bzero for PPC32.
40567         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40568         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40569         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40570         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40571         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40572         memset for PPC64.
40573         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40574
40575         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40576         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40577         implementations.
40578         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40579         (__libc_ifunc_impl_list): Likewise.
40580         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40581         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40582         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40583         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40584         memcmp for PPC64.
40585
40586         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40587         multiarch for POWER/PPC64.
40588         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40589         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40590         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40591         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40592         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40593         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40594         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40595         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40596         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40597         memcpy for PPC64.
40598
40599         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40600         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40601         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40602         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40603         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40604         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40605         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40606         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40607         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40608         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40609         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40610         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40611         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40612         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40613         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40621
40622 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40623
40624         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40625
40626 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40627
40628         * benchtests/Makefile (bench): Add exp2 and log2.
40629         (LDLIBS-bench-exp2): Add -lm.
40630         (LDLIBS-bench-log2): Likewise.
40631         * benchtests/exp2-inputs: New inputs file.
40632         * benchtests/log2-inputs: New inputs file.
40633         * benchtests/log-inputs: Add new inputs.
40634         * benchtests/tan-inputs: Likewise.
40635
40636 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40637
40638         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40639         definition...
40640         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40641         (csloww2): ... from here.
40642
40643         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40644         instead of structures.
40645         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40646         (POLYNOMIAL): Likewise.
40647         (TAYLOR_SLOW): Likewise.
40648         (__sin): Likewise.
40649         (__cos): Likewise.
40650         (slow1): Likewise.
40651         (slow2): Likewise.
40652         (sloww): Likewise.
40653         (sloww1); Likewise.
40654         (sloww2): Likewise.
40655         (bsloww1): Likewise.
40656         (bsloww2): Likewise.
40657         (cslow2): Likewise.
40658         (csloww): Likewise.
40659         (csloww1): Likewise.
40660         (csloww2): Likewise.
40661
40662 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40663
40664         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40665         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40666         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40667         * malloc/hooks.c (realloc_check): Likewise.
40668
40669         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40670         * malloc/arena.c: Remove PER_THREAD conditional.
40671         [!PER_THREAD]: Remove code.
40672         (ptmalloc_unlock_all2): Likewise.
40673         (ptmalloc_init): Likewise.
40674         (_int_new_arena): Likewise.
40675         (arena_get2): Likewise.
40676         * malloc/hooks.c (__malloc_get_state): Likewise.
40677         (__malloc_set_state): Likewise.
40678         * malloc/malloc.c: Likewise.
40679         (struct malloc_state): Likewise.
40680         (struct malloc_par): Likewise.
40681         (__libc_realloc): Likewise.
40682         (__libc_mallopt): Likewise.
40683
40684 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40685
40686         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40687
40688 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40689
40690         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40691         macro to a function.  Check for zero perturb_byte.
40692         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40693
40694         * malloc/malloc.c: (force_reg): Remove.
40695         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40696         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40697         force_reg by atomic_forced_read.
40698         * malloc/arena.c (ptmalloc_init): Likewise.
40699         * malloc/hooks.c (top_check): Likewise.
40700
40701 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40702
40703         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40704
40705 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40706
40707         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40708
40709 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40710
40711         * math/auto-libm-test-in: Add tests of lgamma.
40712         * math/auto-libm-test-out: Regenerated.
40713         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40714         (M_LOG_2_SQRT_PIl): Likewise.
40715         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40716         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40717         mpfr_f_f1.
40718         (func_calc_desc): Add mpfr_f_f1 union field.
40719         (ARGS1): New macro.
40720         (ARGS2): Likewise.
40721         (ARGS3): Likewise.
40722         (ARGS4): Likewise.
40723         (RET1): Likewise.
40724         (RET2): Likewise.
40725         (CALC): Likewise.
40726         (FUNC): Likewise.
40727         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40728         (test_functions): Add lgamma.
40729         (calc_generic_results): Handle mpfr_f_f1.
40730         * sysdeps/i386/fpu/libm-test-ulps: Update.
40731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40732
40733 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40734
40735         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40736         __mpn_add_n for PowerPC64/POWER7.
40737         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40738         __mpn_sub_n for PowerPC64/POWER7.
40739
40740         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40741         __mpn_addmul_1 for PowerPC64.
40742         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40743         __mpn_submul_1 for PowerPC64.
40744         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40745         for PowerPC64.
40746         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40747         for PowerPC64.
40748
40749 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40750
40751         [BZ #15089]
40752         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40753
40754 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40755
40756         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40757
40758         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40759         add multiarch folders.
40760         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40761         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40762         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40763         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40764         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40765         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40766         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40767         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40768         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40769         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40770         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40777
40778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40779         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40781         New file.
40782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40783         New file.
40784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40785         multiarch __ieee754_hypot for PowerPC32.
40786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40787         New file.
40788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40789         New file.
40790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40791         multiarch __ieee754_hypotf for PowerPC32.
40792
40793         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40794         long_double_symbol only if __logbl is defined.
40795         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40796         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40797         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40798         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40799         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40800         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40801         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40802         path for implementation.
40803         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40804         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40806         logb, and logbl multiarch implementations for PowerPC32.
40807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40808         file.
40809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40810         file.
40811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40812         multiarch logb for PowerPC32.
40813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40814         file.
40815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40816         file.
40817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40818         multiarch logbf for PowerPC32.
40819         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40821         file.
40822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40823         multiarch logbl implementation for PowerPC32.
40824
40825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40826         and modff multiarch implementations.
40827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40828         New file.
40829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40830         New file.
40831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40832         multiarch modf for PowerPC32.
40833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40834         New file.
40835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40836         New file.
40837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40838         multiarch modff for PowerPC32.
40839
40840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40841         and lrintf multiarch implementations.
40842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40843         New file.
40844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40845         New file.
40846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40847         multiarch lrint for PowerPC32.
40848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40849         file: multiarch lrintf for PowerPC32.
40850
40851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40852         and lroundf multiarch implementations.
40853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40854         New file.
40855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40856         New file.
40857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40858         New file.
40859         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40860         multiarch lround for PowerPC32.
40861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40862         file: multiarch lroundf for PowerPC32.
40863
40864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40865         copysign and copysignf multiarch implementations.
40866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40867         New file.
40868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40869         New file.
40870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40871         file: multiarch copysign for PowerPC32.
40872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40873         file: multiarch copysignf for PowerPC32.
40874
40875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40876         and truncf multiarch implementations.
40877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40878         New file.
40879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40880         file.
40881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40882         multiarch trunc for PowerPC32.
40883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40884         New file.
40885         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40886         New file.
40887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40888         multiarch truncf for PowerPC32.
40889
40890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40891         and roundf multiarch implementations.
40892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40893         New file.
40894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40895         file.
40896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40897         multiarch round for PowerPC32.
40898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40899         New file.
40900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40901         New file.
40902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40903         multiarch roundf for PowerPC32.
40904
40905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40906         and floorf multiarch implementations.
40907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40908         New file.
40909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40910         file.
40911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40912         multiarch floor for PowerPC32.
40913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40914         New file.
40915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40916         New file.
40917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40918         multiarch floorf for PowerPC32.
40919
40920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40921         and ceilf multiarch implementations.
40922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40923         New file.
40924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40925         file.
40926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40927         multiarch ceil for PowerPC32.
40928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40929         New file.
40930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40931         file.
40932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40933         multiarch ceilf for PowerPC32.
40934
40935         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40936         is defined.
40937         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40938         FINITEF is defined.
40939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40940         and finitef multiarch implementations.
40941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40942         New file.
40943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40944         file.
40945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40946         multiarch finite for PowerPC32.
40947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40948         New file.
40949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40950         file: multiarch finitef for PowerPC32.
40951
40952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40953         and isinff multiarch implementations.
40954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40955         file.
40956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40957         file.
40958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40959         multiarch isinf for PowerPC32.
40960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40961         New file.
40962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40963         multiarch isinff for PowerPC32.
40964
40965         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40966         alias when __isnan is defined.
40967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40968         and isnanf multiarch implementations.
40969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40970         file.
40971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40972         file.
40973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40974         file.
40975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40976         file.
40977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40978         multiarch isnan for PowerPC32.
40979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40980         New file.
40981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40982         New file.
40983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40984         multiarch isnanf for PowerPC32.
40985
40986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40987         and sqrtf multiarch implementations.
40988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40989         file.
40990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40991         file.
40992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40993         multiarch sqrt for PowerPC32.
40994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40995         file.
40996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40997         file.
40998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40999         multiarch sqrtf for PowerPC32.
41000
41001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
41002         and llroundf multiarch implementations.
41003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
41004         New file.
41005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
41006         New file.
41007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
41008         New file.
41009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
41010         file: multiarch llround for PowerPC32.
41011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
41012         file: multiarch llroundf for PowerPC32.
41013
41014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
41015         multiarch PowerPC32 fpu implementations.
41016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
41017         New file.
41018         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
41019         New file.
41020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
41021         multiarch llrint for PowerPC32.
41022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
41023         New file.
41024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
41025         New file.
41026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
41027         file.
41028
41029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
41030
41031         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
41032         file.
41033         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
41034         file.
41035         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
41036         file.
41037         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
41038         multiarch wordcopy for PPC32.
41039         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41040         wordcopy objects.
41041         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41042         (__libc_ifunc_impl_list): Likewise.
41043         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
41044         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
41045         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
41046         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
41047         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
41048         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
41049
41050         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
41051         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
41052         file.
41053         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
41054         file.
41055         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
41056         file.
41057         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
41058         multiarch wcscpy for PPC32.
41059         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41060         multiarch objects.
41061         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41062         (__libc_ifunc_impl_list): Likewise.
41063         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41064         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41065         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
41066         sysdeps/powerpc/power6/wcscpy.c.
41067
41068         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
41069         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
41070         file.
41071         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
41072         file.
41073         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
41074         file.
41075         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
41076         multiarch wcsrchr for PPC32.
41077         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41078         multiarch objects.
41079         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41080         (__libc_ifunc_impl_list): Likewise.
41081         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41082         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41083         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
41084         sysdeps/powerpc/power6/wcsrchr.c.
41085
41086         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
41087         file.
41088         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
41089         file.
41090         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
41091         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
41092         multiarch wcschr for PPc32.
41093         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41094         multiarch objects.
41095         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41096         (__libc_ifunc_impl_list): Likewise.
41097         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
41098         * sysdeps/powerpc/power6/wcschr.c: ... to here.
41099         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
41100         sysdeps/powerpc/power6/wcschr.c.
41101
41102         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
41103         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
41104         file.
41105         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
41106         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
41107         file: multiarch strchr for PPC32.
41108         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
41109         multiarch objects.
41110         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41111         (__libc_ifunc_impl_list): Likewise.
41112
41113         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
41114         name.
41115         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
41116         file.
41117         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
41118         file.
41119         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
41120         multiarch strchrnul for PPC32.
41121         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
41122         multiarch objects.
41123         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41124         (__libc_ifunc_impl_list): Likewise.
41125
41126         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41127         file.
41128         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41129         multiarch strncasecmp for PPC32.
41130         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41131         file.
41132         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41133         multiarch strncasecmp_l for PPC32.
41134         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41135         strncasecmp multiarch objects.
41136         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41137         (__libc_ifunc_impl_list): Likewise.
41138
41139         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41140         file.
41141         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41142         multiarch strncasecmp for PPC32.
41143         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41144         New file.
41145         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41146         multiarch strcasecmp_l for PPC32.
41147         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
41148         multiarch objects.
41149         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41150         (__libc_ifunc_impl_list): Likewise.
41151
41152         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
41153         file.
41154         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41155         file.
41156         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41157         multiarch strncmp for PPC32.
41158         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41159         multiarch objects.
41160         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41161         (__libc_ifunc_impl_list): Likewise.
41162
41163         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41164         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41165         file.
41166         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41167         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41168         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
41169         multiarch objects.
41170         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41171         (__libc_ifunc_impl_list): Likewise.
41172
41173         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
41174         file.
41175         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41176         file.
41177         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41178         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41179         multiarch objects.
41180         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41181         (__libc_ifunc_impl_list): Likewise.
41182
41183         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41184         file.
41185         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41186         file.
41187         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41188         multiarch rawmemchr for PPC32.
41189         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41190         multiarch objects.
41191         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41192         (__libc_ifunc_impl_list): Likewise.
41193
41194         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41195         file.
41196         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41197         file.
41198         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41199         file: memrchr multiarch for PPC32.
41200         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41201         multiarch objects.
41202         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41203         (__libc_ifunc_impl_list): Likewise.
41204
41205         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41206         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41207         file.
41208         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41209         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41210         multiarch memchr for PPC32.
41211         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41212         multiarch objects.
41213         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41214         (__libc_ifunc_impl_list): Likewise.
41215
41216         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41217         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41218         file.
41219         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41220         file.
41221         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41222         file: multiarch mempcpy for PPC32.
41223         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41224         multiarch objects.
41225         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41226         (__libc_ifunc_impl_list): Likewise.
41227
41228         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41229         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41230         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41231         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41232         multiarch bzero for PPC32.
41233         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41234         file.
41235         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41236         file.
41237         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41238         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41239         file: multiarch memset for PPC32.
41240         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41241         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41242         memset multiarch objects.
41243         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41244         (__libc_ifunc_impl_list): Likewise.
41245
41246         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41247         file.
41248         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41249         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41250         memcmp for PPC32.
41251         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41252         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41253         multiarch objects.
41254         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41255         (__libc_ifunc_impl_list): Likewise.
41256
41257         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41258         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41259         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41260         file.
41261         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41262         file.
41263         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41264         file.
41265         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41266         multiarch memcpy for PPC32.
41267         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41268         multiarch objects.
41269         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41270         (__libc_ifunc_impl_list): Likewise.
41271
41272         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41273         support multiarch for POWER/PPC32.
41274         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41275         Likewise.
41276         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41278         Implies file to make multiarch folder appers before the fpu and
41279         default folder for power4 configuration.
41280
41281 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41282
41283         * scripts/bench.pl: Append volatile keyword to type.
41284
41285 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41286
41287         * sysdeps/sh/sotruss-lib.c: New file.
41288         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41289
41290 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41291
41292         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41293
41294 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41295
41296         [BZ #6810]
41297         * math/w_tgamma.c: Include <errno.h>.
41298         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41299         * math/w_tgammaf.c: Include <errno.h>.
41300         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41301         * math/w_tgammal.c: Include <errno.h>.
41302         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41303         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41304         underflow.  Add more tgamma tests.
41305         * math/auto-libm-test-out: Regenerated.
41306         * sysdeps/i386/fpu/libm-test-ulps: Update.
41307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41308
41309         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41310         sin, sinh, tan, tanh, tgamma, y0 and y1.
41311         * math/auto-libm-test-out: Regenerated.
41312         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41313         (TEST_COND_x86): Likewise.
41314         (M_E2l): Remove macro.
41315         (M_E3l): Likewise.
41316         (M_2_SQRT_PIl): Likewise.
41317         (M_SQRT_PIl): Likewise.
41318         (M_1_DIV_El): Likewise.
41319         (log_test_data): Use AUTO_TESTS_f_f.
41320         (log10_test_data): Likewise.
41321         (log1p_test_data): Likewise.
41322         (log2_test_data): Likewise.
41323         (sin_test_data): Likewise.
41324         (sin_tonearest_test_data): Likewise.
41325         (sin_towardzero_test_data): Likewise.
41326         (sin_downward_test_data): Likewise.
41327         (sin_upward_test_data): Likewise.
41328         (sinh_test_data): Likewise.
41329         (sinh_tonearest_test_data): Likewise.
41330         (sinh_towardzero_test_data): Likewise.
41331         (sinh_downward_test_data): Likewise.
41332         (sinh_upward_test_data): Likewise.
41333         (tan_test_data): Likewise.
41334         (tan_tonearest_test_data): Likewise.
41335         (tan_towardzero_test_data): Likewise.
41336         (tan_downward_test_data): Likewise.
41337         (tan_upward_test_data): Likewise.
41338         (tanh_test_data): Likewise.
41339         (tgamma_test_data): Likewise.
41340         (y0_test_data): Likewise.
41341         (y1_test_data): Likewise.
41342         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41343         (special_real_inputs): Add pi/4.
41344         * sysdeps/i386/fpu/libm-test-ulps: Update.
41345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41346
41347 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41348
41349         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41350         "longjmp_target" static probes.
41351         (__longjmp): Rename to __longjmp_symbol.
41352         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41353         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41354         on which longjmp to generate.
41355         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41356         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41357         probe.
41358         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41359         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41360         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41361         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41362         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41363         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41365         __longjmp_symbol based on which __longjmp to generate.
41366         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41367         probe.
41368         (setjmp): Rename to setjmp_symbol.
41369         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41370         (_setjmp): Rename to _setjmp_symbol.
41371         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41372         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41373         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41374         which setjmp to generate.
41375         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41376         "longjmp_target" static probes.
41377
41378 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41379
41380         * benchtests/README: Add note about output arguments.
41381         * benchtests/bench-sincos.c: Remove file.
41382         * benchtests/sincos-inputs: New file.
41383         * scripts/bench.pl: Identify output arguments and define
41384         static variables for them.
41385
41386         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41387
41388         [BZ #15941]
41389         * Makefile (INSTALL): Add install-plain.texi as the primary
41390         dependency.
41391         * manual/install-plain.texi: New file.
41392         * manual/install.texi: Include node directive only for
41393         non-plaintext output.
41394
41395 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41396
41397         * stdlib/longlong.h: Update from GCC.
41398
41399         [BZ #6807]
41400         [BZ #15901]
41401         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41402         * math/w_j0f.c (y0f): Likewise.
41403         * math/w_j0l.c (__y0l): Likewise.
41404         * math/w_j1.c (y1): Likewise.
41405         * math/w_j1f.c (y1f): Likewise.
41406         * math/w_j1l.c (__y1l): Likewise.
41407         * math/w_jn.c (yn): Likewise.
41408         * math/w_jnf.c (ynf): Likewise.
41409         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41410         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41411         value for Bessel function domain errors outside _SVID_ mode.
41412         Adjust sign of return value for yn (negative integer, 0).
41413         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41414         by zero in return for negative x and set sign appropriately for
41415         negative n.
41416         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41417         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41418         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41419         expectations in error cases.
41420         (y1_test_data): Likewise.
41421         (yn_test_data): Likewise.
41422         * sysdeps/i386/fpu/libm-test-ulps: Update.
41423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41424
41425 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41426
41427         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41428         "64" to "64-v1".  Add "64-v2".
41429         (abi-64-options): Rename to ...
41430         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41431         (abi-64-condition): Rename to ...
41432         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41433         (abi-64-ld-soname): Rename to ...
41434         (abi-64-v1-ld-soname): ... this.
41435         (abi-64-v2-options): Define.
41436         (abi-64-v2-condition): Likewise.
41437         (abi-64-v2-ld-soname): Likewise.
41438         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41439         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41443
41444 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41445             Alan Modra  <amodra@gmail.com>
41446
41447         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41448         New versions for use with the ELFv2 ABI.
41449         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41450         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41451         declaration.
41452         (struct La_ppc64v2_retval): Likewise.
41453         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41454         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41455         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41456         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41457         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41458         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41459         Do not save or restore CR.
41460         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41461         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41462         return values for ELFv2 ABI.  Fix location of FPR return registers.
41463         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41464         updated values for _CALL_ELF == 2.
41465         (La_regs, La_retval, int_retval): Likewise.
41466
41467 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41468
41469         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41470         (FRAME_MIN_SIZE_PARM): Likewise.
41471         (FRAME_BACKCHAIN): Likewise.
41472         (FRAME_CR_SAVE): Likewise.
41473         (FRAME_LR_SAVE): Likewise.
41474         (FRAME_TOC_SAVE): Likewise.
41475         (FRAME_PARM_SAVE): Likewise.
41476         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41477         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41478         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41479         (call_mcount_parm_offset): New macro.
41480         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41481         (PROF): Use symbolic stack frame offsets.
41482         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41483         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41484         Redefine in terms of FRAME_MIN_SIZE.
41485         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41486         (_dl_profile_resolve): Likewise.  Update comment.
41487         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41488         symbols stack frame offsets.
41489         (__sigsetjmp): Likewise.
41490         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41491         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41492         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41493         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41494
41495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41496         (FRAME_BACKCHAIN): Remove.
41497         (FRAME_CR_SAVE): Likewise.
41498         (FRAME_LR_SAVE): Likewise.
41499         (FRAME_COMPILER_DW): Likewise.
41500         (FRAME_LINKER_DW): Likewise.
41501         (FRAME_TOC_SAVE): Likewise.
41502         (FRAME_PARM_SAVE): Likewise.
41503         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41504         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41505         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41507         (CHECK_SP): Use symbolic stack frame offsets.
41508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41509         zone" instead of caller's parameter save area for temp storage.
41510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41511         Likewise.  Also, use symbolic stack frame offsets.
41512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41513         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41514         our own stack frame instead of the caller's.
41515         (__socket): Use symbolic stack frame offsets.
41516
41517 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41518             Alan Modra  <amodra@gmail.com>
41519
41520         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41521         Define.
41522         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41523         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41524         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41525         New function.
41526         (elf_machine_fixup_plt): Call it.
41527         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41528         reloc arguments.
41529         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41530         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41531         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41532         r2 before calling target.
41533
41534 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41535             Alan Modra  <amodra@gmail.com>
41536
41537         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41538         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41539         versions of macros to support ELFv2 ABI.
41540         (LOCALENTRY): New macro.
41541         (ENTRY, EALIGN): Use it.
41542         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41543         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41544         fall through into ENTRY entry point.
41545         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41546         Only define if _CALL_ELF != 2.
41547
41548         (elf_machine_matches_host): Verify ABI version matches.
41549         (RTLD_START): Use LOCALENTRY.
41550         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41551         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41552         (PLT_ENTRY_WORDS): New macro.
41553         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41554         (elf_machine_runtime_setup): Support ELFv2 ABI.
41555         (elf_machine_fixup_plt): Likewise.
41556         (elf_machine_plt_conflict): Likewise.
41557         (resolve_ifunc): Likewise.
41558         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41559         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41560         Likewise.
41561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41562         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41564         (makecontext): Support ELFv2 ABI.
41565         * elf/elf.h (EF_PPC64_ABI): Define.
41566
41567 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41568
41569         * sysdeps/powerpc/powerpc64/sysdep.h
41570         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41571         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41572         (ENTRY) [ASSEMBLER]: ... but instead here ...
41573         (EALIGN) [ASSEMBLER]: ... and here.
41574         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41575         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41576         (ENTRY_2) [!ASSEMBLER]: Use it.
41577         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41578         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41579         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41580         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41581         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41583         Use PPC64_LOAD_FUNCPTR.
41584
41585         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41586
41587 2013-12-04  Alan Modra  <amodra@gmail.com>
41588
41589         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41590         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41591         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41592         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41593
41594         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41595         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41596         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41597         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41598         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41599         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41600
41601 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41602
41603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41604         (__makecontext): Fix incorrect CFI when backtracing out of
41605         context created via makecontext.
41606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41607         (__setcontext): Fix incorrect CFI during switch to new context.
41608         (__novec_setcontext): Likewise.
41609
41610 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41611
41612         [BZ #4772]
41613         * time/strptime_l.c (__strptime_internal): Allow modifiers
41614         in strptime.
41615         * time/tst-strptime.c (day_tests): Add testcase.
41616
41617 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41618
41619         * scripts/bench.pl: Skip over blank lines.
41620
41621 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41622
41623         [BZ #926]
41624         * manual/time.texi (Calendar Time): Clarify what timezone functions
41625         use.
41626
41627 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41628
41629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41630
41631 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41632
41633         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41634         implementation.
41635         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41636         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41637         * debug/memset_chk.c (__memset_chk): Likewise.
41638         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41639         * debug/strncpy_chk.c: Likewise.
41640
41641 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41642
41643         [BZ #15268]
41644         [BZ #15425]
41645         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41646         (__ieee754_exp): For possibly underflowing results, check size of
41647         result and force underflow exception if required.
41648         * math/auto-libm-test-in: Add more tests of exp.
41649         * math/auto-libm-test-out: Regenerated.
41650         * sysdeps/i386/fpu/libm-test-ulps: Update.
41651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41652
41653         [BZ #16283]
41654         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41655         * math/w_exp2f.c (__exp2f): Likewise.
41656         * math/w_exp2l.c (__exp2l): Likewise.
41657         * math/auto-libm-test-in: Do not allow missing errno on exp2
41658         underflow.
41659         * math/auto-libm-test-out: Regenerated.
41660
41661 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41662
41663         [BZ #16274]
41664         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41665         handle filename validation.
41666         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41667         (do_open): Delete.
41668
41669 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41670
41671         [BZ #6786]
41672         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41673         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41674         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41675         <float.h>.
41676         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41677         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41678         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41679         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41680         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41681         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41682         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41683         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41684         Add more erfc tests.
41685         * math/auto-libm-test-out: Regenerated.
41686         * sysdeps/i386/fpu/libm-test-ulps: Update.
41687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41688
41689         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41690         exp2, expm1, j0 and j1.
41691         * math/auto-libm-test-out: Regenerated.
41692         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41693         (erfc_test_data): Likewise.
41694         (exp_test_data): Likewise.
41695         (exp_tonearest_test_data): Likewise.
41696         (exp_towardzero_test_data): Likewise.
41697         (exp_downward_test_data): Likewise.
41698         (exp_upward_test_data): Likewise.
41699         (exp10_test_data): Likewise.
41700         (exp2_test_data): Likewise.
41701         (expm1_test_data): Likewise.
41702         (j0_test_data): Likewise.
41703         (j1_test_data): Likewise.
41704         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41705         (input_flag_type): Add flag_xfail_rounding.
41706         (input_flags): Add xfail-rounding.
41707         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41708         (output_for_one_input_case): Handle flag_xfail_rounding.
41709         * sysdeps/i386/fpu/libm-test-ulps: Update.
41710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41711
41712 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41713
41714         [BZ #16289]
41715         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41716         division by 0.
41717
41718 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41719
41720         [BZ #16195]
41721         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41722         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41723         (STAP_PROBE0): New macro.
41724         (STAP_PROBE1): Likewise.
41725         (STAP_PROBE2): Likewise.
41726         (STAP_PROBE3): Likewise.
41727         (STAP_PROBE4): Likewise.
41728
41729 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41730
41731         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41732
41733 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41734
41735         * benchtests/Makefile (bench): Add sqrt.
41736         (LDLIBS-bench-sqrt): New.
41737         * benchtests/sqrt-input: New.
41738
41739 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41740
41741         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41742         (GAIH_EAI): Likewise.
41743         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41744         (gaih_inet): Likewise.
41745         (getaddrinfo): Don't use GAIH_EAI.
41746
41747         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41748         (struct gaih): Remove definition.
41749
41750 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41751
41752         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41753         Use HERRNOP directly.
41754
41755 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41756
41757         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41758
41759 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41760
41761         * math/gen-auto-libm-tests.c (test_functions): Add more
41762         single-argument functions.
41763         (special_fill_pi_2): New function.
41764         (special_fill_minus_pi_2): Likewise.
41765         (special_fill_pi_6): Likewise.
41766         (special_fill_minus_pi_6): Likewise.
41767         (special_fill_pi_3): Likewise.
41768         (special_fill_2pi_3): Likewise.
41769         (special_fill_e): Likewise.
41770         (special_fill_1_e): Likewise.
41771         (special_fill_e_minus_1): Likewise.
41772         (special_real_inputs): Add more special inputs.
41773         (output_for_one_input_case): Do not require ERANGE on underflow to
41774         zero if round-to-nearest result does not underflow to zero, unless
41775         exact results required.
41776         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41777         atan, atanh, cbrt, cos and cosh.
41778         * math/auto-libm-test-out: Regenerated.
41779         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41780         (acos_tonearest_test_data): Likewise.
41781         (acos_towardzero_test_data): Likewise.
41782         (acos_downward_test_data): Likewise.
41783         (acos_upward_test_data): Likewise.
41784         (acosh_test_data): Likewise.
41785         (asin_test_data): Likewise.
41786         (asin_tonearest_test_data): Likewise.
41787         (asin_towardzero_test_data): Likewise.
41788         (asin_upward_test_data): Likewise.
41789         (asinh_test_data): Likewise.
41790         (atan_test_data): Likewise.
41791         (atanh_test_data): Likewise.
41792         (cbrt_test_data): Likewise.
41793         (cos_test_data): Likewise.
41794         (cos_tonearest_test_data): Likewise.
41795         (cos_towardzero_test_data): Likewise.
41796         (cos_downward_test_data): Likewise.
41797         (cos_upward_test_data): Likewise.
41798         (cosh_test_data): Likewise.
41799         (cosh_tonearest_test_data): Likewise.
41800         (cosh_towardzero_test_data): Likewise.
41801         (cosh_downward_test_data): Likewise.
41802         (cosh_upward_test_data): Likewise.
41803         * sysdeps/i386/fpu/libm-test-ulps: Update.
41804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41805
41806 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41807
41808         [BZ #6787]
41809         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41810         * math/w_exp10f.c (__exp10f): Likewise.
41811         * math/w_exp10l.c (__exp10l): Likewise.
41812         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41813         errno settings in existing tests.
41814
41815         [BZ #14032]
41816         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41817         precision control set to double precision.
41818         * sysdeps/i386/fpu/w_sqrt.c: New file.
41819         * math/auto-libm-test-in: Add more tests.
41820         * math/auto-libm-test-out: Update.
41821
41822         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41823         (sqrt_test_tonearest): New function.
41824         (sqrt_towardzero_test_data): New variable.
41825         (sqrt_test_towardzero): New function.
41826         (sqrt_downward_test_data): New variable.
41827         (sqrt_test_downward): New function.
41828         (sqrt_upward_test_data): New variable.
41829         (sqrt_test_upward): New function.
41830         (main): Call the new functions.
41831
41832         * math/gen-auto-libm-tests.c: New file.
41833         * math/auto-libm-test-in: Likewise.
41834         * math/auto-libm-test-out: New generated file.
41835         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41836         variables.
41837         (%beautify): Add generated representations of zero.
41838         (top level): Set $auto_input and call parse_auto_input.
41839         (beautify): Remove trailing "f" from hex float constants.
41840         (parse_args): Handle XFAIL_TEST.
41841         (convert_condition): New function.
41842         (or_value): Likewise.
41843         (or_cond_value): Likewise.
41844         (generate_testfile): Handle AUTO_TESTS_* lines.
41845         (parse_auto_input): New function.
41846         * math/libm-test.inc (XFAIL_TEST): New macro.
41847         (ERRNO_UNCHANGED): Update value.
41848         (ERRNO_EDOM): Likewise.
41849         (ERRNO_ERANGE): Likewise.
41850         (IGNORE_RESULT): Likewise.
41851         (TEST_COND_flt_32): New macro.
41852         (TEST_COND_dbl_64): Likewise.
41853         (TEST_COND_ldbl_96_intel): Likewise.
41854         (TEST_COND_ldbl_96_m68k): Likewise.
41855         (TEST_COND_ldbl_128): Likewise.
41856         (TEST_COND_ldbl_128ibm): Likewise.
41857         (TEST_COND_long32): Likewise.
41858         (TEST_COND_long64): Likewise.
41859         (TEST_COND_before_rounding): Likewise.
41860         (TEST_COND_after_rounding): Likewise.
41861         (enable_test): Handle XFAIL_TEST flag.
41862         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41863         with finite results.
41864         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41865         auto-libm-test-out.
41866
41867 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41868             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41869
41870         [BZ #16214]
41871         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41872         __tls_get_addr_internal instead of __tls_get_offset in order to
41873         avoid GOT pointer dependency.  Make rtld export
41874         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41875         __tls_get_addr since we are a __tls_get_offset platform.
41876         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41877         GOT pointer being set up before.
41878         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41879
41880 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41881
41882         * manual/math.texi (Errors in Math Functions): Document accuracy
41883         goals.
41884
41885         [BZ #15004]
41886         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41887         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41888         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41889         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41890         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41891         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41892         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41893         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41894         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41895         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41896         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41897         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41898         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41899         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41900         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41901         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41902
41903         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41904         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41905         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41906         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41907         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41908         Likewise.
41909         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41910         Likewise.
41911         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41912         Likewise.
41913         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41914         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41915         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41916         atomic-feupdateenv and flt-rounds.
41917         * sysdeps/powerpc/nofpu/Versions (libc): Add
41918         __atomic_feholdexcept, __atomic_feclearexcept,
41919         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41920         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41921         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41922         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41923         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41924         here.
41925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41926         Update.
41927
41928         * manual/arith.texi (FP Exceptions): Document that exceptions may
41929         not be raised when matherr is used.
41930         (Math Error Reporting): Document overflow in directed rounding
41931         modes.  Document that errno may not be set when finite values are
41932         returned on overflow.  Document intent to set errno on underflow
41933         only for underflow to zero.
41934
41935         [BZ #16271]
41936         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41937         round-to-nearest then adjust result for other rounding modes.
41938         * include/fenv.h (fegetround): Use libm_hidden_proto.
41939         * math/fegetround.c (fegetround): Use libm_hidden_def.
41940         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41941         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41942         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41943         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41944         Likewise.
41945         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41946         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41947         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41948         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41949
41950 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41951
41952         [BZ #16077]
41953         * nss/Versions (libnss_files): Add
41954         _nss_files_gethostbyname3_r.
41955         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41956         New function.
41957         (HOST_DB_LOOKUP): Remove macro.
41958         (_nss_files_gethostbyname_r): Implement function without the
41959         HOST_DB_LOOKUP macro.
41960         (_nss_files_gethostbyname2_r): Likewise.
41961
41962 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41963
41964         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41965
41966 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41967
41968         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41969         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41970         warning.
41971
41972 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41973
41974         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41975         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41976         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41977         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41978         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41979         __fe_nomask_env_priv and attribute_hidden.
41980         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41981         (libc_feupdateenv_test_ppc): Likewise.
41982         (libc_feresetround_ppc): Likewise.
41983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41984         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41985         compat_symbol macro.
41986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41987         (__fe_nomask_env): Likewise.
41988         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41989
41990 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41991
41992         * string/Makefile: Remove ifunc tests.
41993         * string/test-string.h: Define TEST_IFUNC.
41994         * string/test-bcopy-ifunc.c: Remove.
41995         * string/test-bzero-ifunc.c: Likewise.
41996         * string/test-memccpy-ifunc.c: Likewise.
41997         * string/test-memchr-ifunc.c: Likewise.
41998         * string/test-memcmp-ifunc.c: Likewise.
41999         * string/test-memcpy-ifunc.c: Likewise.
42000         * string/test-memmem-ifunc.c: Likewise.
42001         * string/test-memmove-ifunc.c: Likewise.
42002         * string/test-mempcpy-ifunc.c: Likewise.
42003         * string/test-memrchr-ifunc.c: Likewise.
42004         * string/test-memset-ifunc.c: Likewise.
42005         * string/test-rawmemchr-ifunc.c: Likewise.
42006         * string/test-stpcpy-ifunc.c: Likewise.
42007         * string/test-stpncpy-ifunc.c: Likewise.
42008         * string/test-strcasecmp-ifunc.c: Likewise.
42009         * string/test-strcasestr-ifunc.c: Likewise.
42010         * string/test-strcat-ifunc.c: Likewise.
42011         * string/test-strchr-ifunc.c: Likewise.
42012         * string/test-strchrnul-ifunc.c: Likewise.
42013         * string/test-strcmp-ifunc.c: Likewise.
42014         * string/test-strcpy-ifunc.c: Likewise.
42015         * string/test-strcspn-ifunc.c: Likewise.
42016         * string/test-strlen-ifunc.c: Likewise.
42017         * string/test-strncasecmp-ifunc.c: Likewise.
42018         * string/test-strncat-ifunc.c: Likewise.
42019         * string/test-strncmp-ifunc.c: Likewise.
42020         * string/test-strncpy-ifunc.c: Likewise.
42021         * string/test-strnlen-ifunc.c: Likewise.
42022         * string/test-strpbrk-ifunc.c: Likewise.
42023         * string/test-strrchr-ifunc.c: Likewise.
42024         * string/test-strspn-ifunc.c: Likewise.
42025         * string/test-strstr-ifunc.c: Likewise.
42026
42027 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42028
42029         * benchtests/Makefile: Remove ifunc tests.
42030         * benchtests/bench-string.h: Define TEST_IFUNC.
42031         * benchtests/bench-bcopy-ifunc.c: Remove.
42032         * benchtests/bench-bzero-ifunc.c: Likewise.
42033         * benchtests/bench-memccpy-ifunc.c: Likewise.
42034         * benchtests/bench-memchr-ifunc.c: Likewise.
42035         * benchtests/bench-memcmp-ifunc.c: Likewise.
42036         * benchtests/bench-memcpy-ifunc.c: Likewise.
42037         * benchtests/bench-memmem-ifunc.c: Likewise.
42038         * benchtests/bench-memmove-ifunc.c: Likewise.
42039         * benchtests/bench-mempcpy-ifunc.c: Likewise.
42040         * benchtests/bench-memrchr-ifunc.c: Likewise.
42041         * benchtests/bench-memset-ifunc.c: Likewise.
42042         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
42043         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
42044         * benchtests/bench-stpcpy-ifunc.c: Likewise.
42045         * benchtests/bench-stpncpy-ifunc.c: Likewise.
42046         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
42047         * benchtests/bench-strcasestr-ifunc.c: Likewise.
42048         * benchtests/bench-strcat-ifunc.c: Likewise.
42049         * benchtests/bench-strchr-ifunc.c: Likewise.
42050         * benchtests/bench-strchrnul-ifunc.c: Likewise.
42051         * benchtests/bench-strcmp-ifunc.c: Likewise.
42052         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
42053         * benchtests/bench-strcpy-ifunc.c: Likewise.
42054         * benchtests/bench-strcspn-ifunc.c: Likewise.
42055         * benchtests/bench-strlen-ifunc.c: Likewise.
42056         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
42057         * benchtests/bench-strncat-ifunc.c: Likewise.
42058         * benchtests/bench-strncmp-ifunc.c: Likewise.
42059         * benchtests/bench-strncpy-ifunc.c: Likewise.
42060         * benchtests/bench-strnlen-ifunc.c: Likewise.
42061         * benchtests/bench-strpbrk-ifunc.c: Likewise.
42062         * benchtests/bench-strrchr-ifunc.c: Likewise.
42063         * benchtests/bench-strsep-ifunc.c: Likewise.
42064         * benchtests/bench-strspn-ifunc.c: Likewise.
42065         * benchtests/bench-strstr-ifunc.c: Likewise.
42066
42067 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42068
42069         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
42070
42071 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42072
42073         * resolv/netdb.h: Use __glibc_reserved instead __unused.
42074         * rt/aio.h: Likewise.
42075         * sysdeps/gnu/bits/utmp.h: Likewise.
42076         * sysdeps/gnu/bits/utmpx.h: Likewise.
42077         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
42078         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
42079         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
42080         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
42081         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
42082         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
42083         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
42084         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
42085         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
42086         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
42087         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
42088         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
42089         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
42091         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
42092         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
42093         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
42094         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
42095         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
42096         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
42097         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
42098         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
42099         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
42100         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
42101         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
42102         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42103         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
42104         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
42105         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
42106         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
42107         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
42108         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
42109         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
42110         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42111         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
42112         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
42113         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
42114         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
42115         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
42116         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
42117         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
42118         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
42119
42120 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
42121
42122         [BZ #16245]
42123         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
42124         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42125
42126 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42127
42128         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42129         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42130         Likewise.
42131
42132 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42133
42134         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42135         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42136         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42137         (__fesetround): Remove define.
42138         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42139         rounding and exceptions handling.
42140         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42141         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42142         (__fe_nomask_env): Likewise.
42143         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42144         __fegetround instead of fegetround.
42145         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42146         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42147
42148 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42149
42150         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42151         it's there.
42152
42153         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42154
42155 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42156
42157         [BZ #11157]
42158         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42159         (encrypt_r): Likewise.
42160         * malloc/obstack.h (obstack_free): Likewise.
42161         * posix/unistd.h (encrypt): Likewise.
42162
42163 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42164
42165         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42166         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42167         DL_CALL_DT_FINI() that call the functions directly.
42168         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42169         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42170         * elf/dl-fini.c: Likewise.
42171
42172 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42173
42174         * malloc/hooks.c (memalign_check): Add alignment rounding.
42175         * malloc/malloc.c (_mid_memalign): New function.
42176         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42177         Implement by calling _mid_memalign.
42178         * manual/probes.texi (Memory Allocation Probes): Remove
42179         memory_valloc_retry and memory_pvalloc_retry.
42180
42181 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42182
42183         * locale/programs/locarchive.c (open_archive): Add const
42184         qualifier to ARCHIVEFNAME and copy default fname to
42185         DEFAULT_FNAME.
42186
42187         [BZ #15601]
42188         * libio/tst-widetext.input: Rename Oriya to Odia.
42189         * locale/iso-639.def: Likewise.
42190
42191         * manual/probes.texi (Mathematical Function Probes): Add
42192         documentation for sin, cos, asin and acos probes.
42193         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42194         (__sin32): Add slowasin probe.
42195         (__cos32): Add slowacos probe.
42196         (__mpsin): Add slowsin probe.
42197         (__mpcos): Add slowcos probe.
42198
42199 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42200
42201         [BZ #15483]
42202         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42203         thread-local __sim_exceptions_thread and global
42204         __sim_exceptions_global.
42205         (__sim_disabled_exceptions): Change to thread-local
42206         __sim_disabled_exceptions_thread and global
42207         __sim_disabled_exceptions_global.
42208         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42209         and global __sim_round_mode_global.
42210         (__simulate_exceptions): Use thread-local floating-point state and
42211         set global state from it as needed.
42212         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42213         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42214         __sim_round_mode_thread.
42215         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42216         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42217         and global __sim_exceptions_global.
42218         (__sim_disabled_exceptions): Change to thread-local
42219         __sim_disabled_exceptions_thread and global
42220         __sim_disabled_exceptions_global.
42221         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42222         and global __sim_round_mode_global.
42223         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42224         (SIM_SET_GLOBAL): Likewise.
42225         * sysdeps/powerpc/soft-fp/sfp-machine.h
42226         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42227         __sim_round_mode_thread.
42228         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42229         __sim_disabled_exceptions_thread.
42230         (__sim_exceptions): Change to __sim_exceptions_thread.
42231         (__sim_disabled_exceptions): Change to
42232         __sim_disabled_exceptions_thread.
42233         (__sim_round_mode): Change to __sim_round_mode_thread.
42234         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42235         thread-local floating-point state and set global state from it as
42236         needed.
42237         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42238         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42239         (__sim_disabled_exceptions): Remove extern declaration.
42240         (feenableexcept): Use thread-local floating-point state and set
42241         global state from it as needed.
42242         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42243         extern declaration.
42244         (__sim_disabled_exceptions): Likewise.
42245         (__sim_round_mode): Likewise.
42246         (__fegetenv): Use thread-local floating-point state.
42247         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42248         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42249         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42250         floating-point state and set global state from it as needed.
42251         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42252         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42253         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42254         Likewise.
42255         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42256         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42257         Likewise.
42258         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42259         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42260         Use __sim_round_mode_thread.
42261         * math/test-fenv-tls.c: New file.
42262         * math/Makefile (tests): Add test-fenv-tls.
42263         ($(objpfx)test-fenv-tls): Depend on
42264         $(common-objpfx)nptl/libpthread.so.
42265
42266 2013-11-19  Andreas Schwab  <schwab@suse.de>
42267
42268         * locale/programs/locale.c (show_info): Decode wordarray elements.
42269         * locale/categories.def (LC_MONETARY): Add element for
42270         _NL_MONETARY_CRNCYSTR.
42271         * locale/C-monetary.c (conversion_rate): New variable.
42272         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42273         element.
42274
42275 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42276
42277         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42278         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42279
42280 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42281
42282         * elf/Makefile (tst-auxv): New test.
42283         * elf/tst-auxv.c: New
42284         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42285
42286 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42287
42288         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42289         (hidden_proto): Caller changed.
42290         (hidden_tls_proto): New macro.
42291         (libc_hidden_tls_proto): Likewise.
42292         (rtld_hidden_tls_proto): Likewise.
42293         (libm_hidden_tls_proto): Likewise.
42294         (libresolv_hidden_tls_proto): Likewise.
42295         (librt_hidden_tls_proto): Likewise.
42296         (libdl_hidden_tls_proto): Likewise.
42297         (libnss_files_hidden_tls_proto): Likewise.
42298         (libnsl_hidden_tls_proto): Likewise.
42299         (libnss_nisplus_hidden_tls_proto): Likewise.
42300         (libutil_hidden_tls_proto): Likewise.
42301
42302 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42303
42304         [BZ #10253]
42305         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42306         (decompose_rpath): Defer expansion to fillin_rpath.
42307         (_dl_init_paths): Pass linkmap to fillin_rpath.
42308
42309 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42310
42311         * benchtests/Makefile: Add strsep.
42312         * benchtests/bench-strsep.c: New file: strsep benchtest.
42313         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42314
42315 2013-11-18  Andreas Schwab  <schwab@suse.de>
42316
42317         * locale/programs/locale.c (show_info) [case byte]: Check for
42318         '\377' instead of '\177'.
42319         * locale/C-monetary.c (not_available): Always use "\377".
42320         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42321         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42322         detect unavailable sign_posn locale elements.
42323         * locale/localeconv.c (__localeconv): For grouping and
42324         mon_grouping handle "\177" and "\377" like no grouping.
42325         (INT_ELEM): New macro.  Use it to set all numeric members.
42326         * locale/programs/ld-monetary.c (monetary_read)
42327         <tok_mon_grouping>: Normalize single -1 to the empty string.
42328         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42329         Likewise.
42330
42331 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42332
42333         [BZ #16055]
42334         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42335         when we match (nil).
42336         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42337
42338 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42339
42340         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42341         (NO_TEST_INLINE): Update value.
42342         (ERRNO_UNCHANGED): Likewise.
42343         (ERRNO_EDOM): Likewise.
42344         (ERRNO_ERANGE): Likewise.
42345         (IGNORE_RESULT): Likewise.
42346         (check_float_internal): Check signs of NaN results if
42347         TEST_NAN_SIGN used.
42348         (check_complex): Pass TEST_NAN_SIGN flag through to second
42349         check_float_internal call.
42350         (copysign_test_data): Add tests with quiet NaNs as second
42351         argument.  Use TEST_NAN_SIGN.
42352         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42353         TEST_NAN_SIGN.
42354         (signbit_test_data): Add tests of quiet NaN argument.
42355         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42356
42357         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42358         $ignore_result.
42359         (parse_args): Handle function results specified as IGNORE.
42360         * math/libm-test.inc (IGNORE_RESULT): New macro.
42361         (check_float_internal): Do not check numerical result if flag
42362         IGNORE_RESULT set.
42363         (check_complex): Pass through IGNORE_RESULT to second
42364         check_float_internal call.
42365         (check_int): Do not check numerical result if flag IGNORE_RESULT
42366         set.
42367         (check_long): Likewise.
42368         (check_bool): Likewise.
42369         (check_longlong): Likewise.
42370         (lrint_test_data): Add tests of infinite and NaN arguments.
42371         (lrint_tonearest_test_data): Likewise.
42372         (lrint_towardzero_test_data): Likewise.
42373         (lrint_downward_test_data): Likewise.
42374         (lrint_upward_test_data): Likewise.
42375         (llrint_test_data): Likewise.
42376         (llrint_tonearest_test_data): Likewise.
42377         (llrint_towardzero_test_data): Likewise.
42378         (llrint_downward_test_data): Likewise.
42379         (llrint_upward_test_data): Likewise.
42380         (lround_test_data): Likewise.
42381         (llround_test_data): Likewise.
42382
42383         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42384         (ERRNO_UNCHANGED): Update value.
42385         (ERRNO_EDOM): Likewise.
42386         (ERRNO_ERANGE): Likewise.
42387         (NO_TEST_INLINE_FLOAT): New macro.
42388         (NO_TEST_INLINE_DOUBLE): Likewise.
42389         (enable_test): New function.
42390         (RUN_TEST_f_f): Check enable_test before running test.
42391         (RUN_TEST_2_f): Likewise.
42392         (RUN_TEST_fff_f): Likewise.
42393         (RUN_TEST_c_f): Likewise.
42394         (RUN_TEST_f_f1): Likewise.
42395         (RUN_TEST_fF_f1): Likewise.
42396         (RUN_TEST_fI_f1): Likewise.
42397         (RUN_TEST_ffI_f1): Likewise.
42398         (RUN_TEST_c_c): Likewise.
42399         (RUN_TEST_cc_c): Likewise.
42400         (RUN_TEST_f_i): Likewise.
42401         (RUN_TEST_f_i_tg): Likewise.
42402         (RUN_TEST_ff_i_tg): Likewise.
42403         (RUN_TEST_f_b): Likewise.
42404         (RUN_TEST_f_b_tg): Likewise.
42405         (RUN_TEST_f_l): Likewise.
42406         (RUN_TEST_f_L): Likewise.
42407         (RUN_TEST_fFF_11): Likewise.
42408         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42409         conditionals.
42410         (cosh_test_data): Likewise.
42411         (exp_test_data): Likewise.
42412         (expm1_test_data): Likewise.
42413         (hypot_test_data): Likewise.
42414         (pow_test_data): Likewise.
42415         (sinh_test_data): Likewise.
42416         (tanh_test_data): Likewise.
42417         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42418         flags argument.
42419
42420         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42421         tests with quiet NaN input and output.
42422         (acosh_test_data): Likewise.
42423         (asin_test_data): Likewise.
42424         (asinh_test_data): Likewise.
42425         (atan_test_data): Likewise.
42426         (atanh_test_data): Likewise.
42427         (atan2_test_data): Likewise.
42428         (cbrt_test_data): Likewise.
42429         (cos_test_data): Likewise.
42430         (cosh_test_data): Likewise.
42431         (erf_test_data): Likewise.
42432         (erfc_test_data): Likewise.
42433         (exp_test_data): Likewise.
42434         (exp10_test_data): Likewise.
42435         (exp2_test_data): Likewise.
42436         (expm1_test_data): Likewise.
42437         (hypot_test_data): Likewise.
42438         (j0_test_data): Likewise.
42439         (j1_test_data): Likewise.
42440         (jn_test_data): Likewise.
42441         (lgamma_test_data): Likewise.
42442         (log_test_data): Likewise.
42443         (log10_test_data): Likewise.
42444         (log1p_test_data): Likewise.
42445         (log2_test_data): Likewise.
42446         (pow_test_data): Likewise.
42447         (scalb_test_data): Likewise.
42448         (sin_test_data): Likewise.
42449         (sincos_test_data): Likewise.
42450         (sinh_test_data): Likewise.
42451         (tan_test_data): Likewise.
42452         (tanh_test_data): Likewise.
42453         (tgamma_test_data): Likewise.
42454         (y0_test_data): Likewise.
42455         (y1_test_data): Likewise.
42456         (yn_test_data): Likewise.
42457
42458         [BZ #16167]
42459         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42460         argument being NaN and avoid computations with second argument in
42461         that case.
42462         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42463         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42464         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42465
42466 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42467
42468         * locale/iso-639.def: Add Chitwani Tharu (the).
42469
42470 2013-11-14  Andreas Schwab  <schwab@suse.de>
42471
42472         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42473         word instead of empty string.
42474
42475 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42476
42477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42478         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42480         (__fe_nomask_env): Likewise.
42481
42482 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42483
42484         * benchtests/bench-timing.h: Include time.h.
42485
42486 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42487
42488         [BZ #15997]
42489         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42490         to 3.4.0 for x32.
42491         * sysdeps/unix/sysv/linux/configure: Regenerated.
42492
42493 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42494
42495         [BZ #16151]
42496         * stdlib/strtod_l.c (round_and_return): Do not consider
42497         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42498         exponent one less than half the least subnormal exponent.
42499         * stdlib/test-strtod-round-data: Add more tests.
42500         * stdlib/tst-strtod-round.c (tests): Regenerated.
42501
42502 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42503
42504         [BZ #14143]
42505         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42506         (__fe_mask_env): Likewise.
42507         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42508         libm_hidden_proto and add function prototype.
42509         (__fe_mask_env): Add function prototype.
42510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42511         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42513         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42515         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42516
42517 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42518
42519         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42520         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42521
42522 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42523
42524         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42525         of htab_find_slot().
42526
42527 2013-11-11  David S. Miller  <davem@davemloft.net>
42528
42529         [BZ #16150]
42530         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42531         symbol in the non-vis3 case in static builds.
42532         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42533         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42534         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42535         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42536
42537 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42538
42539         [BZ #387]
42540         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42541         it is empty.
42542
42543 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42544
42545         * benchtests/Makefile: Add bench-strtod.
42546         * benchtests/bench-strtod.c: New file: strtod benchtest
42547
42548 2013-11-11  Andreas Schwab  <schwab@suse.de>
42549
42550         [BZ #16153]
42551         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42552         terminating NUL in key length.
42553
42554 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42555
42556         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42557         Add artificial ODP entry for vDSO symbol for PPC64.
42558         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42559         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42560
42561 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42562
42563         [BZ #15374]
42564         * nss/getent.c (services_keys): Recognize services starting with digit.
42565
42566 2013-11-06  David S. Miller  <davem@davemloft.net>
42567
42568         [BZ #15985]
42569         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42570         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42571
42572 2013-11-06  Will Newton  <will.newton@linaro.org>
42573
42574         * manual/memory.texi (Malloc Examples): Remove register
42575         keyword from examples.
42576
42577 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42578
42579         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42580
42581 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42582
42583         [BZ #6981]
42584         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42585         depending on [__GCC_IEC_559 > 0].
42586         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42587         depending on [__GCC_IEC_559_COMPLEX > 0].
42588
42589 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42590
42591         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42592         to iso-639.def.
42593
42594 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42595
42596         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42597
42598 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42599
42600         [BZ #16112]
42601         * malloc/malloc (malloc_info): Do not handle first bin as
42602         special case.
42603
42604 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42605
42606         * locale/iso-639.def: Add Central Nahuatl (nhn).
42607
42608 2013-11-01  Bruno Haible  <bruno@clisp.org>
42609
42610         [BZ #7003]
42611         * manual/math.texi (BSD Random): Specify range upper bound as
42612         in POSIX.
42613
42614 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42615
42616         * locale/iso-639.def: Add Meadow Mari (mhr).
42617
42618 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42619
42620         [BZ #14752], [BZ #15763]
42621         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42622         Validate name.
42623         * rt/tst_shm.c: Add test for escaping directory.
42624
42625 2013-10-31  Andreas Schwab  <schwab@suse.de>
42626
42627         [BZ #15917]
42628         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42629         followed by 'x' as part of digit sequence.
42630         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42631
42632 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42633
42634         [BZ #16037]
42635         * configure.ac: allow GNU Make 4.0 and greater.
42636         * configure: Regenerated.
42637
42638 2013-10-30  Will Newton  <will.newton@linaro.org>
42639
42640         [BZ #16038]
42641         * malloc/hooks.c (memalign_check): Limit alignment to the
42642         maximum representable power of two.
42643         * malloc/malloc.c (__libc_memalign): Likewise.
42644         * malloc/tst-memalign.c (do_test): Add test for very
42645         large alignment values.
42646         * malloc/tst-posix_memalign.c (do_test): Likewise.
42647
42648 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42649
42650         [BZ #11087]
42651         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42652         (munmap_chunk): Likewise.
42653         (mremap_chunk): Likewise.
42654
42655 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42656
42657         [BZ #15799]
42658         * stdlib/div.c (div): Remove obsolete code.
42659         * stdlib/ldiv.c (ldiv): Likewise.
42660         * stdlib/lldiv.c (lldiv): Likewise.
42661
42662 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42663
42664         [BZ #16071]
42665         * nss/nss_files/files-XXX.c (get_contents_ret): New
42666         enumerator.
42667         (get_contents): New function.
42668         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42669
42670 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42671
42672         * configure.in: Moved to ...
42673         * configure.ac: ... here. Change reference to configure.in
42674         to configure.ac.
42675         * sysdeps/arm/preconfigure.ac: ... here.
42676         configure.in to configure.ac.
42677         * sysdeps/gnu/configure.in: Moved to ...
42678         * sysdeps/gnu/configure.ac: ... here.
42679         * sysdeps/i386/configure.in: Moved to ...
42680         * sysdeps/i386/configure.ac: ... here.
42681         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42682         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42683         * sysdeps/mach/configure.in: Moved to ...
42684         * sysdeps/mach/configure.ac: ... here.
42685         * sysdeps/mach/hurd/configure.in: Moved to ...
42686         * sysdeps/mach/hurd/configure.ac: ... here.
42687         * sysdeps/powerpc/configure.in: Moved to ...
42688         * sysdeps/powerpc/configure.ac: ... here.
42689         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42690         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42691         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42692         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42693         * sysdeps/s390/s390-32/configure.in: Moved to ...
42694         * sysdeps/s390/s390-32/configure.ac: ... here.
42695         * sysdeps/s390/s390-64/configure.in: Moved to ...
42696         * sysdeps/s390/s390-64/configure.ac: ... here.
42697         * sysdeps/sh/configure.in: Moved to ...
42698         * sysdeps/sh/configure.ac: ... here.
42699         * sysdeps/sparc/configure.in: Moved to ...
42700         * sysdeps/sparc/configure.ac: ... here.
42701         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42702         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42703         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42704         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42705         * sysdeps/x86_64/configure.in: Moved to ...
42706         * sysdeps/x86_64/configure.ac: ... here.
42707         * sysdeps/x86_64/preconfigure.in: Moved to ...
42708         * sysdeps/x86_64/preconfigure.ac: ... here.
42709         * aclocal.m4: Change reference to configure.in to configure.ac.
42710         * config.h.in: Likewise.
42711         * manual/install.texi: Likewise.
42712         * manual/maint.texi: Likewise.
42713         * Makefile: Likewise.
42714         * malloc/Makefile: Likewise.
42715         * nscd/Makefile: Likewise.
42716         * Makeconfig: Change reference to configure.in and
42717         preconfigure.in to configure.ac and preconfigure.ac
42718         respectively.
42719         * INSTALL: Regenerated.
42720         * configure: Likewise.
42721         * sysdeps/gnu/configure: Likewise.
42722         * sysdeps/i386/configure: Likewise.
42723         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42724         * sysdeps/mach/configure: Likewise.
42725         * sysdeps/mach/hurd/configure: Likewise.
42726         * sysdeps/powerpc/configure: Likewise.
42727         * sysdeps/powerpc/powerpc32/configure: Likewise.
42728         * sysdeps/powerpc/powerpc64/configure: Likewise.
42729         * sysdeps/s390/s390-32/configure: Likewise.
42730         * sysdeps/s390/s390-64/configure: Likewise.
42731         * sysdeps/sh/configure: Likewise.
42732         * sysdeps/sparc/configure: Likewise.
42733         * sysdeps/unix/sysv/linux/configure: Likewise.
42734         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42735         * sysdeps/x86_64/configure: Likewise.
42736         * sysdeps/x86_64/preconfigure: Likewise.
42737
42738 2013-10-29  Andreas Schwab  <schwab@suse.de>
42739
42740         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42741
42742 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42743
42744         * benchtests/pow-inputs: Add new inputs.
42745
42746         * benchtests/exp-inputs: Add new inputs.
42747
42748         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42749         conditional check for return value.
42750         (__cos32): Likewise.
42751
42752 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42753
42754         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42755         to provide a boost for large inputs with word alignment.
42756         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42757         implementation based on optimized PPC64 strcpy.
42758         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42759         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42760         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42761         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42762
42763 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42764
42765         [BZ #2801]
42766         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42767
42768 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42769
42770         [BZ #14876]
42771         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42772         * time/tst-strptime.c (day_tests): Add testcase.
42773
42774 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42775
42776         [BZ #14029]
42777         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42778
42779 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42780
42781         [BZ #16074]
42782         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42783         MAP_FAILED on error.
42784
42785 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42786
42787         [BZ #16072]
42788         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42789         heap for large requests.
42790
42791 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42792
42793         [BZ #9954]
42794         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42795         result if the result has no associated interface.
42796         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42797         interface for all 127.X.Y.Z addresses.
42798
42799 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42800
42801         * locale/iso-639.def: Add Ligurian (lij)
42802
42803 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42804
42805         [BZ #15825]
42806         * sunrpc/rpc_main.c: Document rpcgen -5.
42807
42808 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42809
42810         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42811
42812 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42813
42814         [BZ #10278]
42815         * posix/glob.c: Match only directories when trailing slash is present.
42816         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42817         (main): Add testcase.
42818
42819 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42820
42821         [BZ #15670]
42822         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42823
42824 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42825
42826         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42827         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42828         AUTH_DES and cindex for FIPS 140-2.
42829         (DES Encryption): Add cindex FIPS 46-3.
42830
42831         * locale/locarchive.h (struct locarhandle): Add fname.
42832         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42833         if an optional argument was specified to --list-archive,
42834         otherwise NULL.
42835         * locale/programs/locarchive.c (show_archive_content): Take new
42836         argument fname and pass it via ah.fname to open_archive.
42837         * locale/programs/localedef.h: Update decl.
42838         (open_archive): If AH->fname is non-null, open that file
42839         rather than the default file name, and don't ignore ENOENT.
42840         (create_archive): Set AH.fname to NULL.
42841         (delete_locales_from_archive): Likewise.
42842         (add_locales_to_archive): Likewise.
42843         * locale/programs/locfile.c (write_all_categories): Likewise.
42844
42845 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42846             Aldy Hernandez  <aldyh@redhat.com>
42847
42848         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42849         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42850         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42851         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42852         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42853         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42854         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42855         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42856         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42857         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42858         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42859         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42860         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42861         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42862         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42863         Likewise.
42864         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42865         Likewise.
42866         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42867         Likewise.
42868         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42869         Likewise.
42870         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42871         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42872         Likewise.
42873         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42874         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42875         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42876         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42877         Likewise.
42878         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42879         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42880         * sysdeps/powerpc/preconfigure: Likewise.
42881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42882         Likewise.
42883         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42884         Replace contents of file by #include of <fenv_libc.h>.
42885         * sysdeps/powerpc/soft-fp/sfp-machine.h
42886         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42887         and <sys/prctl.h>.
42888         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42889         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42890         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42891         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42892         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42893         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42894         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42895         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42896         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42897         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42898         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42899         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42901         Allow copysignl PLT reference to be missing.
42902
42903 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42904             Joseph Myers  <joseph@codesourcery.com
42905
42906         [BZ #15948]
42907         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42908         single character.
42909         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42910
42911 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42912
42913         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42914         * elf/tst-tls1.c: Likewise.
42915         * elf/tst-tls10.h: Likewise.
42916         * elf/tst-tls14.c: Likewise.
42917         * elf/tst-tls2.c: Likewise.
42918         * elf/tst-tls3.c: Likewise.
42919         * elf/tst-tls4.c: Likewise.
42920         * elf/tst-tls5.c: Likewise.
42921         * elf/tst-tls6.c: Likewise.
42922         * elf/tst-tls7.c: Likewise.
42923         * elf/tst-tls8.c: Likewise.
42924         * elf/tst-tls9.c: Likewise.
42925         * elf/tst-tlsmod1.c: Likewise.
42926         * elf/tst-tlsmod13.c: Likewise.
42927         * elf/tst-tlsmod13a.c: Likewise.
42928         * elf/tst-tlsmod14a.c: Likewise.
42929         * elf/tst-tlsmod16a.c: Likewise.
42930         * elf/tst-tlsmod16b.c: Likewise.
42931         * elf/tst-tlsmod2.c: Likewise.
42932         * elf/tst-tlsmod3.c: Likewise.
42933         * elf/tst-tlsmod4.c: Likewise.
42934         * elf/tst-tlsmod5.c: Likewise.
42935         * elf/tst-tlsmod6.c: Likewise.
42936
42937 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42938
42939         [BZ #12486]
42940         * malloc/malloc.c: remove checks for statistics.
42941
42942 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42943
42944         [BZ #15277]
42945         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42946         * inet/tst-network.c: Add testcase.
42947
42948 2013-10-17  Andreas Schwab  <schwab@suse.de>
42949
42950         [BZ #15218]
42951         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42952         to determine canonical name.
42953
42954 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42955
42956         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42957         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42958         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42959         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42960         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42961         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42962         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42963         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42964         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42965         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42966         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42967         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42968         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42969         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42970         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42971         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42972         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42973         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42974         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42975         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42976         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42977         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42978         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42979         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42980         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42981         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42982         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42983         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42984         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42985         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42986         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42987         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42988         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42989         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42990         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42991         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42992         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42993         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42994         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42995         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42996         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42997         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42998         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42999         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
43000         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
43001         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43002         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
43003         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
43004         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
43005         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
43006         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
43007         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
43008         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
43009         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
43010         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43011         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
43012         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
43013         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
43014
43015 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
43016
43017         [BZ #16041]
43018         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
43019         make result into a quiet NaN.
43020
43021 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
43022
43023         * soft-fp/adddf3.c: Fix horizontal whitespace.
43024         * soft-fp/addsf3.c: Likewise.
43025         * soft-fp/addtf3.c: Likewise.
43026         * soft-fp/divdf3.c: Likewise.
43027         * soft-fp/divsf3.c: Likewise.
43028         * soft-fp/divtf3.c: Likewise.
43029         * soft-fp/double.h: Likewise.
43030         * soft-fp/eqdf2.c: Likewise.
43031         * soft-fp/eqsf2.c: Likewise.
43032         * soft-fp/eqtf2.c: Likewise.
43033         * soft-fp/extenddftf2.c: Likewise.
43034         * soft-fp/extended.h: Likewise.
43035         * soft-fp/extendsfdf2.c: Likewise.
43036         * soft-fp/extendsftf2.c: Likewise.
43037         * soft-fp/extendxftf2.c: Likewise.
43038         * soft-fp/fixdfdi.c: Likewise.
43039         * soft-fp/fixdfsi.c: Likewise.
43040         * soft-fp/fixdfti.c: Likewise.
43041         * soft-fp/fixsfdi.c: Likewise.
43042         * soft-fp/fixsfsi.c: Likewise.
43043         * soft-fp/fixsfti.c: Likewise.
43044         * soft-fp/fixtfdi.c: Likewise.
43045         * soft-fp/fixtfsi.c: Likewise.
43046         * soft-fp/fixtfti.c: Likewise.
43047         * soft-fp/fixunsdfdi.c: Likewise.
43048         * soft-fp/fixunsdfsi.c: Likewise.
43049         * soft-fp/fixunsdfti.c: Likewise.
43050         * soft-fp/fixunssfdi.c: Likewise.
43051         * soft-fp/fixunssfsi.c: Likewise.
43052         * soft-fp/fixunssfti.c: Likewise.
43053         * soft-fp/fixunstfdi.c: Likewise.
43054         * soft-fp/fixunstfsi.c: Likewise.
43055         * soft-fp/fixunstfti.c: Likewise.
43056         * soft-fp/floatdidf.c: Likewise.
43057         * soft-fp/floatdisf.c: Likewise.
43058         * soft-fp/floatditf.c: Likewise.
43059         * soft-fp/floatsidf.c: Likewise.
43060         * soft-fp/floatsisf.c: Likewise.
43061         * soft-fp/floatsitf.c: Likewise.
43062         * soft-fp/floattidf.c: Likewise.
43063         * soft-fp/floattisf.c: Likewise.
43064         * soft-fp/floattitf.c: Likewise.
43065         * soft-fp/floatundidf.c: Likewise.
43066         * soft-fp/floatundisf.c: Likewise.
43067         * soft-fp/floatunditf.c: Likewise.
43068         * soft-fp/floatunsidf.c: Likewise.
43069         * soft-fp/floatunsisf.c: Likewise.
43070         * soft-fp/floatunsitf.c: Likewise.
43071         * soft-fp/floatuntidf.c: Likewise.
43072         * soft-fp/floatuntisf.c: Likewise.
43073         * soft-fp/floatuntitf.c: Likewise.
43074         * soft-fp/fmadf4.c: Likewise.
43075         * soft-fp/fmasf4.c: Likewise.
43076         * soft-fp/fmatf4.c: Likewise.
43077         * soft-fp/gedf2.c: Likewise.
43078         * soft-fp/gesf2.c: Likewise.
43079         * soft-fp/getf2.c: Likewise.
43080         * soft-fp/ledf2.c: Likewise.
43081         * soft-fp/lesf2.c: Likewise.
43082         * soft-fp/letf2.c: Likewise.
43083         * soft-fp/muldf3.c: Likewise.
43084         * soft-fp/mulsf3.c: Likewise.
43085         * soft-fp/multf3.c: Likewise.
43086         * soft-fp/negdf2.c: Likewise.
43087         * soft-fp/negsf2.c: Likewise.
43088         * soft-fp/negtf2.c: Likewise.
43089         * soft-fp/op-1.h: Likewise.
43090         * soft-fp/op-2.h: Likewise.
43091         * soft-fp/op-4.h: Likewise.
43092         * soft-fp/op-8.h: Likewise.
43093         * soft-fp/op-common.h: Likewise.
43094         * soft-fp/quad.h: Likewise.
43095         * soft-fp/single.h: Likewise.
43096         * soft-fp/soft-fp.h: Likewise.
43097         * soft-fp/sqrtdf2.c: Likewise.
43098         * soft-fp/sqrtsf2.c: Likewise.
43099         * soft-fp/sqrttf2.c: Likewise.
43100         * soft-fp/subdf3.c: Likewise.
43101         * soft-fp/subsf3.c: Likewise.
43102         * soft-fp/subtf3.c: Likewise.
43103         * soft-fp/truncdfsf2.c: Likewise.
43104         * soft-fp/trunctfdf2.c: Likewise.
43105         * soft-fp/trunctfsf2.c: Likewise.
43106         * soft-fp/trunctfxf2.c: Likewise.
43107         * soft-fp/unorddf2.c: Likewise.
43108         * soft-fp/unordsf2.c: Likewise.
43109         * soft-fp/unordtf2.c: Likewise.
43110
43111 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
43112
43113         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
43114         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
43115
43116 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
43117
43118         * elf/dl-libc.c: Clear initfini list after freeing.
43119
43120 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
43121
43122         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
43123         * soft-fp/addsf3.c: Likewise.
43124         * soft-fp/addtf3.c: Likewise.
43125         * soft-fp/divdf3.c: Likewise.
43126         * soft-fp/divsf3.c: Likewise.
43127         * soft-fp/divtf3.c: Likewise.
43128         * soft-fp/double.h: Likewise.
43129         * soft-fp/eqdf2.c: Likewise.
43130         * soft-fp/eqsf2.c: Likewise.
43131         * soft-fp/eqtf2.c: Likewise.
43132         * soft-fp/extenddftf2.c: Likewise.
43133         * soft-fp/extended.h: Likewise.
43134         * soft-fp/extendsfdf2.c: Likewise.
43135         * soft-fp/extendsftf2.c: Likewise.
43136         * soft-fp/extendxftf2.c: Likewise.
43137         * soft-fp/fixdfdi.c: Likewise.
43138         * soft-fp/fixdfsi.c: Likewise.
43139         * soft-fp/fixdfti.c: Likewise.
43140         * soft-fp/fixsfdi.c: Likewise.
43141         * soft-fp/fixsfsi.c: Likewise.
43142         * soft-fp/fixsfti.c: Likewise.
43143         * soft-fp/fixtfdi.c: Likewise.
43144         * soft-fp/fixtfsi.c: Likewise.
43145         * soft-fp/fixtfti.c: Likewise.
43146         * soft-fp/fixunsdfdi.c: Likewise.
43147         * soft-fp/fixunsdfsi.c: Likewise.
43148         * soft-fp/fixunsdfti.c: Likewise.
43149         * soft-fp/fixunssfdi.c: Likewise.
43150         * soft-fp/fixunssfsi.c: Likewise.
43151         * soft-fp/fixunssfti.c: Likewise.
43152         * soft-fp/fixunstfdi.c: Likewise.
43153         * soft-fp/fixunstfsi.c: Likewise.
43154         * soft-fp/fixunstfti.c: Likewise.
43155         * soft-fp/floatdidf.c: Likewise.
43156         * soft-fp/floatdisf.c: Likewise.
43157         * soft-fp/floatditf.c: Likewise.
43158         * soft-fp/floatsidf.c: Likewise.
43159         * soft-fp/floatsisf.c: Likewise.
43160         * soft-fp/floatsitf.c: Likewise.
43161         * soft-fp/floattidf.c: Likewise.
43162         * soft-fp/floattisf.c: Likewise.
43163         * soft-fp/floattitf.c: Likewise.
43164         * soft-fp/floatundidf.c: Likewise.
43165         * soft-fp/floatundisf.c: Likewise.
43166         * soft-fp/floatunsidf.c: Likewise.
43167         * soft-fp/floatunsisf.c: Likewise.
43168         * soft-fp/floatuntidf.c: Likewise.
43169         * soft-fp/floatuntisf.c: Likewise.
43170         * soft-fp/floatuntitf.c: Likewise.
43171         * soft-fp/fmadf4.c: Likewise.
43172         * soft-fp/fmasf4.c: Likewise.
43173         * soft-fp/fmatf4.c: Likewise.
43174         * soft-fp/gedf2.c: Likewise.
43175         * soft-fp/gesf2.c: Likewise.
43176         * soft-fp/getf2.c: Likewise.
43177         * soft-fp/ledf2.c: Likewise.
43178         * soft-fp/lesf2.c: Likewise.
43179         * soft-fp/letf2.c: Likewise.
43180         * soft-fp/muldf3.c: Likewise.
43181         * soft-fp/mulsf3.c: Likewise.
43182         * soft-fp/multf3.c: Likewise.
43183         * soft-fp/negdf2.c: Likewise.
43184         * soft-fp/negsf2.c: Likewise.
43185         * soft-fp/negtf2.c: Likewise.
43186         * soft-fp/op-1.h: Likewise.
43187         * soft-fp/op-2.h: Likewise.
43188         * soft-fp/op-4.h: Likewise.
43189         * soft-fp/op-8.h: Likewise.
43190         * soft-fp/op-common.h: Likewise.
43191         * soft-fp/quad.h: Likewise.
43192         * soft-fp/single.h: Likewise.
43193         * soft-fp/soft-fp.h: Likewise.
43194         * soft-fp/sqrtdf2.c: Likewise.
43195         * soft-fp/sqrtsf2.c: Likewise.
43196         * soft-fp/sqrttf2.c: Likewise.
43197         * soft-fp/subdf3.c: Likewise.
43198         * soft-fp/subsf3.c: Likewise.
43199         * soft-fp/subtf3.c: Likewise.
43200         * soft-fp/truncdfsf2.c: Likewise.
43201         * soft-fp/trunctfdf2.c: Likewise.
43202         * soft-fp/trunctfsf2.c: Likewise.
43203         * soft-fp/trunctfxf2.c: Likewise.
43204         * soft-fp/unorddf2.c: Likewise.
43205         * soft-fp/unordsf2.c: Likewise.
43206         * soft-fp/unordtf2.c: Likewise.
43207
43208 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43209
43210         [BZ #15672]
43211         * misc/error.c (error_tail): Fix possible buffer overflow.
43212
43213 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43214
43215         [BZ #13028]
43216         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43217         address.
43218
43219 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43220
43221         [BZ #832]
43222         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43223         testing pipefail option.
43224
43225 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43226
43227         * soft-fp/double.h: Indent preprocessor directives inside #if.
43228         * soft-fp/extended.h: Likewise.
43229         * soft-fp/op-2.h: Likewise.
43230         * soft-fp/op-4.h: Likewise.
43231         * soft-fp/op-common.h: Likewise.
43232         * soft-fp/quad.h: Likewise.
43233         * soft-fp/single.h: Likewise.
43234         * soft-fp/soft-fp.h: Likewise.
43235
43236 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43237
43238         * iconv/iconv_prog.c: Fix typos.
43239         * stdio-common/psiginfo-data.h: Likewise.
43240
43241 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43242
43243         [BZ #15764]
43244         * locale/setlocale.c: Fix typo.
43245
43246 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43247
43248         [BZ #16036]
43249         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43250         signaling NaN arguments.
43251         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43252         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43253
43254         [BZ #14910]
43255         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43256         unordered operands.
43257         * soft-fp/gesf2.c (__gesf2): Likewise.
43258         * soft-fp/getf2.c (__getf2): Likewise.
43259         * soft-fp/ledf2.c (__ledf2): Likewise.
43260         * soft-fp/lesf2.c (__lesf2): Likewise.
43261         * soft-fp/letf2.c (__letf2): Likewise.
43262
43263         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43264         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43265         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43266         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43267         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43268         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43269         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43270         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43271         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43272         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43273         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43274         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43275         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43276         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43277         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43278         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43279         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43280         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43281         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43282         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43283         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43284         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43285         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43286         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43287         * soft-fp/floattidf.c (__floattidf): Likewise.
43288         * soft-fp/floattisf.c (__floattisf): Likewise.
43289         * soft-fp/floattitf.c (__floattitf): Likewise.
43290         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43291         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43292         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43293         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43294         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43295         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43296         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43297         * soft-fp/gesf2.c (__gesf2): Likewise.
43298         * soft-fp/getf2.c (__getf2): Likewise.
43299         * soft-fp/ledf2.c (__ledf2): Likewise.
43300         * soft-fp/lesf2.c (__lesf2): Likewise.
43301         * soft-fp/letf2.c (__letf2): Likewise.
43302
43303         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43304         Undefine and redefine.
43305         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43306         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43307         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43308         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43309         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43310         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43311         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43312         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43313         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43314         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43315         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43316         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43317         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43318         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43319         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43320
43321         [BZ #16032]
43322         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43323         without decrementing exponent if mantissa >= that for the
43324         denominator, not >.
43325         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43326         denominator, not >.  Decrement exponent in < case instead of
43327         incrementing in >= case.
43328         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43329         without decrementing exponent if mantissa >= that for the
43330         denominator, not >.
43331
43332         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43333         computing saturated result for unsigned overflow.
43334
43335 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43336             Jeff Law  <law@redhat.com>
43337
43338         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43339         (atan2Mp): Add systemtap probe marker.
43340         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43341         (__ieee754_log): Add systemtap probe marker.
43342         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43343         (atanMp): Add systemtap probe marker.
43344         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43345         (tanMp): Add systemtap probe marker.
43346         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43347         (__slowexp): Add systemtap probe marker.
43348         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43349         (__slowpow): Add systemtap probe marker.
43350         * manual/probes.texi: Document probes.
43351
43352 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43353
43354         [BZ #15362]
43355         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43356         written.
43357         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43358         written.
43359         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43360         written to buffer but not flushed.
43361         * libio/iofwrite_u.c:  Likewise.
43362         * libio/iopadn.c:  Return bytes returned even if EOF was
43363         encountered.
43364         * libio/iowpadn.c:  Likewise.
43365         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43366         if _IO_padn does not write the whole buffer.
43367         [!COMPILE_WPRINTF] (PAD): Likewise.
43368
43369 2013-10-10  David S. Miller  <davem@davemloft.net>
43370
43371         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43372         directory block.
43373
43374 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43375
43376         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43377         instead of FSF address.
43378         * soft-fp/fixdfti.c: Likewise.
43379         * soft-fp/fixsfti.c: Likewise.
43380         * soft-fp/fixtfti.c: Likewise.
43381         * soft-fp/fixunsdfti.c: Likewise.
43382         * soft-fp/fixunssfti.c: Likewise.
43383         * soft-fp/fixunstfti.c: Likewise.
43384         * soft-fp/floattidf.c: Likewise.
43385         * soft-fp/floattisf.c: Likewise.
43386         * soft-fp/floattitf.c: Likewise.
43387         * soft-fp/floatuntidf.c: Likewise.
43388         * soft-fp/floatuntisf.c: Likewise.
43389         * soft-fp/floatuntitf.c: Likewise.
43390         * soft-fp/trunctfxf2.c: Likewise.
43391
43392         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43393         * soft-fp/fixdfti.c: Likewise.
43394         * soft-fp/fixsfti.c: Likewise.
43395         * soft-fp/fixtfti.c: Likewise.
43396         * soft-fp/fixunsdfti.c: Likewise.
43397         * soft-fp/fixunssfti.c: Likewise.
43398         * soft-fp/fixunstfti.c: Likewise.
43399         * soft-fp/floattidf.c: Likewise.
43400         * soft-fp/floattisf.c: Likewise.
43401         * soft-fp/floattitf.c: Likewise.
43402         * soft-fp/floatuntidf.c: Likewise.
43403         * soft-fp/floatuntisf.c: Likewise.
43404         * soft-fp/floatuntitf.c: Likewise.
43405         * soft-fp/trunctfxf2.c: Likewise.
43406
43407 2013-10-10  David S. Miller  <davem@davemloft.net>
43408
43409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43410
43411 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43412
43413         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43414         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43415         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43416         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43417         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43418         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43419         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43420
43421         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43422         for NaNs before doing comparisons on argument.
43423         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43424         Likewise.
43425
43426 2013-10-10  Will Newton  <will.newton@linaro.org>
43427
43428         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43429         passed to _int_memalign does not overflow.
43430
43431 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43432
43433         * scripts/bench.pl: Add include-sources directive.
43434         * benchtests/README: Update documentation.
43435
43436 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43437
43438         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43439         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43440         instead of FP_INIT_ROUNDMODE.
43441         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43442         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43443
43444         [BZ #16034]
43445         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43446         copy class of input value.
43447         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43448         not handle exceptions.
43449         * soft-fp/negsf2.c (__negsf2): Likewise.
43450         * soft-fp/negtf2.c (__negtf2): Likewise.
43451         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43452
43453 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43454
43455         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43456         semicolon.  From Linux kernel.
43457
43458 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43459
43460         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43461
43462 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43463
43464         [BZ #156]
43465         * manual/socket.texi: Added statement about buffer
43466         for gethostbyname2_r.
43467
43468 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43469
43470         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43471         Use .p2align directive instead, throughout.
43472         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43473         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43474         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43475         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43476         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43477         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43478         * sysdeps/x86_64/strchr.S: Likewise.
43479         * sysdeps/x86_64/strrchr.S: Likewise.
43480
43481 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43482
43483         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43484
43485         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43486
43487         * sysdeps/generic/math_private.h (__mpsin1): Remove
43488         declaration.
43489         (__mpcos1): Likewise.
43490         (__mpsin): New argument __range_reduce.
43491         (__mpcos): Likewise.
43492         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43493         (slow): Use __mpsin and __mpcos.
43494         (slow1): Likewise.
43495         (slow2): Likewise.
43496         (sloww): Likewise.
43497         (sloww1): Likewise.
43498         (sloww2): Likewise.
43499         (bsloww): Likewise.
43500         (bsloww1): Likewise.
43501         (bsloww2): Likewise.
43502         (cslow2): Likewise.
43503         (csloww): Likewise.
43504         (csloww1): Likewise.
43505         (csloww2): Likewise.
43506         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43507         range_reduce.  Merge in __mpsin1.
43508         (__mpcos): Likewise.
43509         (__mpsin1): Remove.
43510         (__mpcos1): Likewise.
43511
43512 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43513
43514         * locale/loadlocale.c (_nl_intern_locale_data): Use
43515         LOCFILE_ALIGNED_P.
43516         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43517         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43518         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43519         obstack data is appropriately aligned.
43520         (obstack_int32_grow_fast): Likewise.
43521         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43522         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43523         (add_locale_uint32_array): Likewise.
43524
43525 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43526
43527         * benchtests/Makefile: Remove ARGLIST and RET variables.
43528         ($(objpfx)bench-%.c): Pass only function name to the script.
43529         * benchtests/README: Update documentation.
43530         * benchtests/acos-inputs: Add new directives.
43531         * benchtests/acosh-inputs: Likewise.
43532         * benchtests/asin-inputs: Likewise.
43533         * benchtests/asinh-inputs: Likewise.
43534         * benchtests/atan-inputs: Likewise.
43535         * benchtests/atanh-inputs: Likewise.
43536         * benchtests/cos-inputs: Likewise.
43537         * benchtests/cosh-inputs: Likewise.
43538         * benchtests/exp-inputs: Likewise.
43539         * benchtests/log-inputs: Likewise.
43540         * benchtests/pow-inputs: Likewise.
43541         * benchtests/rint-inputs: Likewise.
43542         * benchtests/sin-inputs: Likewise.
43543         * benchtests/sinh-inputs: Likewise.
43544         * benchtests/tan-inputs: Likewise.
43545         * benchtests/tanh-inputs: Likewise.
43546         * scripts/bench.pl: Add support for new directives.
43547
43548 2013-10-07  Alan Modra  <amodra@gmail.com>
43549
43550         * README: Fix careless merge.
43551
43552 2013-10-05  Alan Modra  <amodra@gmail.com>
43553
43554         * NEWS: Mention powerpc64le support and bugs fixed.
43555         * README: Both big-endian and little-endian powerpc64 supported.
43556
43557 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43558
43559         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43560         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43561         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43562         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43563
43564 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43565
43566         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43567         match prototype.
43568
43569 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43570
43571         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43572         Move -mhard-float appending from
43573         ports/sysdeps/powerpc/powerpc32/Makefile.
43574         [$(with-fp) = yes] (ASFLAGS): Likewise.
43575         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43576         * sysdeps/powerpc/nofpu: Move directory from
43577         ports/sysdeps/powerpc/nofpu.
43578         * sysdeps/powerpc/soft-fp: Move directory from
43579         ports/sysdeps/powerpc/soft-fp.
43580         * sysdeps/powerpc/powerpc32/405: Move directory from
43581         ports/sysdeps/powerpc/powerpc32/405.
43582         * sysdeps/powerpc/powerpc32/440: Move directory from
43583         ports/sysdeps/powerpc/powerpc32/440.
43584         * sysdeps/powerpc/powerpc32/464: Move directory from
43585         ports/sysdeps/powerpc/powerpc32/464.
43586         * sysdeps/powerpc/powerpc32/476: Move directory from
43587         ports/sysdeps/powerpc/powerpc32/476.
43588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43589         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43591         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43593         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43595         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43597         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43598         * README: Update for powerpc-*-linux-gnu software floating point
43599         support in libc.
43600
43601         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43602         case to powerpc/powerpc32*.
43603         * sysdeps/unix/sysv/linux/configure: Regenerated.
43604
43605         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43606         (_FPU_MASK_OM): Define as 0x04.
43607         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43608         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43609         0x00c10080.
43610         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43611         0x0000003c.
43612         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43613
43614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43615         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43616         getcontext_e500.
43617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43618         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43619         setcontext_e500.
43620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43621         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43622         and setcontext_e500.
43623
43624 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43625
43626         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43627
43628 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43629
43630         * manual/threads.texi (Default Thread Attributes): Fix typo.
43631
43632 2013-10-04  Will Newton  <will.newton@linaro.org>
43633
43634         * malloc/Makefile: Add tst-memalign.
43635         * malloc/tst-memalign.c: New file.
43636
43637         * malloc/tst-posix_memalign.c: Add comments.
43638         (do_test): Add comments and call free on all potentially
43639         allocated pointers. Add space after cast.
43640
43641         * malloc/tst-pvalloc.c: Add comments.
43642         (do_test): Add comments and call free on all potentially
43643         allocated pointers. Remove duplicate check for NULL pointer.
43644         Add space after cast.
43645
43646         * malloc/tst-valloc.c: Add comments.
43647         (do_test): Add comments and call free on all potentially
43648         allocated pointers. Remove duplicate check for NULL pointer.
43649         Add space after cast.
43650
43651 2013-10-04  Alan Modra  <amodra@gmail.com>
43652
43653         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43654         Use stdint types in rather than __attribute__((mode())).
43655         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43656
43657 2013-10-04  Alan Modra  <amodra@gmail.com>
43658
43659         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43660         Correct handling of unaligned relocs for little-endian.
43661         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43662
43663 2013-10-04  Alan Modra  <amodra@gmail.com>
43664
43665         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43666         * configure: Regenerate.
43667         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43668         * shlib-versions: Likewise.
43669
43670 2013-10-04  Alan Modra  <amodra@gmail.com>
43671
43672         * string/tester.c (test_memrchr): Increment reported test cycle.
43673
43674 2013-10-04  Alan Modra  <amodra@gmail.com>
43675
43676         * string/test-memcpy.c (do_one_test): When reporting errors, print
43677         string address and don't overrun end of string.
43678
43679 2013-10-04  Alan Modra  <amodra@gmail.com>
43680
43681         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43682         insrdi.  Make better use of reg selection to speed exit slightly.
43683         Schedule entry path a little better.  Remove useless "are we done"
43684         checks on entry to main loop.  Handle wrapping around zero address.
43685         Correct main loop count.  Handle single left-over word from main
43686         loop inline rather than by using loop_small.  Remove extra word
43687         case in loop_small caused by wrong loop count.  Add little-endian
43688         support.
43689         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43690         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43691         cache hint.
43692         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43693         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43694         support.  Avoid rlwimi.
43695         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43696
43697 2013-10-04  Alan Modra  <amodra@gmail.com>
43698
43699         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43700         insrdi.  Formatting.
43701         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43702         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43703         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43704         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43705         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43706         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43707
43708 2013-10-04  Alan Modra  <amodra@gmail.com>
43709
43710         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43711         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43712         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43713         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43714         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43715         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43716         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43717         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43718         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43719         use of regs.  Use power7 mtocrf.  Tidy function tails.
43720
43721 2013-10-04  Alan Modra  <amodra@gmail.com>
43722
43723         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43724         Formatting.  Consistently use rXXX register defines or rN defines.
43725         Use early exit labels that avoid restoring unused non-volatile regs.
43726         Make cr field use more consistent with rWORDn compares.  Rename
43727         regs used as shift registers for unaligned loop, using rN defines
43728         for short lifetime/multiple use regs.
43729         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43730         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43731         addi 1,1,64 to pop stack frame.  Simplify return value code.
43732         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43733
43734 2013-10-04  Alan Modra  <amodra@gmail.com>
43735
43736         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43737         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43738         rather than rlwimi.
43739         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43740         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43741         little-endian support.  Correct typos.
43742         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43743         rather than rlwimi.
43744         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43745         in loop and entry code to keep "and." results.
43746         (strchr): Add little-endian support.  Comment.  Move cntlzd
43747         earlier in tail.
43748         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43749
43750 2013-10-04  Alan Modra  <amodra@gmail.com>
43751
43752         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43753         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43754         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43755         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43756
43757 2013-10-04  Alan Modra  <amodra@gmail.com>
43758
43759         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43760         (rTMP): Define as r11.
43761         (strcmp): Add little-endian support.  Optimise tail.
43762         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43763         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43764         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43765         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43766         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43767         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43768         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43769
43770 2013-10-04  Alan Modra  <amodra@gmail.com>
43771
43772         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43773         little-endian support.  Remove unnecessary "are we done" tests.
43774         Handle "s" wrapping around zero and extremely large "size".
43775         Correct main loop count.  Handle single left-over word from main
43776         loop inline rather than by using small_loop.  Correct comments.
43777         Delete "zero" tail, use "end_max" instead.
43778         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43779
43780 2013-10-04  Alan Modra  <amodra@gmail.com>
43781
43782         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43783         support.  Don't branch over align.
43784         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43785         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43786         support.  Rearrange tmp reg use to suit.  Comment.
43787         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43788
43789 2013-10-04  Alan Modra  <amodra@gmail.com>
43790
43791         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43792
43793 2013-10-04  Alan Modra  <amodra@gmail.com>
43794
43795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43796         conditional form of branch and link when obtaining pc.
43797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43798
43799 2013-10-04  Alan Modra  <amodra@gmail.com>
43800
43801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43802         HIWORD/LOWORD.
43803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43805
43806 2013-10-04  Alan Modra  <amodra@gmail.com>
43807
43808         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43809         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43810         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43811         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43812         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43813         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43814         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43815         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43816         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43817         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43818
43819 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43820             Alistair Popple <alistair@ozlabs.au.ibm.com>
43821             Alan Modra <amodra@gmail.com>
43822
43823         [BZ #15723]
43824         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43825         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43826         _dl_hwcap access for little-endian.
43827         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43828         destroy vmx regs when saving unaligned.
43829         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43830         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43831         destroy vmx regs when saving unaligned.
43832
43833 2013-10-04  Alan Modra  <amodra@gmail.com>
43834
43835         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43836         Don't use a union to pack hi/low value.
43837
43838 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43839
43840         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43841         for little-endian.
43842         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43843         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43844         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43845         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43846         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43847
43848 2013-10-04  Alan Modra  <amodra@gmail.com>
43849
43850         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43851         constants to usual value for .cst8 section, and remove redundant
43852         high address load.
43853         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43854         constant for 0x1p52.  Load little-endian words of double from
43855         correct stack offsets.
43856
43857 2013-10-04  Alan Modra  <amodra@gmail.com>
43858
43859         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43860         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43861         words of double from correct stack offsets.
43862         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43863         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43864         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43865         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43866         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43867         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43868         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43869         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43870         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43871         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43872         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43873         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43874         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43875         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43876         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43877         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43878         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43879
43880 2013-10-04  Alan Modra  <amodra@gmail.com>
43881
43882         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43883         64-bit int/double union.
43884         (_FPU_SETCW): Likewise.
43885         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43886         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43887
43888 2013-10-04  Alan Modra  <amodra@gmail.com>
43889
43890         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43891         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43892
43893 2013-10-04  Alan Modra  <amodra@gmail.com>
43894
43895         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43896         use vector int constants.
43897         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43898
43899 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43900
43901         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43902         array with long long.
43903         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43904         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43905         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43906         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43907         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43908         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43909         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43910         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43911         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43912         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43913         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43914         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43915         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43916
43917 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43918
43919         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43920         (__signbit): Likewise.  Correct for little-endian.
43921         (__signbitl): Call __signbit.
43922         (lrint): Correct for little-endian.
43923         (lrintf): Call lrint.
43924
43925 2013-10-04  Alan Modra  <amodra@gmail.com>
43926
43927         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43928         union 32-bit int array member with 64-bit int array.
43929         (t515, tm256): Double rather than long double.
43930         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43931
43932 2013-10-04  Alan Modra  <amodra@gmail.com>
43933
43934         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43935         Delete.
43936         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43937         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43938         version of math_ldbl.h.
43939
43940 2013-10-04  Alan Modra  <amodra@gmail.com>
43941
43942         [BZ #15734], [BZ #15735]
43943         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43944         all uses of ieee875 long double macros and unions.  Simplify test
43945         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43946         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43947         normalize after ldbl_extract_mantissa, and don't add hidden bit
43948         already handled.  Don't treat low word of ieee854 mantissa like
43949         low word of IBM long double and mask off bit when testing for
43950         zero.
43951         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43952         all uses of ieee875 long double macros and unions.  Simplify tests
43953         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43954         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43955         two1022, instead use their values.  Recognise that tests for large
43956         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43957         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43958         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43959         test for 0.0L and nan.  Correct negation.
43960         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43961         ieee875 long double macros and unions.  Correct output for large
43962         magnitude x.  Correct absolute value calculation.
43963         (__erfcl): Likewise.
43964         * math/libm-test.inc: Add tests for errors discovered in IBM long
43965         double versions of fmodl, remainderl, erfl and erfcl.
43966
43967 2013-10-04  Alan Modra  <amodra@gmail.com>
43968
43969         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43970         all uses of ieee854 long double macros and unions.  Simplify tests
43971         for long doubles that are fully specified by the high double.
43972         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43973         Likewise.
43974         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43975         Remove dead code too.
43976         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43977         (__ieee754_ynl): Likewise.
43978         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43979         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43980         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43981         Remove dead code too.
43982         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43983         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43984         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43985         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43986         Simplify.
43987         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43988         Simplify.
43989         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43990         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43991         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43992         Comment on variable precision.
43993         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43994         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43995         Likewise.
43996         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43997         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43998         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43999         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
44000         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
44001
44002 2013-10-04  Alan Modra  <amodra@gmail.com>
44003
44004         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
44005         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
44006         all uses of ieee854 long double macros and unions.
44007         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
44008         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
44009         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
44010         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
44011         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
44012         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
44013         Likewise.
44014         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
44015         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
44016         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
44017         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
44018         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
44019         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
44020         Simplify sign and nan test too.
44021         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
44022         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
44023         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
44024         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
44025         Likewise.
44026         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
44027         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
44028         Likewise.
44029         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44030         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
44031         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
44032         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
44033         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
44034         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
44035
44036 2013-10-04  Alan Modra  <amodra@gmail.com>
44037
44038         * stdio-common/printf_size.c (__printf_size): Don't use
44039         union ieee854_long_double in fpnum union.
44040         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
44041         signbit macro to retrieve sign from long double.
44042         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
44043         retrieve sign from long double.
44044         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
44045         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
44046         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
44047         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
44048         * math/test-misc.c (main): Don't use union ieee854_long_double.
44049
44050 2013-10-04  Alan Modra  <amodra@gmail.com>
44051
44052         [BZ #15680]
44053         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
44054         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
44055         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
44056         calculation.  Remove unnecessary test for denormal exponent.
44057         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
44058         Correct handling of denormals.  Avoid undefined shift behaviour.
44059         Correct normalisation of low mantissa when low double is denormal.
44060         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
44061         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
44062         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
44063         Correct normalisation of low mantissa.  Test for overflow of high
44064         mantissa and normalise.
44065         (ldbl_nearbyint): Use more readable constant for two52.
44066         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
44067         (__mpn_construct_long_double): Fix test for overflow of high
44068         mantissa and correct normalisation.  Avoid undefined shift.
44069
44070 2013-10-04  Alan Modra  <amodra@gmail.com>
44071
44072         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44073         (union ibm_extended_long_double): Define as an array of ieee754_double.
44074         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
44075         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
44076         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
44077         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
44078         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44079         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
44080         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
44081         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
44082         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
44083         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
44084         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
44085
44086 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
44087
44088         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
44089         page size instead of calling getpagesize.
44090
44091         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
44092         (LOCFILE_ALIGN_MASK): Likewise.
44093         (LOCFILE_ALIGN_UP): Likewise.
44094         (LOCFILE_ALIGNED_P): Likewise.
44095         * locale/programs/ld-collate.c (collate_output): Use the new
44096         macros instead of __alignof__ (int32_t).
44097         * locale/weight.h (findidx): Likewise.
44098
44099 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
44100
44101         [BZ #431]
44102         * manual/string.texi: Fix strncat and wcsncat.
44103
44104 2013-10-03  Brooks Moses  <bmoses@google.com>
44105
44106         [BZ #15915]
44107         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
44108         * Makerules: ...here, and adjust associated comments.
44109
44110 2013-10-02  Will Newton  <will.newton@linaro.org>
44111
44112         * malloc/Makefile: Add tst-pvalloc.
44113         * malloc/tst-pvalloc.c: New file.
44114
44115 2013-10-02  Will Newton  <will.newton@linaro.org>
44116
44117         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
44118         improve test coverage.
44119
44120 2013-10-02  Will Newton  <will.newton@linaro.org>
44121
44122         * malloc/Makefile: Add tst-posix_memalign.
44123         * malloc/tst-posix_memalign.c: New file.
44124
44125 2013-10-01  Eric Blake  <eblake@redhat.com>
44126
44127         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44128         Use __THROWNL rather than __THROW on static functions.
44129
44130 2013-09-30  Petr Machata  <pmachata@redhat.com>
44131
44132         * elf/elf.h (R_AARCH64_ABS16): New macro.
44133         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44134         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44135         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44136         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44137         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44138         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44139         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44140         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44141         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44142         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44143         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44144         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44145         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44146         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44147         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44148         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44149         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44150         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44151         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44152         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44153         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44154         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44155         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44156         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44157         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44158         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44159         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44160         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44161         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44162         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44163         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44164         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44165         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44166         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44167         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44168         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44169         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44170         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44171         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44172         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44173         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44174         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44175         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44176         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44177         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44178         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44179         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44180         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44181         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44182         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44183         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44184         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44185         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44186         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44187         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44188         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44189         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44190         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44191         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44192         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44193         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44194         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44195         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44196         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44197         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44198         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44199         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44200         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44201         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44202         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44203         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44204         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44205         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44206         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44207         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44208         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44209         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44210         (R_AARCH64_TLSDESC_LDR): Likewise.
44211         (R_AARCH64_TLSDESC_ADD): Likewise.
44212         (R_AARCH64_TLSDESC_CALL): Likewise.
44213
44214 2013-09-30  Andreas Schwab  <schwab@suse.de>
44215
44216         [BZ #15048]
44217         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44218         the nss database lookup.
44219         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44220         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44221
44222 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44223
44224         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44225
44226 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44227
44228         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44229         ${Bash-specific parameter/pattern/string} parameter expansion.
44230         * sysdeps/unix/make-syscalls.sh: Likewise.
44231
44232 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44233
44234         * sysdeps/sh/stackguard-macros.h: New file.
44235
44236 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44237
44238         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44239         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44240         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44241         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44242         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44243         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44244
44245 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44246
44247         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44248         Fix thread ID register.
44249
44250 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44251
44252         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44253         [POSIX || UNIX98]: Require rather than permitting all symbols from
44254         <time.h>.
44255         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44256         element of struct sched_param.
44257         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44258         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44259         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44260         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44261         constant.
44262
44263 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44264
44265         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44266         argument calculation.
44267
44268 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44269
44270         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44271         Expect macro.
44272         [POSIX] (pthread_attr_t): Do not require type.
44273         [POSIX] (pthread_cond_t): Likewise.
44274         [POSIX] (pthread_condattr_t): Likewise.
44275         [POSIX] (pthread_key_t): Likewise.
44276         [POSIX] (pthread_mutex_t): Likewise.
44277         [POSIX] (pthread_mutexattr_t): Likewise.
44278         [POSIX] (pthread_once_t): Likewise.
44279         [POSIX] (pthread_t): Likewise.
44280         [POSIX-based standards] (pthread_atfork): Expect function.
44281
44282 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44283             Richard Sandiford  <richard@codesourcery.com>
44284
44285         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44286         (swap_endianness_p): New extern variable.
44287         (set_big_endian): New inline function.
44288         (maybe_swap_uint32): Likewise.
44289         (maybe_swap_uint32_array): Likewise.
44290         (maybe_swap_uint32_obstack): Likewise.
44291         * locale/programs/locfile.c: Include <stdbool.h>.
44292         (swap_endianness_p): New variable.
44293         (add_locale_uint32): Call maybe_swap_uint32.
44294         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44295         (write_locale_data): Call maybe_swap_uint32_array.
44296         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44297         maybe_swap_uint32.
44298         (obstack_int32_grow_fast): Likewise.
44299         (output_weightwc): Call maybe_swap_uint32_obstack.
44300         (collate_output): Likewise.
44301         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44302         (OPT_LITTLE_ENDIAN): Likewise.
44303         (options): Add --little-endian and --big-endian options.
44304         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44305         * locale/programs/locarchive.c: Include "locfile.h".
44306         (GET): New macro.
44307         (SET): Likewise.
44308         (INC): Likewise.
44309         (create_archive): Use the new macros to access fields of
44310         structures directly mapped from or written to locale archives.
44311         (oldlocrecentcmp): Likewise.
44312         (enlarge_archive): Likewise.
44313         (insert_name): Likewise.
44314         (add_alias): Likewise.
44315         (add_locale): Likewise.
44316         (delete_locales_from_archive): Likewise.
44317         (show_archive_content): Likewise.
44318         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44319         locale data.
44320
44321 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44322
44323         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44324         http://www.gnu.org/doc/freemanuals.texi.
44325         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44326
44327 2013-09-24  Will Newton  <will.newton@linaro.org>
44328
44329         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44330         macro.
44331
44332 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44333
44334         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44335         unsigned char.
44336
44337 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44338
44339         * manual/threads.texi (POSIX Threads): Fix a typo.
44340
44341 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44342
44343         [BZ #14547]
44344         * string/tst-strcoll-overflow.c: New test case.
44345         * string/Makefile (xtests): Add tst-strcoll-overflow.
44346         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44347         cache if string sizes may cause integer overflow.
44348
44349         [BZ #14547]
44350         * string/strcoll_l.c (coll_seq): New members rule, idx,
44351         save_idx and back_us.
44352         (get_next_seq_nocache): New function.
44353         (do_compare_nocache): New function.
44354         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44355         when malloc fails.
44356
44357 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44358
44359         [BZ #15754]
44360         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44361         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44362         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44363
44364         [BZ #15754]
44365         * elf/Makefile (tests): Add tst-ptrguard1.
44366         (tests-static): Add tst-ptrguard1-static.
44367         (tst-ptrguard1-ARGS): Define.
44368         (tst-ptrguard1-static-ARGS): Define.
44369         * elf/tst-ptrguard1.c: New file.
44370         * elf/tst-ptrguard1-static.c: New file.
44371         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44372         * sysdeps/i386/stackguard-macros.h: Likewise.
44373         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44374         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44375         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44376         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44377         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44378         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44379
44380 2013-09-23  Hector Marco  <hecmargi@upv.es>
44381             Ismael Ripoll  <iripoll@disca.upv.es>
44382             Carlos O'Donell  <carlos@redhat.com>
44383
44384         [BZ #15754]
44385         * sysdeps/generic/stackguard-macros.h: Define
44386         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44387         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44388         Define __pointer_chk_guard_local.
44389         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44390         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44391
44392 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44393
44394         [BZ #15859]
44395         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44396
44397 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44398
44399         * include/string.h (__ffs): Declare as hidden.
44400         * string/ffs.c (__ffs): Define as hidden.
44401         * sysdeps/i386/ffs.c (__ffs): Likewise.
44402         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44403         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44404         * sysdeps/s390/ffs.c (__ffs): Likewise.
44405         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44406
44407 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44408
44409         * NEWS: Mention malloc probes.
44410
44411         * malloc/arena.c (new_heap): New memory_heap_new probe.
44412         (grow_heap): New memory_heap_more probe.
44413         (shrink_heap): New memory_heap_less probe.
44414         (heap_trim): New memory_heap_free probe.
44415         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44416         (systrim): New memory_sbrk_less probe.
44417         * manual/probes.texi: Document them.
44418
44419         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44420         * manual/probes.texi: Document it.
44421
44422         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44423         (__libc_realloc): Add memory_realloc_retry probe.
44424         (__libc_memalign): Add memory_memalign_retry probe.
44425         (__libc_valloc): Add memory_valloc_retry probe.
44426         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44427         (__libc_calloc): Add memory_calloc_retry probe.
44428         * manual/probes.texi: Document them.
44429
44430         * malloc/arena.c (get_free_list): Add probe
44431         memory_arena_reuse_free_list.
44432         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44433         and memory_arena_reuse.
44434         (arena_get2) [!PER_THREAD]: Likewise.
44435         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44436         memory_arena_reuse_realloc.
44437         * manual/probes.texi: Document them.
44438
44439         * malloc/malloc.c (__libc_free): Add
44440         memory_mallopt_free_dyn_thresholds probe.
44441         (__libc_mallopt): Add multiple memory_mallopt probes.
44442         * manual/probes.texi: Document them.
44443
44444         * malloc/malloc.c: Include stap-probe.h.
44445         (__libc_mallopt): Add memory_mallopt probe.
44446         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44447         * manual/probes.texi: New.
44448         * manual/Makefile (chapters): Add probes.
44449         * manual/threads.texi: Set next node.
44450
44451 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44452
44453         [BZ #15963, #13985]
44454         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44455         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44456         Add `Chinese' to `nan' entry name.
44457
44458 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44459
44460         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44461         (POLYNOMIAL): Likewise.
44462         (TAYLOR_SINCOS): Likewise.
44463         (TAYLOR_SLOW): Likewise.
44464         (__sin): Use TAYLOR_SINCOS.
44465         (__cos): Likewise.
44466         (slow): Use TAYLOR_SLOW.
44467         (sloww): Likewise.
44468         (bsloww): Likewise.
44469         (csloww): Likewise.
44470
44471 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44472
44473         * stdlib/strtod_l.c: Fix buffer overrun.
44474
44475 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44476
44477         * benchtests/Makefile (bench): Add sincos.
44478         * benchtests/bench-sincos.c: New file.
44479
44480         * math/libm-test.inc (cos_test_data): New test inputs.
44481         (sin_test_data): Likewise.
44482
44483         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44484         macro.
44485         (__sin): Use it.
44486         (__cos): Likewise.
44487         (slow1): Likewise.
44488         (slow2): Likewise.
44489         (sloww1): Likewise.
44490         (sloww2): Likewise.
44491         (bsloww1): Likewise.
44492         (bsloww2): Likewise.
44493         (cslow2): Likewise.
44494         (csloww1): Likewise.
44495         (csloww2): Likewise.
44496
44497         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44498         function.
44499         (__sin): Use it.
44500         (__cos): Likewise.
44501
44502         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44503         gotos.
44504         (__cos): Likewise.
44505
44506 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44507
44508         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44509         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44510         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44511         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44512         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44513         * elf/cache.c (print_entry): Handle the new cache flags.
44514
44515 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44516             Aldy Hernandez  <aldyh@redhat.com>
44517
44518         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44519         Change condition to [_SOFT_FLOAT].
44520         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44521         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44522         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44523         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44524         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44525         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44526         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44527         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44528         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44529         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44530         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44531         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44532         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44533         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44534         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44535         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44536         declaration.
44537
44538 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44539
44540         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44541         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44542         (__longjmp): Use LOAD_GP to load saved GPRs.
44543         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44544         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44545         (__sigsetjmp): Use SAVE_GP to save GPRs.
44546
44547         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44548         Do not append -msoft-float.
44549         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44550
44551 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44552
44553         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44554
44555 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44556
44557         [BZ #15966]
44558         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44559         (_FPU_GETCW): Use initial "__" on variable and field names but not
44560         on macro parameter name.
44561         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44562         parentheses around reference to macro parameter.
44563
44564 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44565
44566         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44567         prototype.
44568         (ctype_startup): Use uint32_t in cast and sizeof for
44569         ctype->charnames.
44570
44571 2013-09-11  Jia Liu  <proljc@gmail.com>
44572
44573         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44574         __daddr_t_defined.
44575         [__FreeBSD__]: Likewise.
44576
44577 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44578
44579         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44580         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44581         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44582         (strchr): Remove __strchr_sse42 ifunc selection.
44583         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44584         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44585
44586 2013-09-11  Will Newton  <will.newton@linaro.org>
44587
44588         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44589         parameter to RES. Remove hardcoded 1000 value.
44590         * benchtests/bench-skeleton.c (main): Pass RES parameter
44591         to TIMING_INIT and multiply result by 1000.
44592
44593 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44594
44595         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44596
44597 2013-09-11  Andreas Schwab  <schwab@suse.de>
44598
44599         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44600         if not defined.
44601         (O_TMPFILE) [__USE_GNU]: Define.
44602         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44603         Define.
44604
44605 2013-09-11  Will Newton  <will.newton@linaro.org>
44606
44607         [BZ #15857]
44608         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44609         does not overflow.
44610
44611 2013-09-11  Will Newton  <will.newton@linaro.org>
44612
44613         [BZ #15856]
44614         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44615         does not overflow.
44616
44617 2013-09-11  Will Newton  <will.newton@linaro.org>
44618
44619         [BZ #15855]
44620         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44621         does not overflow.
44622
44623 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44624
44625         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44626         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44627         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44628         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44629         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44630
44631 2013-09-10  Allan McRae  <allan@archlinux.org>
44632
44633         [BZ #15748]
44634         * manual/arith.texi (Parsing of Floats): Clarify
44635         cross-reference.
44636
44637         [BZ #15849]
44638         * manual/install.texi (Running make install): Mention
44639         --enable-pt-chown.
44640         * INSTALL: Regenerated.
44641
44642 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44643
44644         * csu/init-first.c (_init): Remove the !SHARED condition around
44645         FPU control word initialization.
44646         * elf/dl-support.c (_dl_fpu_control): New variable.
44647         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44648         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44649         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44650         * math/test-fpucw-static.c: New file.
44651         * math/test-fpucw-ieee.c: New file.
44652         * math/test-fpucw-ieee-static.c: New file.
44653         * math/Makefile (tests): Add `test-fpucw-ieee' and
44654         `$(tests-static)'.
44655         (tests-static): New variable.
44656         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44657         dependency to...
44658         [($(build-shared),yes)]
44659         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44660         ... this.
44661         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44662         New dependency.
44663
44664 2013-09-09  Allan McRae  <allan@archlinux.org>
44665
44666         [BZ #15939]
44667         * manual/string.texi (Collation Functions): Fix typo in
44668         strcoll example.
44669         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44670
44671         [BZ #15893]
44672         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44673
44674         [BZ #15892]
44675         * libio/memstream.c (open_memstream): Fix memory leak.
44676         * libio/wmemstream.c (open_wmemstream): Likewise.
44677
44678         [BZ #15895]
44679         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44680
44681 2013-09-09  Will Newton  <will.newton@linaro.org>
44682
44683         * malloc/Makefile: Add tst-realloc to tests.
44684         * malloc/tst-realloc.c: New file.
44685
44686 2013-09-09  Allan McRae  <allan@archlinux.org>
44687
44688         [BZ #15844]
44689         * COPYING: Update from GNU website to fix FSF address.
44690         * COPYING.LIB: Likewise.
44691
44692 2013-09-06  David S. Miller  <davem@davemloft.net>
44693
44694         * po/zh_TW.po: Update Chinese (traditional) translation from
44695         translation project.
44696
44697 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44698             Joseph Myers  <joseph@codesourcery.com>
44699
44700         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44701         "localeinfo.h".
44702         (obstack_chunk_alloc): New macro.
44703         (obstack_chunk_free): Likewise.
44704         (record_offset): New function.
44705         (init_locale_data): Likewise.
44706         (align_locale_data): Likewise.
44707         (add_locale_empty): Likewise.
44708         (add_locale_raw_data): Likewise.
44709         (add_locale_raw_obstack): Likewise.
44710         (add_locale_string): Likewise.
44711         (add_locale_wstring): Likewise.
44712         (add_locale_uint32): Likewise.
44713         (add_locale_uint32_array): Likewise.
44714         (add_locale_char): Likewise.
44715         (start_locale_structure): Likewise.
44716         (end_locale_structure): Likewise.
44717         (start_locale_prelude): Likewise.
44718         (end_locale_prelude): Likewise.
44719         (write_locale_data): Take locale_file structure rather than an
44720         iovec.
44721         * locale/programs/locfile.h: Include "obstack.h".
44722         (struct locale_file): Change to store locale file contents instead
44723         of header.
44724         (init_locale_data): New prototype.
44725         (align_locale_data): Likewise.
44726         (add_locale_empty): Likewise.
44727         (add_locale_raw_data): Likewise.
44728         (add_locale_raw_obstack): Likewise.
44729         (add_locale_string): Likewise.
44730         (add_locale_wstring): Likewise.
44731         (add_locale_uint32): Likewise.
44732         (add_locale_uint32_array): Likewise.
44733         (add_locale_char): Likewise.
44734         (start_locale_structure): Likewise.
44735         (end_locale_structure): Likewise.
44736         (start_locale_prelude): Likewise.
44737         (end_locale_prelude): Likewise.
44738         (write_locale_data): Update prototype.
44739         * locale/programs/3level.h (struct TABLE): Remove result field.
44740         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44741         Use new locale_file interface.
44742         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44743         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44744         * locale/programs/ld-address.c (address_output): Use new
44745         locale_file interface.
44746         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44747         NO_ADD_LOCALE.
44748         (collate_finish): Don't call collseq_table_finalize.
44749         (collate_output): Use new locale_file interface.
44750         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44751         in file.
44752         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44753         (TABLE): Move defines earlier in file.
44754         (ELEMENT): Likewise.
44755         (DEFAULT): Likewise.
44756         (wctrans_table_add): Move macro and inline function earlier in
44757         file.
44758         (struct wctype_table): Move type earlier in file.
44759         (add_locale_wctype_table): New static prototype.
44760         (struct locale_ctype_t): Use logical types instead of struct iovec
44761         pointers for members.
44762         (ctype_output): Use new locale_file interface.
44763         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44764         new locale_file interface.
44765         (allocate_arrays): Update for use of new locale_file interface.
44766         * locale/programs/ld-identification.c (identification_output): Use
44767         new locale_file interface.
44768         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44769         * locale/programs/ld-messages.c (messages_output): Likewise.
44770         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44771         * locale/programs/ld-name.c (name_output): Likewise.
44772         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44773         * locale/programs/ld-paper.c (paper_output): Likewise.
44774         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44775         * locale/programs/ld-time.c (time_output): Likewise.
44776
44777 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44778
44779         * benchtests/Makefile: Add memrchr benchmark.
44780         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44781         benchmark as memrchr.
44782         * benchtests/bench-memrchr-ifunc.c: New file.
44783         * benchtests/bench-memrchr.c: New file.
44784
44785 2013-09-06   Will Newton  <will.newton@linaro.org>
44786
44787         * benchtests/Makefile (string-bench): Add memcpy.
44788
44789 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44790             Cong Wang  <amwang@redhat.com>
44791
44792         [BZ #15850]
44793         * sysdeps/unix/sysv/linux/bits/in.h
44794         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44795         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44796         before __USE_KERNEL_IPV6_DEFS uses.
44797         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44798         IPPROTO_BEETPH.
44799         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44800         sockaddr_in6, or ipv6_mreq.
44801
44802 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44803
44804         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44805         memory access for final bytes in some large inputs.
44806         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44807
44808 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44809
44810         * string/test-memrchr.c: New file.
44811         * string/test-memrchr-ifunc.c: New file.
44812         * string/Makefile: Add new memrchr testcase.
44813
44814 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44815
44816         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44817         fanotify_init returns EPERM.
44818
44819 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44820
44821         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44822         errors.
44823         (top level): Treat second token from macro or constant entries for
44824         allowed headers as allowed.
44825         * include/complex.h: Condition internal declarations on
44826         [!_ISOMAC].
44827         * include/fenv.h: Condition include of <stdbool.h> and internal
44828         declarations on [!_ISOMAC].
44829
44830 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44831
44832         [BZ #15923]
44833         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44834
44835 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44836
44837         * configure.in (--enable-versioning): Remove configure option.
44838         (libc_cv_asm_symver_directive): Remove configure test.
44839         (libc_cv_ld_version_script_option): Likewise.
44840         (VERSIONING): Remove variable and AC_SUBST.
44841         (DO_VERSIONING): Remove AC_DEFINE.
44842         * configure: Regenerated.
44843         * config.h.in (DO_VERSIONING): Remove macro.
44844         * Makerules [$(versioning) = yes]: Change conditionals to
44845         [$(build-shared) = yes].
44846         * config.make.in (versioning): Remove variable.
44847         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44848         [$(build-shared) = yes].
44849         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44850         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44851         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44852         [$(build-shared) = yes].
44853         * extra-lib.mk [$(versioning) = yes]: Likewise.
44854         * hurd/Makefile [$(versioning) = yes]: Likewise.
44855         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44856         [SHARED].
44857         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44858         [SHARED].
44859         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44860         [SHARED && !NO_HIDDEN].
44861         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44862         [SHARED].
44863         [SHARED && DO_VERSIONING]: Likewise..
44864         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44865         [$(build-shared) = yes].
44866         * manual/install.texi (--disable-versioning): Remove
44867         documentation.
44868         * INSTALL: Regenerated.
44869         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44870         to [SHARED].
44871         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44872         [$(build-shared) = yes].
44873         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44874         * sysdeps/i386/i686/multiarch/strstr-c.c
44875         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44876         [SHARED && !NO_HIDDEN].
44877         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44878         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44879         * sysdeps/powerpc/powerpc32/dl-machine.c
44880         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44881         * sysdeps/powerpc/powerpc32/sysdep.h
44882         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44883         to [SHARED && PIC && !NO_HIDDEN].
44884         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44885         conditional to [SHARED].
44886
44887 2013-09-04   Will Newton  <will.newton@linaro.org>
44888
44889         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44890         * benchtests/bench-string.h: Include bench-timing.h instead
44891         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44892         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44893         call to HP_TIMING_DIFF_INIT.
44894         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44895         instead of hp-timing.h macros.
44896         * benchtests/bench-memchr.c: Likewise.
44897         * benchtests/bench-memcmp.c: Likewise.
44898         * benchtests/bench-memcpy.c: Likewise.
44899         * benchtests/bench-memmem.c: Likewise.
44900         * benchtests/bench-memmove.c: Likewise.
44901         * benchtests/bench-memset.c: Likewise.
44902         * benchtests/bench-rawmemchr.c: Likewise.
44903         * benchtests/bench-strcasecmp.c: Likewise.
44904         * benchtests/bench-strcasestr.c: Likewise.
44905         * benchtests/bench-strcat.c: Likewise.
44906         * benchtests/bench-strchr.c: Likewise.
44907         * benchtests/bench-strcmp.c: Likewise.
44908         * benchtests/bench-strcpy.c: Likewise.
44909         * benchtests/bench-strcpy_chk.c: Likewise.
44910         * benchtests/bench-strlen.c: Likewise.
44911         * benchtests/bench-strncasecmp.c: Likewise.
44912         * benchtests/bench-strncat.c: Likewise.
44913         * benchtests/bench-strncmp.c: Likewise.
44914         * benchtests/bench-strncpy.c: Likewise.
44915         * benchtests/bench-strnlen.c: Likewise.
44916         * benchtests/bench-strpbrk.c: Likewise.
44917         * benchtests/bench-strrchr.c: Likewise.
44918         * benchtests/bench-strspn.c: Likewise.
44919         * benchtests/bench-strstr.c: Likewise.
44920
44921 2013-09-04  Will Newton  <will.newton@linaro.org>
44922
44923         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44924
44925 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44926
44927         [BZ #15427]
44928         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44929         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44930         * math/libm-test.inc (lgamma_test_data): Add more tests.
44931         * sysdeps/i386/fpu/libm-test-ulps: Update.
44932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44933
44934 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44935
44936         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44937         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44938         Add ifunc.
44939         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44940         Add strcmp-sse2-unaligned
44941         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44942
44943 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44944
44945         * Versions.def (libc): Add GLIBC_2.19.
44946
44947 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44948
44949         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44950         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44951
44952 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44953
44954         [BZ #14155]
44955         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44956         intermediate calculations in recurrence.
44957         (__ieee754_ynf): Likewise.
44958         * math/libm-test.inc (jn_test_data): Do not allow spurious
44959         underflow exception.  Add more tests.
44960         (yn_test_data): Add more tests.
44961         * sysdeps/i386/fpu/libm-test-ulps: Update.
44962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44963
44964 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44965
44966         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44967
44968 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44969
44970         * csu/init-first.c: Fix then/than typos.
44971         * locale/programs/ld-collate.c: Likewise.
44972         * locale/programs/linereader.h: Likewise.
44973         * manual/charset.texi: Likewise.
44974         * manual/filesys.texi: Likewise.
44975         * manual/stdio.texi: Likewise.
44976         * manual/string.texi: Likewise.
44977         * stdlib/fmtmsg.c: Likewise.
44978         * sysdeps/i386/stpncpy.S: Likewise.
44979         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44980         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44981         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44982         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44983
44984 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44985
44986         * elf/dl-open.c: Fix typos.
44987         * iconvdata/gbbig5.c: Likewise.
44988         * iconvdata/iso-2022-jp.c: Likewise.
44989         * iconv/gconv_int.h: Likewise.
44990         * iconv/loop.c: Likewise.
44991         * nis/rpcsvc/nis.h: Likewise.
44992         * resolv/ns_name.c: Likewise.
44993         * stdio-common/vfscanf.c: Likewise.
44994         * streams/stropts.h: Likewise.
44995         * sunrpc/rpc_thread.c: Likewise.
44996         * sysdeps/i386/strpbrk.S: Likewise.
44997         * sysdeps/ieee754/k_standard.c: Likewise.
44998         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44999         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45000         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
45001         * sysdeps/mach/hurd/profil.c: Likewise.
45002         * sysdeps/s390/dl-procinfo.h: Likewise.
45003         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
45004         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
45005         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
45006         * sysdeps/x86_64/dl-trampoline.S: Likewise.
45007         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
45008
45009 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
45010
45011         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
45012         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
45013
45014 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
45015
45016         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
45017         aix specific files.
45018         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
45019         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
45020         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
45021         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
45022         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
45023         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
45024         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
45025         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
45026
45027 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45028             Roland McGrath  <roland@hack.frob.com>
45029
45030         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
45031         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
45032
45033 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45034
45035         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
45036         __executable_start symbol instead of _start.
45037
45038 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45039
45040         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
45041         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
45042         Move macros to...
45043         * sysdeps/gnu/ldsodefs.h: ... this new file.
45044
45045         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
45046         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
45047         instead of ELFOSABI_LINUX.
45048
45049         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
45050         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
45051         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
45052         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
45053         Likewise.
45054         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
45055         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
45056         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
45057         Likewise.
45058         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
45059         (ibm_extended_long_double): Add ieee_nan member.
45060         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
45061         (do_test): New function.
45062
45063         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
45064         TEST_TRUNC.
45065         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
45066         functions, renamed from truncdfsf_test, trunctfsf_test,
45067         trunctfdf_test.
45068         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
45069         functions.
45070         (do_test): Run all these.
45071
45072 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
45073
45074         * argp/argp-help.c: Fix typos.
45075         * argp/argp-parse.c: Likewise.
45076         * debug/backtracesyms.c: Likewise.
45077         * elf/elf.h: Likewise.
45078         * malloc/malloc.c: Likewise.
45079         * nis/nis_print.c: Likewise.
45080         * resolv/res_comp.c: Likewise.
45081         * stdlib/stdlib.h: Likewise.
45082         * sunrpc/clnt_tcp.c: Likewise.
45083         * sunrpc/clnt_udp.c: Likewise.
45084         * sunrpc/clnt_unix.c: Likewise.
45085         * sysdeps/unix/bsd/ptsname.c: Likewise.
45086         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
45087         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
45088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
45089         Likewise.
45090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
45091         Likewise.
45092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
45093         Likewise.
45094         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
45095
45096 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45097
45098         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
45099         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45100
45101 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
45102
45103         [BZ #15897]
45104         * dlfcn/Makefile (tests): Add bug-dl-leaf.
45105         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
45106         ($(objpfx)bug-dl-leaf): New rule.
45107         ($(objpfx)bug-dl-leaf.so): Likewise.
45108         ($(objpfx)bug-dl-leaf.out): Likewise.
45109         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
45110         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
45111         * dlfcn/bug-dl-leaf.c: New test.
45112         * dlfcn/bug-dl-leaf-lib.c: Likewise.
45113         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
45114         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
45115         (dlclose): Likewise.
45116         (dlmopen): Likewise.
45117
45118 2013-08-27  Roland McGrath  <roland@hack.frob.com>
45119
45120         * include/netdb.h [!_ISOMAC]:
45121         Don't include <tls.h>.
45122         (h_errno, __libc_h_errno): Move declaration and macros out of
45123         [_LIBC_REENTRANT].
45124
45125         * include/resolv.h [_RESOLV_H_]:
45126         Don't include <tls.h>.
45127         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45128         * resolv/res_libc.c: Don't include <tls.h>.
45129         (_res): Use __attribute__ ((nocommon)) in place of
45130         __attribute__ ((section (".bss"))).
45131
45132         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45133         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45134
45135         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45136
45137         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45138         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45139
45140         * resolv/res_mkquery.c: Include <sys/time.h>.
45141
45142         * inet/ifreq.c: Moved to ...
45143         * sysdeps/unix/ifreq.c: ... here.
45144         * inet/ifreq.c: New file, true stub version.
45145
45146         * socket/sa_len.c: New file.
45147         * socket/Makefile (aux): Add it.
45148         * sysdeps/unix/sysv/linux/Makefile
45149         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45150         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45151         and #include <socket/sa_len.c>.
45152         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45153         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45154
45155         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45156         * bits/socket.h: ... here.
45157
45158         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45159         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45160         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45161
45162 2013-08-27  Andreas Schwab  <schwab@suse.de>
45163
45164         [BZ #15736]
45165         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45166         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45167         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45168         * string/test-strcasecmp.c (test_main): Run tests in several
45169         locales.
45170         * string/test-strncasecmp.c (test_main): Likewise.
45171
45172         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45173         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45174         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45175         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45176         (__strncasecmp_ssse3) [PIC]: Likewise.
45177
45178 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45179
45180         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45181
45182         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45183         instead of explicitly declaring xdecrypt.
45184         * nis/nss_nis/nis-publickey.c: Likewise.
45185
45186 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45187
45188         [BZ #15890]
45189         * nscd/aicache.c: Include res_hconf.h.
45190         (addhstaiX): Initialize res_hconf.
45191
45192 2013-08-26  Andreas Schwab  <schwab@suse.de>
45193
45194         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45195         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45196
45197 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45198
45199         * nscd/aicache.c (addhstaiX): Fix indentation.
45200
45201 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45202
45203         * configure.ac: Quote $build_pt_chown test.
45204         * configure: Regenerated.
45205
45206 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45207
45208         [BZ #15532]
45209         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45210         * math/s_cexpf.c (__cexpf): Likewise.
45211         * math/s_cexpl.c (__cexpl): Likewise.
45212         * math/libm-test.inc (cexp_test_data): Correct expected return
45213         value for NaN + i0.  Add another test.
45214
45215 2013-08-22  David S. Miller  <davem@davemloft.net>
45216
45217         * po/ca.po: Update Catalan translation from translation project.
45218         * po/uk.po: Add Ukrainian translations from translation project.
45219
45220 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45221
45222         [BZ #15797]
45223         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45224         is infinite, not alongside NaN test.
45225         * math/s_fdimf.c (__fdimf): Likewise.
45226         * math/s_fdiml.c (__fdiml): Likewise.
45227         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45228         errno is unchanged.
45229
45230 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45231
45232         * argp/argp-help.c: Fix typos.
45233         * crypt/speeds.c: Likewise.
45234         * csu/check_fds.c: Likewise.
45235         * elf/dl-load.c: Likewise.
45236         * elf/dl-open.c: Likewise.
45237         * elf/reldep3.c: Likewise.
45238         * elf/reldep.c: Likewise.
45239         * elf/sprof.c: Likewise.
45240         * iconv/iconv_charmap.c: Likewise.
45241         * iconv/skeleton.c: Likewise.
45242         * iconv/strtab.c: Likewise.
45243         * io/lockf64.c: Likewise.
45244         * libio/libioP.h: Likewise.
45245         * resolv/gai_notify.c: Likewise.
45246         * resolv/ns_name.c: Likewise.
45247         * resolv/ns_samedomain.c: Likewise.
45248         * resolv/res_send.c: Likewise.
45249         * stdlib/random.c: Likewise.
45250         * sunrpc/rpc/xdr.h: Likewise.
45251         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45252         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45253         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45254         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45255         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45256         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45257         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45258         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45259         * sysdeps/mach/hurd/check_fds.c: Likewise.
45260         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45261         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45262         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45263         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45264         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45265         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45266         * sysdeps/pthread/aio_notify.c: Likewise.
45267         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45268         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45269         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45270         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45271         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45272
45273 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45274
45275         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45276         version if bit_Slow_SSE4_2 is set.
45277         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45278         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45279
45280 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45281
45282         [BZ #15867]
45283         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45284         trampoline stack frame information.
45285         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45286         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45287         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45288         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45289         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45290         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45291         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45292         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45293         sa_flags value.
45294         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45295         interrupting a syscall and set with option SA_SIGINFO.
45296
45297 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45298
45299         [BZ #15531]
45300         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45301         argument is infinite.
45302         * math/s_cprojf.c (__cprojf): Likewise.
45303         * math/s_cprojl.c (__cprojl): Likewise.
45304         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45305         * math/libm-test.inc (cproj_test_data): Add more tests.
45306
45307         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45308
45309         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45310         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45311         size.  Use __ffs to determine corresponding shift.
45312
45313 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45314             Roland McGrath  <roland@hack.frob.com>
45315
45316         * Makefile (INSTALL): Remove trailing blank lines from output of
45317         makeinfo.
45318
45319 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45320
45321         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45322         Align 32 bit compat elf_greg to 8 bytes.
45323
45324 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45325
45326         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45327
45328 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45329
45330         * string/strcoll_l.c (coll_seq): New structure.
45331         (get_next_seq_cached): New function.
45332         (get_next_seq): New function.
45333         (do_compare): New function.
45334         (STRCOLL): Use GNU style definition.  Simplify implementation
45335         by using get_next_seq, get_next_seq_cached and do_compare.
45336
45337 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45338
45339         [BZ #14699]
45340         CVE-2013-4237
45341         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45342         member.
45343         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45344         member.
45345         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45346         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45347         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45348         conditional.
45349         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45350         GETDENTS_64BIT_ALIGNED.
45351         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45352         * manual/filesys.texi (Reading/Closing Directory): Document
45353         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45354         strongly.
45355         * manual/conf.texi (Limits for Files): Add portability note to
45356         NAME_MAX, PATH_MAX.
45357         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45358
45359 2013-08-13  Andreas Schwab  <schwab@suse.de>
45360
45361         [BZ #15749]
45362         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45363         of fabs.
45364         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45365         LDBL_MAX_EXP >= 16384]: Add tests for it.
45366
45367 2013-08-12  David S. Miller  <davem@davemloft.net>
45368
45369         * version.h (RELEASE): Set to "development".
45370         (VERSION): Set to "2.18.90".
45371         * NEWS: Add 2.19 section.
45372
45373 2013-08-03  David S. Miller  <davem@davemloft.net>
45374
45375         * po/ko.po: Update Korean translation from translation project.
45376
45377 2013-08-01  David S. Miller  <davem@davemloft.net>
45378
45379         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45380         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45381         Bilka.
45382
45383 2013-07-30  David S. Miller  <davem@davemloft.net>
45384
45385         * po/fr.po: Update French translation from translation project.
45386
45387 2013-07-28  David S. Miller  <davem@davemloft.net>
45388
45389         * po/cs.po: Update Czech translation from translation project.
45390
45391         * po/sv.po: Update Swedish translation from translation project.
45392
45393 2013-07-27  David S. Miller  <davem@davemloft.net>
45394
45395         * po/eo.po: Update Esperanto translation from translation project.
45396
45397         * po/vi.po: Update Vietnamese translation from translation project.
45398
45399         * po/de.po: Update German translation from translation project.
45400
45401 2013-07-26  David S. Miller  <davem@davemloft.net>
45402
45403         * po/bg.po: Update Bulgarian translation from translation project.
45404
45405         * po/nl.po: Update Dutch translation from translation project.
45406         * po/pl.po: Update Polish translation from translation project.
45407         * po/ru.po: Update Russian translation from translation project.
45408
45409 2013-07-24  David S. Miller  <davem@davemloft.net>
45410
45411         * po/libc.pot: Update.
45412
45413 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45414
45415         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45416         variable page size.
45417         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45418         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45419         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45420
45421 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45422
45423         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45424
45425 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45426             Andreas Schwab  <schwab@suse.de>
45427             Roland McGrath  <roland@hack.frob.com>
45428             Joseph Myers  <joseph@codesourcery.com>
45429             Carlos O'Donell  <carlos@redhat.com>
45430
45431         [BZ #15755]
45432         * config.h.in: Define HAVE_PT_CHOWN.
45433         * config.make.in (build-pt-chown): New variable.
45434         * configure.in (--enable-pt_chown): New configure option.
45435         * configure: Regenerate.
45436         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45437         build-pt-chown is enabled.
45438         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45439         pt_chown to fix pty ownership.
45440         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45441         CLOSE_ALL_FDS.
45442         * manual/install.texi (Configuring and compiling): Mention
45443         --enable-pt_chown. Add @findex for grantpt.
45444         * INSTALL: Regenerate.
45445
45446 2013-07-20  David S. Miller  <davem@davemloft.net>
45447
45448         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45449         difference between 32-bit and 64-bit.
45450
45451 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45452
45453         [BZ #15711]
45454         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45455         Avoid system header dependency with -ffreestanding.
45456         ($(objpfx)bits/syscall%d): Likewise.
45457
45458 2013-07-13  David S. Miller  <davem@davemloft.net>
45459
45460         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45461         underflows from atanl/atan2l due to bug 15319.
45462         (casinh_test_data): Likewise.
45463
45464 2013-07-07  David S. Miller  <davem@davemloft.net>
45465
45466         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45467
45468 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45469
45470         * sysdeps/i386/fpu/libm-test-ulps: Update.
45471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45472
45473 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45474
45475         * configure.in (--enable-lock-elision): Fix message text.
45476         * INSTALL: Regenerate.
45477         * configure: Regenerate.
45478
45479 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45480
45481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45482
45483 2013-07-03  Andreas Jaeger  <aj@suse.de>
45484
45485         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45486         define.
45487         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45488         (ptrace_peeksiginfo_args): Add.
45489         (__ptrace_peeksiginfo_flags): Add.
45490         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45491         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45492         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45493
45494 2013-07-03  Allan McRae  <allan@archlinux.org>
45495
45496         * sysdeps/i386/fpu/libm-test-ulps: Update.
45497
45498 2013-07-02  David S. Miller  <davem@davemloft.net>
45499
45500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45501
45502 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45503
45504         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45505
45506 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45507
45508         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45510
45511 2013-07-02  Andi Kleen <ak@linux.intel.com>
45512
45513         * config.h.in (ENABLE_LOCK_ELISION): Add.
45514         * configure.in (--enable-lock-elision): Add option.
45515         * manual/install.texi: Document --enable lock elision.
45516         * configure: Regenerate
45517         * INSTALL: Regenerate.
45518
45519 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45520
45521         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45522         SSE4.2 strcasecmp for libc.a.
45523         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45524
45525 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45526
45527         [BZ #13304]
45528         * soft-fp/op-common.h (_FP_FMA): New macro.
45529         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45530         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45531         (_FP_MUL_MEAT_1_imm): ... here.
45532         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45533         (_FP_MUL_MEAT_1_wide): ... here.
45534         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45535         (_FP_MUL_MEAT_1_hard): ... here.
45536         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45537         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45538         (_FP_MUL_MEAT_2_wide): ... here.
45539         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45540         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45541         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45542         (_FP_MUL_MEAT_2_gmp): ... here.
45543         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45544         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45545         (_FP_MUL_MEAT_4_wide): ... here.
45546         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45547         (_FP_MUL_MEAT_4_gmp): ... here.
45548         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45549         (_FP_WFRACBITS_DW_S): Likewise.
45550         (_FP_WFRACXBITS_DW_S): Likewise.
45551         (_FP_HIGHBIT_DW_S): Likewise.
45552         (FP_FMA_S): Likewise.
45553         (_FP_FRAC_HIGH_DW_S): Likewise.
45554         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45555         (_FP_WFRACBITS_DW_D): Likewise.
45556         (_FP_WFRACXBITS_DW_D): Likewise.
45557         (_FP_HIGHBIT_DW_D): Likewise.
45558         (FP_FMA_D): Likewise.
45559         (_FP_FRAC_HIGH_DW_D): Likewise.
45560         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45561         (_FP_WFRACBITS_DW_E): Likewise.
45562         (_FP_WFRACXBITS_DW_E): Likewise.
45563         (_FP_HIGHBIT_DW_E): Likewise.
45564         (FP_FMA_E): Likewise.
45565         (_FP_FRAC_HIGH_DW_E): Likewise.
45566         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45567         (_FP_WFRACBITS_DW_Q): Likewise.
45568         (_FP_WFRACXBITS_DW_Q): Likewise.
45569         (_FP_HIGHBIT_DW_Q): Likewise.
45570         (FP_FMA_Q): Likewise.
45571         (_FP_FRAC_HIGH_DW_Q): Likewise.
45572         * soft-fp/fmasf4.c: New file.
45573         * soft-fp/fmadf4.c: Likewise.
45574         * soft-fp/fmatf4.c: Likewise.
45575
45576 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45577
45578         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45579         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45580         Silvermont.
45581         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45582         macro.
45583         (index_Slow_SSE4_2): Likewise.
45584         (index_Prefer_PMINUB_for_stringop): Likewise.
45585         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45586         bit_Slow_SSE4_2 is set.
45587         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45588         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45589
45590 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45591
45592         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45593         rtld_global._dl_hwcap2.
45594         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45595         POWER8.
45596         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45597         POWER8 feature descriptions defined in _dl_hwcap2.
45598         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45599         string handling for POWER8 feature bits.
45600         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45601         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45602         _dl_powerpc_cap_flags.
45603         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45604         * sysdeps/powerpc/rtld-global-offsets.sym
45605         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45606         _dl_hwcap2 in the rtld_global_ro structure.
45607
45608 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45609
45610         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45611         hardware capabilities in support of AT_HWCAP2.
45612         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45613         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45614         GLRO(dl_hwcap2).
45615         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45616         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45617         explicitly the unknown a_type display mechanism is used.
45618         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45619         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45620         struct member.
45621         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45622         to macro prototype for AT_HWCAP2 support.
45623         * sysdeps/i386/dl-procinfo.h: Likewise.
45624         * sysdeps/s390/dl-procinfo.h: Likewise.
45625         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45626         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45627         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45628         return -1 for unknown a_type display fallback.
45629         * sysdeps/sparc/dl-procinfo.h: Likewise.
45630         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45631         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45632
45633 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45634
45635         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45636         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45637
45638 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45639
45640         [BZ #12492]
45641         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45642         mprotect making __stack_prot writable.
45643
45644 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45645             Joseph Myers  <joseph@codesourcery.com>
45646
45647         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45648         as being properly aligned.
45649
45650 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45651
45652         * dlfcn/modstatic5.c: New file.
45653         * dlfcn/tststatic5.c: New file.
45654         * dlfcn/Makefile (tests): Add tststatic5.
45655         (tests-static): Likewise.
45656         (modules-names): Add modstatic5.
45657         (tststatic5-ENV): New variable.
45658         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45659
45660         [BZ #15022]
45661         * elf/dl-support.c (_dl_main_map): New variable.
45662         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45663         (_dl_nns, _dl_load_adds): Set to 1.
45664         (_dl_initial_searchlist): Refer to _dl_main_map.
45665         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45666         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45667         call to _dl_get_origin.
45668         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45669         around call_map.
45670         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45671         * dlfcn/modstatic3.c: New file.
45672         * dlfcn/tststatic3.c: New file.
45673         * dlfcn/tststatic4.c: New file.
45674         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45675         (tests-static): Likewise.
45676         (modules-names): Add modstatic3.
45677         (tststatic3-ENV, tststatic4-ENV): New variables.
45678         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45679         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45680
45681 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45682
45683         * configure.in (CC): Require GCC version 4.4 or later.
45684         * configure: Regenerated.
45685         * manual/install.texi (Tools for Compilation): Update GCC version
45686         requirement.
45687         * INSTALL: Regenerated.
45688
45689 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45690
45691         [BZ #15674]
45692         * string/test-memcmp.c (check2): New.
45693         (main): Call check2.
45694
45695         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45696
45697 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45698
45699         [BZ #15022]
45700         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45701         over to...
45702         (dl_open_worker) [!SHARED]: ... here.
45703
45704 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45705
45706         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45707
45708 2013-06-25  Richard Henderson  <rth@redhat.com>
45709
45710         * locale/programs/locarchive.c: Include <libc-internal.h>
45711
45712 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45713
45714         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45715         trailing whitespace removed.
45716
45717 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45718
45719         [BZ #10283]
45720         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45721         * locale/programs/locarchive.c: Include libc-mmap.h.
45722         (prepare_address_space): Take two new outputs (the mmap base and len).
45723         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45724         values.
45725         (create_archive): Declare new mmap base and len values for
45726         prepare_address_space, and store the result in ah.
45727         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45728         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45729         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45730         Declare new mmap base and len values for
45731         prepare_address_space, and store the result in new_ah.
45732         (open_archive): Declare new mmap base and len values for
45733         prepare_address_space, and store the result in ah.
45734         (close_archive): If ah->mmap_base is not NULL, use that and
45735         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45736         * sysdeps/generic/libc-mmap.h: New file.
45737
45738 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45739
45740         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45741         (ALIGN_UP): Likewise.
45742         (PTR_ALIGN_DOWN): Likewise.
45743         (PTR_ALIGN_UP): Likewise.
45744
45745 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45746
45747         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45748         entry mapped to PPC_PLATFORM_POWER8.
45749         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45750         POWER8.
45751         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45752         (_dl_string_platform): Add case for exporting platform position for
45753         POWER8.
45754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45755         search path to sysdeps/powerpc/powerpc32/power8 directory.
45756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45757         search path to sysdeps/powerpc/powerpc64/power8 directory.
45758         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45759         power7 directories.
45760         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45761         power7 directories.
45762
45763 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45764
45765         * INSTALL: Regenerate.
45766
45767         * nscd/connections.c (nscd_init): Fix comment.
45768
45769 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45770
45771         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45772
45773         [BZ #15667]
45774         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45775         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45776
45777 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45778
45779         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45780         DL_DST_REQ_STATIC.
45781         (DL_DST_REQ_STATIC): Remove macro.
45782
45783 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45784
45785         [BZ #7006]
45786         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45787         with a shift of 0 bits.
45788
45789 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45790
45791         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45792         $(tststatic-ENV).
45793
45794 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45795
45796         [BZ #15655]
45797         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45798
45799 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45800
45801         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45802         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45803         accepts -fno-tree-loop-distribute-patterns.
45804         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45805         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45806         recursive call.
45807         * string/memset.c (memset): Likewise.
45808         * string/test-memmove.c (simple_memmove): Disable loop transformation
45809         to library calls.
45810         * string/test-memset.c (simple_memset): Likewise.
45811         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45812         * benchtests/bench-memset.c (simple_memset): Likewise.
45813         * configure: Regenerated.
45814
45815 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45816
45817         * math/test-misc.c (main): Ignore fesetround failure when failures
45818         of subsequent rounding tests would be ignored.
45819
45820         [BZ #15654]
45821         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45822         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45823         * math/fegetenv.c (__fegetenv): Return 0.
45824         * math/fegetexcept.c (fegetexcept): Return 0.
45825         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45826         FE_TONEAREST.
45827         * math/feholdexcpt.c (feholdexcept): Return 0.
45828         * math/fesetenv.c (__fesetenv): Return 0.
45829         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45830         argument FE_TONEAREST.
45831         * math/feupdateenv.c (__feupdateenv): Return 0.
45832         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45833
45834 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45835
45836         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45837         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45838         ($(objpfx)rtld-%.os rules): Use them.
45839
45840 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45841
45842         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45843         fields.
45844
45845 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45846
45847         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45848         length of target pattern, then descending length of dependency pattern.
45849         * configure.in (AWK): Require gawk 3.1.2 or newer.
45850         * manual/install.texi (Tools for Compilation): Say that we do.
45851         * configure: Regenerated.
45852
45853         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45854         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45855         * scripts/sysd-rules.awk: ... this new script.
45856         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45857         than a glob-style pattern.
45858
45859 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45860
45861         * math/test-misc.c (main): Do not treat incorrectly rounded
45862         conversions as failure unless ROUNDING_TESTS passes.
45863
45864 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45865
45866         [BZ #15631]
45867         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45868         restore exception state around main square root computation, then
45869         check for inexactness explicitly.
45870
45871         * math/libm-test.inc (fma_test_data): Add another test.
45872
45873 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45874
45875         * manual/threads.texi (Non-POSIX Extensions): New document
45876         node.  Document pthread_getattr_default_np and
45877         pthread_setattr_default_np.
45878
45879         * Versions.def (libpthread): Add GLIBC_2.18.
45880         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45882         Likewise.
45883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45884         Likewise.
45885         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45886         Likewise.
45887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45888         Likewise.
45889         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45890         Likewise.
45891         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45892         Likewise.
45893         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45894         Likewise.
45895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45896         Likewise.
45897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45898         Likewise.
45899
45900 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45901
45902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45903         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45904
45905 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45906             H.J. Lu  <hjl.tools@gmail.com>
45907
45908         [BZ #15627]
45909         * sysdeps/x86_64/rtld-memset.c: Remove file.
45910         * sysdeps/x86_64/rtld-memset.S: New file.
45911
45912 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45913
45914         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45915         (test_in_one_mode): Take arguments for whether the rounding mode
45916         is supported for each floating-point type.
45917         (do_test): Pass new arguments to test_in_one_mode using
45918         ROUNDING_TESTS.
45919
45920 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45921
45922         * posix/tst-waitid.c (do_test): Distinguish different instances of
45923         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45924         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45925         before entering the kernel for waitpid.
45926
45927 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45928
45929         * NEWS: Fix note on clock function precision.  Text by Roland
45930         McGrath.
45931
45932 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45933
45934         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45935         it into place only when and if the sanity check passes.
45936
45937 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45938
45939         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45940         output for whether conversion result is exact.  Take argument
45941         indicating whether type is IBM long double.
45942         (round_for_all): Change need_exact field to ibm_ld.
45943         * stdlib/tst-strtod-round.c (struct exactness): New type.
45944         (struct test): Change bool ld_ok field to struct exactness exact.
45945         (TEST): Update all definitions for change to field.
45946         (tests): Regenerate array contents.
45947         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45948         field value.  Check for IBM long double here.
45949         (do_test): Update calls to test_in_one_mode.
45950
45951 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45952
45953         [BZ #12515]
45954         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45955         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45956
45957 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45958
45959         [BZ #15605]
45960         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45961         generated by the compiler on loop optimizations.
45962         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45963         general definitions.
45964
45965 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45966
45967         * math/bug-nextafter.c: Include <math-tests.h>.
45968         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45969         the relevant type.
45970         * math/bug-nexttoward.c: Include <math-tests.h>.
45971         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45972         the relevant type.
45973         * math/test-misc.c: Include <math-tests.h>.
45974         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45975         the relevant type.
45976
45977 2013-06-12  Andreas Jaeger  <aj@suse.de>
45978
45979         * po/ia.po: Update Interlingua translation from translation
45980         project.
45981
45982 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45983
45984         * include/fenv.h: Include stdbool.h.
45985         (struct rm_ctx): New structure.
45986         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45987         Define macro.
45988         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45989         (SET_RESTORE_ROUNDF): Likewise.
45990         (SET_RESTORE_ROUNDL): Likewise.
45991         (SET_RESTORE_ROUND_NOEX): Likewise.
45992         (SET_RESTORE_ROUND_NOEXF): Likewise.
45993         (SET_RESTORE_ROUND_NOEXL): Likewise.
45994         (SET_RESTORE_ROUND_53BIT): Likewise.
45995         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45996         (libc_feresetround_noexf_ctx): Likewise.
45997         (libc_feresetround_noexl_ctx): Likewise.
45998         (libc_feholdsetround_53bit_ctx): Likewise.
45999         (libc_feresetround_53bit_ctx): Likewise.
46000         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
46001         (libc_feholdexcept_setround_sse_ctx): New function.
46002         (libc_fesetenv_sse_ctx): Likewise.
46003         (libc_feupdateenv_sse_ctx): Likewise.
46004         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
46005         (libc_feholdexcept_setround_387_ctx): Likewise.
46006         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
46007         (libc_feholdsetround_387_prec_ctx): Likewise.
46008         (libc_feholdsetround_387_ctx): Likewise.
46009         (libc_feholdsetround_387_53bit_ctx): Likewise.
46010         (libc_feholdsetround_sse_ctx): Likewise.
46011         (libc_feresetround_sse_ctx): Likewise.
46012         (libc_feresetround_387_ctx): Likewise.
46013         (libc_feupdateenv_387_ctx): Likewise.
46014         (libc_feholdexcept_setroundf_ctx): Define macro.
46015         (libc_fesetenvf_ctx): Likewise.
46016         (libc_feupdateenvf_ctx): Likewise.
46017         (libc_feholdsetroundf_ctx): Likewise.
46018         (libc_feresetroundf_ctx): Likewise.
46019         (libc_feholdexcept_setround_ctx): Likewise.
46020         (libc_fesetenv_ctx): Likewise.
46021         (libc_feupdateenv_ctx): Likewise.
46022         (libc_feholdsetround_ctx): Likewise.
46023         (libc_feresetround_ctx): Likewise.
46024         (libc_feholdexcept_setroundl_ctx): Likewise.
46025         (libc_feupdateenvl_ctx): Likewise.
46026         (libc_feholdsetroundl_ctx): Likewise.
46027         (libc_feresetroundl_ctx): Likewise.
46028         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
46029         (libc_feresetround_53bit_ctx): Likewise.
46030
46031 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46032
46033         * locale/iso-639.def: Convert to UTF-8.
46034
46035 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
46036
46037         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
46038         (EXCEPTION_TESTS_double): Likewise.
46039         (EXCEPTION_TESTS_long_double): Likewise.
46040         (EXCEPTION_TESTS): Likewise.
46041         * math/libm-test.inc (test_exceptions): Only test exceptions if
46042         EXCEPTION_TESTS (FLOAT).
46043
46044 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46045
46046         * benchtests/Makefile (string-bench): Add strcpy_chk and
46047         stpcpy_chk.
46048         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
46049         * benchtests/bench-stpcpy_chk.c: New file.
46050         * benchtests/bench-strcpy_chk-ifunc.c: New file.
46051         * benchtests/bench-strcpy_chk.c: New file.
46052         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
46053         code.
46054         (do_test): Likewise.
46055
46056 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46057
46058         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
46059         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
46060         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
46061         with tabs where appropriate.
46062         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
46063         dl-procinfo.h.
46064         [PPC_PLATFORM_PPC440]: Likewise.
46065         [PPC_PLATFORM_PPC464]: Likewise.
46066         [PPC_PLATFORM_PPC476]: Likewise.
46067         (_dl_string_platform): Add support for detecting ppc405, ppc440,
46068         ppc464, and ppc476 platform strings merging from ports/
46069         dl-procinfo.h.
46070
46071 2013-06-11  Andreas Schwab  <schwab@suse.de>
46072
46073         [BZ #14991]
46074         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
46075         (from_ucs4_idx): Regenerate.
46076         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
46077         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
46078         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
46079         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
46080         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
46081         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
46082         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
46083         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
46084         from FROM_LOOP and TO_LOOP specific macros.
46085         (BODY): Handle combining characters.
46086         * iconvdata/BIG5HKSCS.irreversible: Update.
46087         * iconvdata/BIG5HKSCS.precomposed: New file.
46088         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
46089         characters.
46090         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
46091
46092 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46093
46094         * include/sys/time.h: Fix indentation and add copyright header.
46095
46096         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
46097         (do_test): Likewise.
46098         * string/test-memchr.c (do_one_test): Likewise.
46099         (do_test): Likewise.
46100         * string/test-memcmp.c (do_one_test): Likewise.
46101         (do_test): Likewise.
46102         * string/test-memcpy.c (do_one_test): Likewise.
46103         (do_test): Likewise.
46104         * string/test-memmem.c (do_one_test): Likewise.
46105         (do_test): Likewise.
46106         (do_random_tests): Likewise.
46107         * string/test-memmove.c (do_one_test): Likewise.
46108         (do_test): Likewise.
46109         * string/test-memset.c (do_one_test): Likewise.
46110         (do_test): Likewise.
46111         * string/test-rawmemchr.c (do_one_test): Likewise.
46112         (do_test): Likewise.
46113         * string/test-strcasecmp.c (do_one_test): Likewise.
46114         (do_test): Likewise.
46115         * string/test-strcasestr.c (do_one_test): Likewise.
46116         (do_test): Likewise.
46117         * string/test-strcat.c (do_one_test): Likewise.
46118         (do_test): Likewise.
46119         * string/test-strchr.c (do_one_test): Likewise.
46120         (do_test): Likewise.
46121         * string/test-strcmp.c (do_one_test): Likewise.
46122         (do_test): Likewise.
46123         * string/test-strcpy.c (do_one_test): Likewise.
46124         (do_test): Likewise.
46125         * string/test-string.h: Likewise.
46126         (test_init): Likewise.
46127         * string/test-strlen.c (do_one_test): Likewise.
46128         (do_test): Likewise.
46129         * string/test-strncasecmp.c (do_one_test): Likewise.
46130         (do_test): Likewise.
46131         * string/test-strncat.c (do_one_test): Likewise.
46132         (do_test): Likewise.
46133         * string/test-strncmp.c (do_one_test): Likewise.
46134         (do_test_limit): Likewise.
46135         (do_test): Likewise.
46136         * string/test-strncpy.c (do_one_test): Likewise.
46137         (do_test): Likewise.
46138         * string/test-strnlen.c (do_one_test): Likewise.
46139         (do_test): Likewise.
46140         * string/test-strpbrk.c (do_one_test): Likewise.
46141         (do_test): Likewise.
46142         * string/test-strrchr.c (do_one_test): Likewise.
46143         (do_test): Likewise.
46144         * string/test-strspn.c (do_one_test): Likewise.
46145         (do_test): Likewise.
46146         * string/test-strstr.c (do_one_test): Likewise.
46147         (do_test): Likewise.
46148
46149         * benchtests/Makefile (string-bench): Add string benchmarks.
46150         * benchtests/bench-bcopy-ifunc.c: New file.
46151         * benchtests/bench-bcopy.c: New file.
46152         * benchtests/bench-bzero-ifunc.c: New file.
46153         * benchtests/bench-bzero.c: New file.
46154         * benchtests/bench-memccpy-ifunc.c: New file.
46155         * benchtests/bench-memccpy.c: New file.
46156         * benchtests/bench-memchr-ifunc.c: New file.
46157         * benchtests/bench-memchr.c: New file.
46158         * benchtests/bench-memcmp-ifunc.c: New file.
46159         * benchtests/bench-memcmp.c: New file.
46160         * benchtests/bench-memmem-ifunc.c: New file.
46161         * benchtests/bench-memmem.c: New file.
46162         * benchtests/bench-memmove-ifunc.c: New file.
46163         * benchtests/bench-memmove.c: New file.
46164         * benchtests/bench-mempcpy-ifunc.c: New file.
46165         * benchtests/bench-mempcpy.c: New file.
46166         * benchtests/bench-memset-ifunc.c: New file.
46167         * benchtests/bench-memset.c: New file.
46168         * benchtests/bench-rawmemchr-ifunc.c: New file.
46169         * benchtests/bench-rawmemchr.c: New file.
46170         * benchtests/bench-stpcpy-ifunc.c: New file.
46171         * benchtests/bench-stpcpy.c: New file.
46172         * benchtests/bench-stpncpy-ifunc.c: New file.
46173         * benchtests/bench-stpncpy.c: New file.
46174         * benchtests/bench-strcasecmp-ifunc.c: New file.
46175         * benchtests/bench-strcasecmp.c: New file.
46176         * benchtests/bench-strcasestr-ifunc.c: New file.
46177         * benchtests/bench-strcasestr.c: New file.
46178         * benchtests/bench-strcat-ifunc.c: New file.
46179         * benchtests/bench-strcat.c: New file.
46180         * benchtests/bench-strchr-ifunc.c: New file.
46181         * benchtests/bench-strchr.c: New file.
46182         * benchtests/bench-strchrnul-ifunc.c: New file.
46183         * benchtests/bench-strchrnul.c: New file.
46184         * benchtests/bench-strcmp-ifunc.c: New file.
46185         * benchtests/bench-strcmp.c: New file.
46186         * benchtests/bench-strcpy-ifunc.c: New file.
46187         * benchtests/bench-strcpy.c: New file.
46188         * benchtests/bench-strcspn-ifunc.c: New file.
46189         * benchtests/bench-strcspn.c: New file.
46190         * benchtests/bench-strlen-ifunc.c: New file.
46191         * benchtests/bench-strlen.c: New file.
46192         * benchtests/bench-strncasecmp-ifunc.c: New file.
46193         * benchtests/bench-strncasecmp.c: New file.
46194         * benchtests/bench-strncat-ifunc.c: New file.
46195         * benchtests/bench-strncat.c: New file.
46196         * benchtests/bench-strncmp-ifunc.c: New file.
46197         * benchtests/bench-strncmp.c: New file.
46198         * benchtests/bench-strncpy-ifunc.c: New file.
46199         * benchtests/bench-strncpy.c: New file.
46200         * benchtests/bench-strnlen-ifunc.c: New file.
46201         * benchtests/bench-strnlen.c: New file.
46202         * benchtests/bench-strpbrk-ifunc.c: New file.
46203         * benchtests/bench-strpbrk.c: New file.
46204         * benchtests/bench-strrchr-ifunc.c: New file.
46205         * benchtests/bench-strrchr.c: New file.
46206         * benchtests/bench-strspn-ifunc.c: New file.
46207         * benchtests/bench-strspn.c: New file.
46208         * benchtests/bench-strstr-ifunc.c: New file.
46209         * benchtests/bench-strstr.c: New file.
46210
46211         * benchtests/Makefile: Disable parallel execution of targets.
46212         (string-bench): Add memcpy.
46213         (benchset): New variable to store a list of benchmark sets.
46214         (bench-func): Renamed from bench.
46215         (bench-set): New target.
46216         (bench): Depend on bench-func and bench-set.
46217         * benchtests/README: Add section on benchmark sets.
46218         * benchtests/bench-memcpy-ifunc.c: New file.
46219         * benchtests/bench-memcpy.c: New file.
46220         * benchtests/bench-string.h: New file.
46221
46222 2013-06-11  Andreas Schwab  <schwab@suse.de>
46223
46224         [BZ #15577]
46225         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46226         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46227         values in the triple.
46228         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46229         terminator in the group key.
46230
46231 2013-06-11  Andreas Jaeger  <aj@suse.de>
46232
46233         * po/zh_TW.po: Update Chinese (traditional) translation from
46234         translation project.
46235
46236 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46237
46238         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46239         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46240         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46241         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46242         (clock_getcpuclockid): Likewise.
46243         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46244         Add weak_alias and libc_hidden_def.
46245         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46246         * rt/clock_gettime.c (clock_gettime): Rename to
46247         __clock_gettime.  Add weak_alias and libc_hidden_def.
46248         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46249         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46250         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46251         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46252         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46253         Likewise.
46254         * rt/clock_settime.c (clock_settime): Rename to
46255         __clock_settime.  Add weak_alias and libc_hidden_def.
46256         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46257
46258 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46259
46260         * mach/err_boot.sub: Remove trailing whitespace.
46261         * mach/err_ipc.sub: Likewise.
46262         * mach/err_mach.sub: Likewise.
46263
46264         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46265         (ROUNDING_TESTS_double): Likewise.
46266         (ROUNDING_TESTS_long_double): Likewise.
46267         (ROUNDING_TESTS): Likewise.
46268         * math/libm-test.inc: Include <math-tests.h>.
46269         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46270         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46271         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46272         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46273
46274 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46275
46276         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46277         of assigning.
46278
46279 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46280
46281         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46282         otherwise empty TRANS lines.
46283         * sysdeps/gnu/errlist.c: Regenerated.
46284
46285         * catgets/gencat.c (error_print): Use (void) in function
46286         definition.
46287         * crypt/crypt_util.c (__init_des): Likewise.
46288         * crypt/speeds.c (Stop): Likewise.
46289         (main): Likewise.
46290         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46291         * inet/ruserpass.c (token): Likewise.
46292         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46293         * intl/localealias.c (extend_alias_table): Likewise.
46294         * intl/plural-exp.c (init_germanic_plural): Likewise.
46295         * libio/fcloseall.c (__fcloseall): Likewise.
46296         * libio/genops.c (_IO_flush_all): Likewise.
46297         (_IO_flush_all_linebuffered): Likewise.
46298         (_IO_cleanup): Likewise.
46299         (_IO_iter_begin): Likewise.
46300         (_IO_iter_end): Likewise.
46301         (_IO_list_lock): Likewise.
46302         (_IO_list_unlock): Likewise.
46303         (_IO_list_resetlock): Likewise.
46304         * libio/getchar.c (getchar): Likewise.
46305         * libio/getchar_u.c (getchar_unlocked): Likewise.
46306         * libio/getwchar.c (getwchar): Likewise.
46307         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46308         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46309         * login/getpt.c (__getpt): Likewise.
46310         * login/tst-utmp.c (main): Likewise.
46311         * malloc/hooks.c (__malloc_check_init): Likewise.
46312         * malloc/malloc.c (__malloc_stats): Likewise.
46313         * malloc/mtrace.c (tr_break): Likewise.
46314         (mtrace): Likewise.
46315         (muntrace): Likewise.
46316         * misc/fstab.c (endfsent): Likewise.
46317         * misc/getclktck.c (__getclktck): Likewise.
46318         * misc/getdtsz.c (__getdtablesize): Likewise.
46319         * misc/gethostid.c (gethostid): Likewise.
46320         * misc/getpagesize.c (__getpagesize): Likewise.
46321         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46322         (__get_nprocs): Likewise.
46323         (__get_phys_pages): Likewise.
46324         (__get_avphys_pages): Likewise.
46325         * misc/getttyent.c (getttyent): Likewise.
46326         (setttyent): Likewise.
46327         (endttyent): Likewise.
46328         * misc/getusershell.c (getusershell): Likewise.
46329         (endusershell): Likewise.
46330         (setusershell): Likewise.
46331         (initshells): Likewise.
46332         * misc/hsearch.c (__hdestroy): Likewise.
46333         * misc/sync.c (sync): Likewise.
46334         * misc/syslog.c (closelog_internal): Likewise.
46335         (closelog): Likewise.
46336         * misc/ttyslot.c (ttyslot): Likewise.
46337         * misc/vhangup.c (vhangup): Likewise.
46338         * posix/fork.c (__fork): Likewise.
46339         * posix/getegid.c (__getegid): Likewise.
46340         * posix/geteuid.c (__geteuid): Likewise.
46341         * posix/getgid.c (__getgid): Likewise.
46342         * posix/getpid.c (__getpid): Likewise.
46343         * posix/getppid.c (__getppid): Likewise.
46344         * posix/getuid.c (__getuid): Likewise.
46345         * posix/pause.c (pause): Likewise.
46346         * posix/setpgrp.c (setpgrp): Likewise.
46347         * posix/setsid.c (__setsid): Likewise.
46348         * posix/test-vfork.c (noop): Likewise.
46349         * resolv/gethnamaddr.c (_endhtent): Likewise.
46350         (_gethtent): Likewise.
46351         (ht_endhostent): Likewise.
46352         (gethostent): Likewise.
46353         (dns_service): Likewise.
46354         * stdlib/drand48.c (drand48): Likewise.
46355         * stdlib/lrand48.c (lrand48): Likewise.
46356         * stdlib/mrand48.c (mrand48): Likewise.
46357         * stdlib/rand.c (rand): Likewise.
46358         * stdlib/random.c (__random): Likewise.
46359         * stdlib/setenv.c (clearenv): Likewise.
46360         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46361         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46362         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46363         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46364         (__get_nprocs): Likewise.
46365         (__get_phys_pages): Likewise.
46366         (__get_avphys_pages): Likewise.
46367         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46368         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46369         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46370         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46371         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46372         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46373         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46374         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46375         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46376         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46377         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46378         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46379         * sysdeps/posix/clock.c (clock): Likewise.
46380         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46381         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46382         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46383         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46384         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46385         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46386         (__get_nprocs_conf): Likewise.
46387         (__get_phys_pages): Likewise.
46388         (__get_avphys_pages): Likewise.
46389         * time/clock.c (clock): Likewise.
46390         * time/tzset.c (__tzname_max): Likewise.
46391
46392 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46393
46394         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46395         (__bswap_32): Do not use "register".
46396         * crypt/crypt.c (_ufc_doit_r): Likewise.
46397         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46398         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46399         * gmon/gmon.c (__monstartup): Likewise.
46400         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46401         * hurd/hurdmalloc.c (more_memory): Likewise.
46402         (malloc): Likewise.
46403         (free): Likewise.
46404         (realloc): Likewise.
46405         (malloc_fork_prepare): Likewise.
46406         (malloc_fork_parent): Likewise.
46407         (malloc_fork_child): Likewise.
46408         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46409         (_svcauth_des): Likewise.
46410         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46411         * inet/inet_net.c (inet_network): Likewise.
46412         * inet/inet_netof.c (inet_netof): Likewise.
46413         * inet/rcmd.c (__validuser2_sa): Likewise.
46414         * io/fts.c (fts_open): Likewise.
46415         (fts_load): Likewise.
46416         (fts_close): Likewise.
46417         (fts_read): Likewise.
46418         (fts_children): Likewise.
46419         (fts_build): Likewise.
46420         (fts_stat): Likewise.
46421         (fts_sort): Likewise.
46422         (fts_alloc): Likewise.
46423         (fts_lfree): Likewise.
46424         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46425         (_IO_file_xsgetn): Likewise.
46426         (_IO_file_xsgetn_mmap): Likewise.
46427         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46428         (_IO_cookie_write): Likewise.
46429         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46430         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46431         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46432         * malloc/obstack.c (_obstack_begin): Likewise.
46433         (_obstack_begin_1): Likewise.
46434         (_obstack_newchunk): Likewise.
46435         (_obstack_allocated_p): Likewise.
46436         (obstack_free): Likewise.
46437         (_obstack_memory_used): Likewise.
46438         * misc/getttyent.c (getttynam): Likewise.
46439         (getttyent): Likewise.
46440         (skip): Likewise.
46441         (value): Likewise.
46442         * misc/getusershell.c (initshells): Likewise.
46443         * misc/syslog.c (__vsyslog_chk): Likewise.
46444         * misc/ttyslot.c (ttyslot): Likewise.
46445         * nis/nis_hash.c (__nis_hash): Likewise.
46446         * posix/fnmatch_loop.c (FCT): Likewise.
46447         * posix/getconf.c (print_all): Likewise.
46448         (main): Likewise.
46449         * posix/getopt.c (exchange): Likewise.
46450         * posix/glob.c (globfree): Likewise.
46451         (prefix_array): Likewise.
46452         (__glob_pattern_type): Likewise.
46453         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46454         (NS_GET32): Likewise.
46455         (NS_PUT16): Likewise.
46456         (NS_PUT32): Likewise.
46457         * resolv/gethnamaddr.c (getanswer): Likewise.
46458         (gethostbyname2): Likewise.
46459         (gethostbyaddr): Likewise.
46460         (_gethtent): Likewise.
46461         (_gethtbyname2): Likewise.
46462         (_gethtbyaddr): Likewise.
46463         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46464         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46465         * resolv/res_init.c (__res_vinit): Likewise.
46466         (net_mask): Likewise.
46467         * resolv/res_mkquery.c (outchar): Likewise.
46468         (PRINT): Likewise.
46469         * stdio-common/printf_fp.c (outchar): Likewise.
46470         (PRINT): Likewise.
46471         * stdio-common/printf_fphex.c (outchar): Likewise.
46472         (PRINT): Likewise.
46473         * stdio-common/printf_size.c (outchar): Likewise.
46474         (PRINT): Likewise.
46475         * stdio-common/test_rdwr.c (main): Likewise.
46476         * stdio-common/tfformat.c (matches): Likewise.
46477         * stdio-common/vfprintf.c (outchar): Likewise.
46478         (printf_unknown): Likewise.
46479         (buffered_vfprintf): Likewise.
46480         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46481         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46482         (ReadFile): Likewise.
46483         * stdlib/qsort.c (SWAP): Likewise.
46484         (_quicksort): Likewise.
46485         * stdlib/setenv.c (__add_to_environ): Likewise.
46486         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46487         * stdlib/strtol_l.c (__strtol_l): Likewise.
46488         * stdlib/tst-strtod.c (main): Likewise.
46489         * stdlib/tst-strtol.c (main): Likewise.
46490         * stdlib/tst-strtoll.c (main): Likewise.
46491         * string/bits/string2.h (__strcmp_cc): Likewise.
46492         (__strcmp_cg): Likewise.
46493         (__strcspn_c1): Likewise.
46494         (__strcspn_c2): Likewise.
46495         (__strcspn_c3): Likewise.
46496         (__strspn_c1): Likewise.
46497         (__strspn_c2): Likewise.
46498         (__strspn_c3): Likewise.
46499         (__strsep_1c): Likewise.
46500         (__strsep_2c): Likewise.
46501         (__strsep_3c): Likewise.
46502         * string/memccpy.c (__memccpy): Likewise.
46503         * string/stpcpy.c (__stpcpy): Likewise.
46504         * string/strcmp.c (strcmp): Likewise.
46505         * string/strrchr.c (strrchr): Likewise.
46506         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46507         Likewise.
46508         * sysdeps/mach/hurd/getcwd.c
46509         (_hurd_canonicalize_directory_name_internal): Likewise.
46510         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46511         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46512         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46513         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46514         Likewise, in both definitions.
46515         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46516         definitions.
46517         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46518         64] (__bswap_64): Likewise.
46519         * time/test_time.c (main): Likewise.
46520         * time/tzfile.c (__tzfile_read): Likewise.
46521         (__tzfile_compute): Likewise.
46522         * time/tzset.c (__tzset_parse_tz): Likewise.
46523         (tzset_internal): Likewise.
46524         (compute_change): Likewise.
46525         * wcsmbs/wcscat.c (__wcscat): Likewise.
46526         * wcsmbs/wcschr.c (wcschr): Likewise.
46527         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46528         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46529         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46530         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46531         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46532         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46533         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46534         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46535         * wcsmbs/wmemset.c (wmemset): Likewise.
46536
46537 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46538
46539         * scripts/config.guess: Update to version 2013-05-16.
46540         * scripts/config.sub: Update to version 2013-04-24.
46541         * scripts/install-sh: Update to version 2011-11-20.07.
46542         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46543         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46544
46545 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46546
46547         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46548         * elf/sln.c: Likewise.
46549         * hurd/hurd/ioctl.h: Likewise.
46550         * hurd/hurdmalloc.c: Likewise.
46551         * hurd/xattr.c: Likewise.
46552         * include/shlib-compat.h: Likewise.
46553         * inet/ruserpass.c: Likewise.
46554         * libio/iofgets_u.c: Likewise.
46555         * libio/iofgetws_u.c: Likewise.
46556         * locale/programs/ld-identification.c: Likewise.
46557         * locale/programs/ld-time.c: Likewise.
46558         * mach/msg-destroy.c: Likewise.
46559         * nss/nss_files/files-netgrp.c: Likewise.
46560         * resolv/res_data.c: Likewise.
46561         * soft-fp/op-1.h: Likewise.
46562         * soft-fp/op-2.h: Likewise.
46563         * soft-fp/op-4.h: Likewise.
46564         * soft-fp/op-common.h: Likewise.
46565         * stdio-common/printf_fphex.c: Likewise.
46566         * stdlib/strtod_l.c: Likewise.
46567         * sunrpc/rpc/clnt.h: Likewise.
46568         * sysdeps/generic/framestate.c: Likewise.
46569         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46570         * sysdeps/i386/bsd-setjmp.S: Likewise.
46571         * sysdeps/i386/__longjmp.S: Likewise.
46572         * sysdeps/i386/setjmp.S: Likewise.
46573         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46574         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46575         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46576         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46577         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46578         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46579         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46580         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46581         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46582         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46583         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46584         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46585         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46586         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46587         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46588         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46589         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46590         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46591         * sysdeps/ieee754/support.c: Likewise.
46592         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46593         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46594         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46595         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46596         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46597         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46598         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46599         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46600         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46601         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46602         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46603         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46604         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46605         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46606         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46607         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46608         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46610
46611 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46612
46613         * posix/transbug.c: Remove executable mode.
46614
46615 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46616
46617         * crypt/speeds.c: Remove trailing whitespace.
46618         * dlfcn/default.c: Likewise.
46619         * elf/ifuncdep2.c: Likewise.
46620         * elf/ifuncmain1.c: Likewise.
46621         * elf/ifuncmain1vis.c: Likewise.
46622         * elf/testobj.h: Likewise.
46623         * elf/tst-stackguard1.c: Likewise.
46624         * gmon/sys/gmon.h: Likewise.
46625         * hurd/hurdmsg.c: Likewise.
46626         * hurd/new-fd.c: Likewise.
46627         * hurd/ports-get.c: Likewise.
46628         * iconvdata/ibm1008_420.c: Likewise.
46629         * inet/tst-getni1.c: Likewise.
46630         * inet/tst-getni2.c: Likewise.
46631         * libio/ioungetc.c: Likewise.
46632         * libio/wfiledoalloc.c: Likewise.
46633         * manual/libm-err-tab.pl: Likewise.
46634         * math/w_dremf.c: Likewise.
46635         * misc/ftruncate.c: Likewise.
46636         * posix/bug-glob2.c: Likewise.
46637         * posix/tst-pcre.c: Likewise.
46638         * posix/wait4.c: Likewise.
46639         * resolv/README: Likewise.
46640         * resolv/res_debug.h: Likewise.
46641         * resolv/tst-inet_ntop.c: Likewise.
46642         * setjmp/bug269-setjmp.c: Likewise.
46643         * soft-fp/extended.h: Likewise.
46644         * soft-fp/op-1.h: Likewise.
46645         * soft-fp/op-2.h: Likewise.
46646         * soft-fp/op-4.h: Likewise.
46647         * soft-fp/op-8.h: Likewise.
46648         * soft-fp/testit.c: Likewise.
46649         * stdio-common/bug16.c: Likewise.
46650         * stdlib/random.c: Likewise.
46651         * sunrpc/rpcsvc/rquota.x: Likewise.
46652         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46653         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46654         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46655         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46656         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46657         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46658         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46659         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46660         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46661         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46662         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46663         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46664         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46665         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46666         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46667         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46668         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46669         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46670         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46671         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46672         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46673         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46674         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46675         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46676         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46677         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46678         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46679         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46680         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46681         * sysdeps/ieee754/s_lib_version.c: Likewise.
46682         * sysdeps/mach/hurd/check_fds.c: Likewise.
46683         * sysdeps/mach/hurd/getsockname.c: Likewise.
46684         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46685         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46686         * sysdeps/powerpc/bits/link.h: Likewise.
46687         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46688         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46689         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46690         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46691         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46692         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46693         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46694         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46695         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46696         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46697         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46698         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46699         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46700         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46701         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46702         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46703         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46704         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46705         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46706         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46707         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46708         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46709         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46710         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46711         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46712         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46713         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46714         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46715         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46716         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46717         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46718         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46719         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46720         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46721         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46722         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46723         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46724         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46725         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46726         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46727         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46728         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46729         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46730         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46731         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46732         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46733         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46734         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46735         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46736         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46737         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46738         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46739         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46740         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46741         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46742         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46743         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46744         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46745         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46746         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46747         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46748         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46749         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46750         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46751         * sysdeps/powerpc/sysdep.h: Likewise.
46752         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46753         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46754         * sysdeps/sh/dl-trampoline.S: Likewise.
46755         * sysdeps/sh/memset.S: Likewise.
46756         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46757         * sysdeps/sh/strlen.S: Likewise.
46758         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46759         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46760         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46761         * sysdeps/sparc/sparc32/rem.S: Likewise.
46762         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46763         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46764         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46765         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46766         * sysdeps/sparc/sparc32/urem.S: Likewise.
46767         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46768         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46769         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46770         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46771         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46772         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46773         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46774         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46775         * sysdeps/unix/bsd/times.c: Likewise.
46776         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46777         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46781         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46782         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46783         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46784         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46785         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46786         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46787         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46788         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46789         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46790         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46791         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46792         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46793         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46794         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46795         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46796         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46797         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46798         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46799         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46800         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46801         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46802         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46803         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46804         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46805         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46806         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46807         * sysdeps/x86_64/strcspn.S: Likewise.
46808
46809 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46810
46811         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46812         generated file.  Regenerate properly from gen-translit.pl.
46813         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46814         locale/C-translit.h.
46815
46816 2013-06-05  Andreas Schwab  <schwab@suse.de>
46817
46818         [BZ #15100]
46819         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46820         week as 6 instead of -1.
46821         * time/tst-strptime.c (day_tests): Add test case.
46822
46823 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46824
46825         * sysdeps/generic/math_private.h
46826         (libc_feholdexcept_setround_53bit): Replace with
46827         libc_feholdsetround_53bit.
46828         (libc_feupdateenv_53bit): Replace with
46829         libc_feresetround_53bit.
46830         (SET_RESTORE_ROUND_53BIT): Adjust.
46831
46832 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46833
46834         * string/test-strchrnul.c: Add copyright header.
46835
46836         * posix/tst-getaddrinfo4.c: Increase test timeout.
46837
46838 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46839
46840         [BZ #15536]
46841         * math/libm-test.inc (MAX_EXP): Remove
46842         (MIN_EXP): Define.
46843         (ulp): Use MIN_EXP - MANT_DIG.
46844         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46845
46846 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46847
46848         * po/be.po: Revert last change.
46849         * po/zh_CN.po: Likewise.
46850         * po/header.pot: Likewise.
46851
46852 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46853
46854         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46855         link-libc-deps to empty as target-specific variable.
46856         * Makerules (link-libc-args): New variable.
46857         (libc-for-link): Likewise.
46858         (link-libc-deps): Likewise.
46859         (lib%.so): Depend on $(link-libc-deps).  Link with
46860         $(link-libc-args).
46861         (build-module): Link with $(link-libc-args).
46862         (build-module-asneeded): Likewise.
46863         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46864         list of objects.
46865         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46866         target-specific variable.
46867         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46868         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46869         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46870         libc.
46871         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46872         libc and ld.so.
46873         ($(objpfx)libpcprofile.so): Likewise.
46874         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46875         libc_nonshared.a.
46876         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46877         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46878         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46879         $(link-libc-deps).
46880         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46881         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46882         * login/Makefile ($(objpfx)libutil.so): Likewise.
46883         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46884         * math/Makefile ($(objpfx)libm.so): Likewise.
46885         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46886         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46887         variable instead of depending directly on libc.
46888         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46889         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46890         $(link-libc-deps).
46891         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46892         libc.
46893         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46894         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46895         ($(objpfx)libanl.so): Likewise.
46896         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46897         ld.so.
46898         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46899         $(link-libc-deps).
46900         * sysdeps/i386/fpu/Makefile: Remove file.
46901         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46902         ($(objpfx)libm.so): Remove dependency on ld.so.
46903
46904 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46905
46906         [BZ # 15553]
46907         * nis/yp_xdr.c (XDRMAXNAME): Define.
46908         (XDRMAXRECORD): Define.
46909         (xdr_domainname): Use XDRMAXNAME.
46910         (xdr_mapname): Likewise.
46911         (xdr_peername): Likewise.
46912         (xdr_keydat): Use XDRMAXRECORD.
46913         (xdr_valdat): Likewise.
46914
46915 2013-05-30  Jeff Law  <law@redhat.com>
46916
46917         [BZ #14256]
46918         * manual/errno.texi (ESTALE): Update to account for more than
46919         just NFS file systems.
46920         * sysdeps/gnu/errlist.c: Regenerated.
46921
46922 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46923
46924         [BZ #15465]
46925         * elf/Makefile (tests): Add tst-null-argv.
46926         (modules-names):  Add tst-null-argv-lib.
46927         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46928         (tst-null-argv-ENV): Set environment for tst-null-argv.
46929         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46930         (RTLD_PROGNAME): New macro.
46931         * elf/tst-null-argv.c: New test case.
46932         * elf/tst-null-argv-lib.c: Library for test case.
46933         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46934         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46935         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46936         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46937         * elf/dl-init.c (call_init): Likewise.
46938         (_dl_init): Likewise.
46939         * elf/dl-load.c (print_search_path): Likewise.
46940         (_dl_map_object): Likewise.
46941         * elf/dl-lookup.c (do_lookup_x): Likewise.
46942         (add_dependency): Likewise.
46943         (_dl_lookup_symbol_x): Likewise.
46944         (_dl_debug_bindings): Likewise.
46945         * elf/dl-open.c (_dl_show_scope): Likewise.
46946         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46947         * elf/dl-version.c (match_symbol): Likewise.
46948         (_dl_check_map_versions): Likewise.
46949         * elf/rtld.c (dl_main): Likewise.
46950         (print_unresolved): Use RTLD_PROGNAME.
46951         (print_missing_version): Likewise.
46952         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46953         (elf_machine_rela): Likewise.
46954         * sysdeps/powerpc/powerpc32/dl-machine.c
46955         (__process_machine_rela): Likewise.
46956         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46957         Likewise.
46958         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46959         Likewise.
46960         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46961         Likewise.
46962         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46963         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46964         Likewise.
46965         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46966         Likewise.
46967         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46968
46969 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46970
46971         * po/be.po: Add descriptive title.
46972         * po/zh_CN.po: Likewise.
46973         * po/header.pot: Likewise.
46974
46975 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46976
46977         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46978         error message.
46979         (enlarge_archive): Likewise.
46980
46981 2013-05-28  Ben North  <ben@redfrontdoor.org>
46982
46983         * manual/arith.texi (frexp): It is the magnitude of the return
46984         value which lies in [0.5, 1), not the return value itself.
46985
46986 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46987
46988         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46989
46990 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46991
46992         * stdio-common/bug26.c (main): Correct fscanf template.
46993
46994         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46995         declare _dl_skip_args.
46996
46997         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46998         Don't declare.
46999
47000         * manual/platform.texi: Add missing @end deftypefun.
47001
47002 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47003
47004         [BZ #15529]
47005         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
47006         bit of mantissa of 2^16382.
47007         * math/libm-test.inc (hypot_test_data): Add more tests.
47008
47009         * math/libm-test.inc: Add drem and pow10 to list of tested
47010         functions.
47011         (pow10_test): New function.
47012         (drem_test): Likewise.
47013         (drem_test_tonearest): Likewise.
47014         (drem_test_towardzero): Likewise.
47015         (drem_test_downward): Likewise.
47016         (drem_test_upward): Likewise.
47017         (main): Call the new functions.
47018
47019         * math/libm-test.inc (finite_test_data): Remove.
47020         (finite_test): Run tests from isfinite_test_data.
47021         (gamma_test_data): Remove.
47022         (gamma_test): Run tests from lgamma_test_data.
47023         * sysdeps/i386/fpu/libm-test-ulps: Update.
47024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47025
47026 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47027
47028         * manual/platform.texi: Add PowerPC PPR function set documentation.
47029         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
47030         implementation.
47031
47032 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
47033
47034         * math/libm-test.inc (MAX_EXP): Define.
47035         (ULPDIFF): Define.
47036         (ulp): New function.
47037         (check_float_internal): Use ULPDIFF.
47038         (cpow_test): Disable failing test.
47039         (check_ulp): Test ulp() implemetnation.
47040         (main): Call check_ulp before starting tests.
47041
47042 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47043
47044         * math/gen-libm-test.pl (generate_testfile): Do not handle
47045         START_DATA and END_DATA.
47046         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
47047         END_DATA.
47048         (acos_tonearest_test_data): Likewise.
47049         (acos_towardzero_test_data): Likewise.
47050         (acos_downward_test_data): Likewise.
47051         (acos_upward_test_data): Likewise.
47052         (acosh_test_data): Likewise.
47053         (asin_test_data): Likewise.
47054         (asin_tonearest_test_data): Likewise.
47055         (asin_towardzero_test_data): Likewise.
47056         (asin_downward_test_data): Likewise.
47057         (asin_upward_test_data): Likewise.
47058         (asinh_test_data): Likewise.
47059         (atan_test_data): Likewise.
47060         (atanh_test_data): Likewise.
47061         (atan2_test_data): Likewise.
47062         (cabs_test_data): Likewise.
47063         (cacos_test_data): Likewise.
47064         (cacosh_test_data): Likewise.
47065         (carg_test_data): Likewise.
47066         (casin_test_data): Likewise.
47067         (casinh_test_data): Likewise.
47068         (catan_test_data): Likewise.
47069         (catanh_test_data): Likewise.
47070         (cbrt_test_data): Likewise.
47071         (ccos_test_data): Likewise.
47072         (ccosh_test_data): Likewise.
47073         (ceil_test_data): Likewise.
47074         (cexp_test_data): Likewise.
47075         (cimag_test_data): Likewise.
47076         (clog_test_data): Likewise.
47077         (clog10_test_data): Likewise.
47078         (conj_test_data): Likewise.
47079         (copysign_test_data): Likewise.
47080         (cos_test_data): Likewise.
47081         (cos_tonearest_test_data): Likewise.
47082         (cos_towardzero_test_data): Likewise.
47083         (cos_downward_test_data): Likewise.
47084         (cos_upward_test_data): Likewise.
47085         (cosh_test_data): Likewise.
47086         (cosh_tonearest_test_data): Likewise.
47087         (cosh_towardzero_test_data): Likewise.
47088         (cosh_downward_test_data): Likewise.
47089         (cosh_upward_test_data): Likewise.
47090         (cpow_test_data): Likewise.
47091         (cproj_test_data): Likewise.
47092         (creal_test_data): Likewise.
47093         (csin_test_data): Likewise.
47094         (csinh_test_data): Likewise.
47095         (csqrt_test_data): Likewise.
47096         (ctan_test_data): Likewise.
47097         (ctan_tonearest_test_data): Likewise.
47098         (ctan_towardzero_test_data): Likewise.
47099         (ctan_downward_test_data): Likewise.
47100         (ctan_upward_test_data): Likewise.
47101         (ctanh_test_data): Likewise.
47102         (ctanh_tonearest_test_data): Likewise.
47103         (ctanh_towardzero_test_data): Likewise.
47104         (ctanh_downward_test_data): Likewise.
47105         (ctanh_upward_test_data): Likewise.
47106         (erf_test_data): Likewise.
47107         (erfc_test_data): Likewise.
47108         (exp_test_data): Likewise.
47109         (exp_tonearest_test_data): Likewise.
47110         (exp_towardzero_test_data): Likewise.
47111         (exp_downward_test_data): Likewise.
47112         (exp_upward_test_data): Likewise.
47113         (exp10_test_data): Likewise.
47114         (exp2_test_data): Likewise.
47115         (expm1_test_data): Likewise.
47116         (fabs_test_data): Likewise.
47117         (fdim_test_data): Likewise.
47118         (finite_test_data): Likewise.
47119         (floor_test_data): Likewise.
47120         (fma_test_data): Likewise.
47121         (fma_towardzero_test_data): Likewise.
47122         (fma_downward_test_data): Likewise.
47123         (fma_upward_test_data): Likewise.
47124         (fmax_test_data): Likewise.
47125         (fmin_test_data): Likewise.
47126         (fmod_test_data): Likewise.
47127         (fpclassify_test_data): Likewise.
47128         (frexp_test_data): Likewise.
47129         (gamma_test_data): Likewise.
47130         (hypot_test_data): Likewise.
47131         (ilogb_test_data): Likewise.
47132         (isfinite_test_data): Likewise.
47133         (isgreater_test_data): Likewise.
47134         (isgreaterequal_test_data): Likewise.
47135         (isinf_test_data): Likewise.
47136         (isless_test_data): Likewise.
47137         (islessequal_test_data): Likewise.
47138         (islessgreater_test_data): Likewise.
47139         (isnan_test_data): Likewise.
47140         (isnormal_test_data): Likewise.
47141         (issignaling_test_data): Likewise.
47142         (isunordered_test_data): Likewise.
47143         (j0_test_data): Likewise.
47144         (j1_test_data): Likewise.
47145         (jn_test_data): Likewise.
47146         (ldexp_test_data): Likewise.
47147         (lgamma_test_data): Likewise.
47148         (lrint_test_data): Likewise.
47149         (lrint_tonearest_test_data): Likewise.
47150         (lrint_towardzero_test_data): Likewise.
47151         (lrint_downward_test_data): Likewise.
47152         (lrint_upward_test_data): Likewise.
47153         (llrint_test_data): Likewise.
47154         (llrint_tonearest_test_data): Likewise.
47155         (llrint_towardzero_test_data): Likewise.
47156         (llrint_downward_test_data): Likewise.
47157         (llrint_upward_test_data): Likewise.
47158         (log_test_data): Likewise.
47159         (log10_test_data): Likewise.
47160         (log1p_test_data): Likewise.
47161         (log2_test_data): Likewise.
47162         (logb_test_data): Likewise.
47163         (logb_downward_test_data): Likewise.
47164         (lround_test_data): Likewise.
47165         (llround_test_data): Likewise.
47166         (modf_test_data): Likewise.
47167         (nearbyint_test_data): Likewise.
47168         (nextafter_test_data): Likewise.
47169         (nexttoward_test_data): Likewise.
47170         (pow_test_data): Likewise.
47171         (pow_tonearest_test_data): Likewise.
47172         (pow_towardzero_test_data): Likewise.
47173         (pow_downward_test_data): Likewise.
47174         (pow_upward_test_data): Likewise.
47175         (remainder_test_data): Likewise.
47176         (remainder_tonearest_test_data): Likewise.
47177         (remainder_towardzero_test_data): Likewise.
47178         (remainder_downward_test_data): Likewise.
47179         (remainder_upward_test_data): Likewise.
47180         (remquo_test_data): Likewise.
47181         (rint_test_data): Likewise.
47182         (rint_tonearest_test_data): Likewise.
47183         (rint_towardzero_test_data): Likewise.
47184         (rint_downward_test_data): Likewise.
47185         (rint_upward_test_data): Likewise.
47186         (round_test_data): Likewise.
47187         (scalb_test_data): Likewise.
47188         (scalbn_test_data): Likewise.
47189         (scalbln_test_data): Likewise.
47190         (signbit_test_data): Likewise.
47191         (sin_test_data): Likewise.
47192         (sin_tonearest_test_data): Likewise.
47193         (sin_towardzero_test_data): Likewise.
47194         (sin_downward_test_data): Likewise.
47195         (sin_upward_test_data): Likewise.
47196         (sincos_test_data): Likewise.
47197         (sinh_test_data): Likewise.
47198         (sinh_tonearest_test_data): Likewise.
47199         (sinh_towardzero_test_data): Likewise.
47200         (sinh_downward_test_data): Likewise.
47201         (sinh_upward_test_data): Likewise.
47202         (sqrt_test_data): Likewise.
47203         (tan_test_data): Likewise.
47204         (tan_tonearest_test_data): Likewise.
47205         (tan_towardzero_test_data): Likewise.
47206         (tan_downward_test_data): Likewise.
47207         (tan_upward_test_data): Likewise.
47208         (tanh_test_data): Likewise.
47209         (tgamma_test_data): Likewise.
47210         (trunc_test_data): Likewise.
47211         (y0_test_data): Likewise.
47212         (y1_test_data): Likewise.
47213         (yn_test_data): Likewise.
47214         (significand_test_data): Likewise.
47215
47216         * math/gen-libm-test.pl (@functions): Remove variable.
47217         (generate_testfile): Don't handle START and END lines.
47218         * math/libm-test.inc (START): New macro.
47219         (END): Likewise.
47220         (END_COMPLEX): Likewise.
47221         (acos_test): Use END macro without arguments.
47222         (acos_test_tonearest): Likewise.
47223         (acos_test_towardzero): Likewise.
47224         (acos_test_downward): Likewise.
47225         (acos_test_upward): Likewise.
47226         (acosh_test): Likewise.
47227         (asin_test): Likewise.
47228         (asin_test_tonearest): Likewise.
47229         (asin_test_towardzero): Likewise.
47230         (asin_test_downward): Likewise.
47231         (asin_test_upward): Likewise.
47232         (asinh_test): Likewise.
47233         (atan_test): Likewise.
47234         (atanh_test): Likewise.
47235         (atan2_test): Likewise.
47236         (cabs_test): Likewise.
47237         (cacos_test): Use END_COMPLEX macro without arguments.
47238         (cacosh_test): Likewise.
47239         (carg_test): Use END macro without arguments.
47240         (casin_test): Use END_COMPLEX macro without arguments.
47241         (casinh_test): Likewise.
47242         (catan_test): Likewise.
47243         (catanh_test): Likewise.
47244         (cbrt_test): Use END macro without arguments.
47245         (ccos_test): Use END_COMPLEX macro without arguments.
47246         (ccosh_test): Likewise.
47247         (ceil_test): Use END macro without arguments.
47248         (cexp_test): Use END_COMPLEX macro without arguments.
47249         (cimag_test): Use END macro without arguments.
47250         (clog_test): Use END_COMPLEX macro without arguments.
47251         (clog10_test): Likewise.
47252         (conj_test): Likewise.
47253         (copysign_test): Use END macro without arguments.
47254         (cos_test): Likewise.
47255         (cos_test_tonearest): Likewise.
47256         (cos_test_towardzero): Likewise.
47257         (cos_test_downward): Likewise.
47258         (cos_test_upward): Likewise.
47259         (cosh_test): Likewise.
47260         (cosh_test_tonearest): Likewise.
47261         (cosh_test_towardzero): Likewise.
47262         (cosh_test_downward): Likewise.
47263         (cosh_test_upward): Likewise.
47264         (cpow_test): Use END_COMPLEX macro without arguments.
47265         (cproj_test): Likewise.
47266         (creal_test): Use END macro without arguments.
47267         (csin_test): Use END_COMPLEX macro without arguments.
47268         (csinh_test): Likewise.
47269         (csqrt_test): Likewise.
47270         (ctan_test): Likewise.
47271         (ctan_test_tonearest): Likewise.
47272         (ctan_test_towardzero): Likewise.
47273         (ctan_test_downward): Likewise.
47274         (ctan_test_upward): Likewise.
47275         (ctanh_test): Likewise.
47276         (ctanh_test_tonearest): Likewise.
47277         (ctanh_test_towardzero): Likewise.
47278         (ctanh_test_downward): Likewise.
47279         (ctanh_test_upward): Likewise.
47280         (erf_test): Use END macro without arguments.
47281         (erfc_test): Likewise.
47282         (exp_test): Likewise.
47283         (exp_test_tonearest): Likewise.
47284         (exp_test_towardzero): Likewise.
47285         (exp_test_downward): Likewise.
47286         (exp_test_upward): Likewise.
47287         (exp10_test): Likewise.
47288         (exp2_test): Likewise.
47289         (expm1_test): Likewise.
47290         (fabs_test): Likewise.
47291         (fdim_test): Likewise.
47292         (finite_test): Likewise.
47293         (floor_test): Likewise.
47294         (fma_test): Likewise.
47295         (fma_test_towardzero): Likewise.
47296         (fma_test_downward): Likewise.
47297         (fma_test_upward): Likewise.
47298         (fmax_test): Likewise.
47299         (fmin_test): Likewise.
47300         (fmod_test): Likewise.
47301         (fpclassify_test): Likewise.
47302         (frexp_test): Likewise.
47303         (gamma_test): Likewise.
47304         (hypot_test): Likewise.
47305         (ilogb_test): Likewise.
47306         (isfinite_test): Likewise.
47307         (isgreater_test): Likewise.
47308         (isgreaterequal_test): Likewise.
47309         (isinf_test): Likewise.
47310         (isless_test): Likewise.
47311         (islessequal_test): Likewise.
47312         (islessgreater_test): Likewise.
47313         (isnan_test): Likewise.
47314         (isnormal_test): Likewise.
47315         (issignaling_test): Likewise.
47316         (isunordered_test): Likewise.
47317         (j0_test): Likewise.
47318         (j1_test): Likewise.
47319         (jn_test): Likewise.
47320         (ldexp_test): Likewise.
47321         (lgamma_test): Likewise.
47322         (lrint_test): Likewise.
47323         (lrint_test_tonearest): Likewise.
47324         (lrint_test_towardzero): Likewise.
47325         (lrint_test_downward): Likewise.
47326         (lrint_test_upward): Likewise.
47327         (llrint_test): Likewise.
47328         (llrint_test_tonearest): Likewise.
47329         (llrint_test_towardzero): Likewise.
47330         (llrint_test_downward): Likewise.
47331         (llrint_test_upward): Likewise.
47332         (log_test): Likewise.
47333         (log10_test): Likewise.
47334         (log1p_test): Likewise.
47335         (log2_test): Likewise.
47336         (logb_test): Likewise.
47337         (logb_test_downward): Likewise.
47338         (lround_test): Likewise.
47339         (llround_test): Likewise.
47340         (modf_test): Likewise.
47341         (nearbyint_test): Likewise.
47342         (nextafter_test): Likewise.
47343         (nexttoward_test): Likewise.
47344         (pow_test): Likewise.
47345         (pow_test_tonearest): Likewise.
47346         (pow_test_towardzero): Likewise.
47347         (pow_test_downward): Likewise.
47348         (pow_test_upward): Likewise.
47349         (remainder_test): Likewise.
47350         (remainder_test_tonearest): Likewise.
47351         (remainder_test_towardzero): Likewise.
47352         (remainder_test_downward): Likewise.
47353         (remainder_test_upward): Likewise.
47354         (remquo_test): Likewise.
47355         (rint_test): Likewise.
47356         (rint_test_tonearest): Likewise.
47357         (rint_test_towardzero): Likewise.
47358         (rint_test_downward): Likewise.
47359         (rint_test_upward): Likewise.
47360         (round_test): Likewise.
47361         (scalb_test): Likewise.
47362         (scalbn_test): Likewise.
47363         (scalbln_test): Likewise.
47364         (signbit_test): Likewise.
47365         (sin_test): Likewise.
47366         (sin_test_tonearest): Likewise.
47367         (sin_test_towardzero): Likewise.
47368         (sin_test_downward): Likewise.
47369         (sin_test_upward): Likewise.
47370         (sincos_test): Likewise.
47371         (sinh_test): Likewise.
47372         (sinh_test_tonearest): Likewise.
47373         (sinh_test_towardzero): Likewise.
47374         (sinh_test_downward): Likewise.
47375         (sinh_test_upward): Likewise.
47376         (sqrt_test): Likewise.
47377         (tan_test): Likewise.
47378         (tan_test_tonearest): Likewise.
47379         (tan_test_towardzero): Likewise.
47380         (tan_test_downward): Likewise.
47381         (tan_test_upward): Likewise.
47382         (tanh_test): Likewise.
47383         (tgamma_test): Likewise.
47384         (trunc_test): Likewise.
47385         (y0_test): Likewise.
47386         (y1_test): Likewise.
47387         (yn_test): Likewise.
47388         (significand_test): Likewise.
47389
47390 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47391
47392         [BZ #15381]
47393         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47394
47395 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47396
47397         [BZ #14894]
47398         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47399         __ppc_mdoio and __ppc_mdoom.
47400         * manual/platform.texi: Document new functions __ppc_yield,
47401         __ppc_mdoio and __ppc_mdoom.
47402
47403 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47404
47405         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47406         (main): Mention "tls" pseudo-hwcap is legacy.
47407         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47408
47409 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47410
47411         * math/gen-libm-test.pl (parse_args): Output only string of
47412         arguments as text for test name, not full call or descriptions of
47413         tests for extra outputs.
47414         (generate_testfile): Do not pass function name to parse_args.
47415         Generate this_func variable from START.
47416         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47417         field to arg_str.
47418         (struct test_ff_f_data): Likewise.
47419         (test_ff_f_data_nexttoward): Likewise.
47420         (struct test_fi_f_data): Likewise.
47421         (struct test_fl_f_data): Likewise.
47422         (struct test_if_f_data): Likewise.
47423         (struct test_fff_f_data): Likewise.
47424         (struct test_c_f_data): Likewise.
47425         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47426         (struct test_fF_f1_data): Likewise.
47427         (struct test_ffI_f1_data): Likewise.
47428         (struct test_c_c_data): Rename test_name field to arg_str.
47429         (struct test_cc_c_data): Likewise.
47430         (struct test_f_i_data): Likewise.
47431         (struct test_ff_i_data): Likewise.
47432         (struct test_f_l_data): Likewise.
47433         (struct test_f_L_data): Likewise.
47434         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47435         and extra2_name.
47436         (COMMON_TEST_SETUP): New macro.
47437         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47438         (COMMON_TEST_CLEANUP): Likewise.
47439         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47440         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47441         macros.
47442         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47443         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47444         macros.
47445         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47446         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47447         cleanup macros.
47448         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47449         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47450         macros.
47451         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47452         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47453         macros.
47454         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47455         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47456         cleanup macros.
47457         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47458         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47459         cleanup macros.
47460         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47461         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47462         cleanup macros.
47463         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47464         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47465         macros.
47466         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47467         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47468         macros.
47469         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47470         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47471         macros.
47472         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47473         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47474         cleanup macros.
47475         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47476         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47477         cleanup macros.
47478         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47479         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47480         macros.
47481         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47482         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47483         cleanup macros.
47484         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47485         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47486         macros.
47487         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47488         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47489         macros.
47490         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47491         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47492         cleanup macros.
47493         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47494
47495 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47496
47497         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47498         to _sifields.sigfault.
47499         (si_addr_lsb): Define new macro.
47500         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47501         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47502         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47503
47504 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47505
47506         [BZ #15441]
47507         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47508         returns -1.
47509         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47510         null return -1.
47511         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47512         loading the domain.
47513
47514 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47515
47516         * math/gen-libm-test.pl (parse_args): Do not include expected
47517         result in test name.
47518         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47519         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47520         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47521         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47522         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47524
47525 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47526
47527         * benchtests/Makefile: Sort function entries.
47528
47529         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47530         tanh, asinh, acosh, atanh.
47531         * benchtests/acos-inputs: New file.
47532         * benchtests/acosh-inputs: New file.
47533         * benchtests/asin-inputs: New file.
47534         * benchtests/asinh-inputs: New file.
47535         * benchtests/atanh-inputs: New file.
47536         * benchtests/cosh-inputs: New file.
47537         * benchtests/log-inputs: New file.
47538         * benchtests/sinh-inputs: New file.
47539         * benchtests/tanh-inputs: New file.
47540
47541 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47542
47543         [BZ #15339]
47544         * posix/tst-getaddrinfo4.c: New test.
47545         * posix/Makefile (tests): Add it.
47546
47547 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47548
47549         [BZ #15339]
47550         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47551         when no services were used.
47552         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47553         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47554
47555 2013-05-21  Andreas Schwab  <schwab@suse.de>
47556
47557         [BZ #15014]
47558         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47559         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47560         successful.
47561         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47562         redundant variable declarations and reallocation of buffer when
47563         parsing as IPv6 address.  Always set NSS status when called from
47564         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47565         buffer too small.  Correct computation of needed size.
47566         * nss/Makefile (tests): Add test-digits-dots.
47567         * nss/test-digits-dots.c: New test.
47568
47569 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47570
47571         * benchtests/Makefile: Remove instructions for adding
47572         benchmark tests.
47573         * benchtests/README: New file to explain how to execute and
47574         enhance the benchmark tests.
47575
47576 2013-05-21  Andreas Schwab  <schwab@suse.de>
47577
47578         [BZ #15493]
47579         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47580         * setjmp/tst-sigsetjmp.c: New test.
47581
47582 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47583
47584         * sysdeps/x86_64/memset.S (memset): New implementation.
47585         (__bzero): Likewise.
47586         (__memset_tail): New function.
47587
47588 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47589
47590         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47591         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47592         __memcpy_sse2_unaligned ifunc selection.
47593         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47594         Add memcpy-sse2-unaligned.S.
47595         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47596         Add: __memcpy_sse2_unaligned.
47597
47598 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47599
47600         [BZ #15490]
47601         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47602         math_force_eval before restoring floating-point envrionment.
47603         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47604         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47605         Likewise.
47606         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47607         <math_private.h>.
47608         (__nearbyintl): Use math_force_eval before restoring
47609         floating-point environment.
47610         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47611
47612         * math/gen-libm-test.pl (special_functions): Remove.
47613         (parse_args): Don't handle TEST_extra.  Handle functions with no
47614         return value.
47615         * math/libm-test.inc (struct test_sincos_data): Replace with
47616         struct test_fFF_11_data.
47617         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47618         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47619         (sincos_test_data): Change element type to struct
47620         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47621         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47622         RUN_TEST_LOOP_sincos.
47623         * math/README.libm-test: Don't mention special handling of
47624         individual functions.
47625         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47626         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47627         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47628         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47629         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47631
47632         * math/gen-libm-test.pl (get_variable): Remove function.
47633         (parse_args): Don't show pointer parameters to call in test
47634         names.  Use "extra output N" in test names for extra outputs
47635         rather than naming variables.
47636
47637 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47638
47639         [BZ #15488]
47640         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47641         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47642         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47643         double tests.
47644         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47645         disable.
47646         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47647         check_long_double.
47648
47649         * math/gen-libm-test.pl (@tests): Remove variable.
47650         ($count): Likewise.
47651         (new_test): Remove function.
47652         (show_exceptions): New function.
47653         (special_functions): Use show_exceptions instead of new_test.
47654         (parse_args): Likewise.
47655         (generate_testfile): Pass only function name in generated call to
47656         print_max_error or print_complex_max_error.
47657         (get_ulps): Do not handle complex tests specially.
47658         (output_test): Rename to ...
47659         (get_all_ulps_for_test): ... this.  Return a string rather than
47660         printing to a file.  Require ulps to be present.
47661         (output_ulps): Generate arrays rather than #defines.
47662         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47663         (struct ulp_data): New type.
47664         (BUILD_COMPLEX_ULP): Remove macro.
47665         (compare_ulp_data): New function.
47666         (find_ulps): Likewise.
47667         (find_test_ulps): Likewise.
47668         (find_function_ulps): Likewise.
47669         (find_complex_function_ulps): Likewise.
47670         (print_max_error): Determine allowed ulps using
47671         find_function_ulps.
47672         (print_complex_max_error): Determine allowed ulps using
47673         find_complex_function_ulps.
47674         (check_float_internal): Determine max ulps using find_test_ulps.
47675         (check_float): Do not take max_ulp parameter.  Update call to
47676         check_float_internal.
47677         (check_complex): Likewise.
47678         (check_int): Do not take max_ulp parameter.
47679         (check_long): Likewise.
47680         (check_bool): Likewise.
47681         (check_longlong): Likewise.
47682         (struct test_f_f_data): Remove max_ulp field.
47683         (struct test_ff_f_data): Likewise.
47684         (struct test_ff_f_data_nexttoward): Likewise.
47685         (struct test_fi_f_data): Likewise.
47686         (struct test_fl_f_data): Likewise.
47687         (struct test_if_f_data): Likewise.
47688         (struct test_fff_f_data): Likewise.
47689         (struct test_c_f_data): Likewise.
47690         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47691         (struct test_fF_f1_data): Likewise.
47692         (struct test_ffI_f1_data): Likewise.
47693         (struct test_c_c_data): Remove max_ulp field.
47694         (struct test_cc_c_data): Likewise.
47695         (struct test_f_i_data): Likewise.
47696         (struct test_ff_i_data): Likewise.
47697         (struct test_f_l_data): Likewise.
47698         (struct test_f_L_data): Likewise.
47699         (struct test_sincos_data): Likewise.
47700         (RUN_TEST_f_f): Do not handle ulps.
47701         (RUN_TEST_LOOP_f_f): Likewise.
47702         (RUN_TEST_2_f): Likewise.
47703         (RUN_TEST_LOOP_2_f): Likewise.
47704         (RUN_TEST_fff_f): Likewise.
47705         (RUN_TEST_LOOP_fff_f): Likewise.
47706         (RUN_TEST_c_f): Likewise.
47707         (RUN_TEST_LOOP_c_f): Likewise.
47708         (RUN_TEST_f_f1): Likewise.
47709         (RUN_TEST_LOOP_f_f1): Likewise.
47710         (RUN_TEST_fF_f1): Likewise.
47711         (RUN_TEST_LOOP_fF_f1): Likewise.
47712         (RUN_TEST_fI_f1): Likewise.
47713         (RUN_TEST_LOOP_fI_f1): Likewise.
47714         (RUN_TEST_ffI_f1): Likewise.
47715         (RUN_TEST_LOOP_ffI_f1): Likewise.
47716         (RUN_TEST_c_c): Likewise.
47717         (RUN_TEST_LOOP_c_c): Likewise.
47718         (RUN_TEST_cc_c): Likewise.
47719         (RUN_TEST_LOOP_cc_c): Likewise.
47720         (RUN_TEST_f_i): Likewise.
47721         (RUN_TEST_LOOP_f_i): Likewise.
47722         (RUN_TEST_f_i_tg): Likewise.
47723         (RUN_TEST_LOOP_f_i_tg): Likewise.
47724         (RUN_TEST_ff_i_tg): Likewise.
47725         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47726         (RUN_TEST_f_b): Likewise.
47727         (RUN_TEST_LOOP_f_b): Likewise.
47728         (RUN_TEST_f_b_tg): Likewise.
47729         (RUN_TEST_LOOP_f_b_tg): Likewise.
47730         (RUN_TEST_f_l): Likewise.
47731         (RUN_TEST_LOOP_f_l): Likewise.
47732         (RUN_TEST_f_L): Likewise.
47733         (RUN_TEST_LOOP_f_L): Likewise.
47734         (RUN_TEST_sincos): Likewise.
47735         (RUN_TEST_LOOP_sincos): Likewise.
47736
47737 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47738
47739         [BZ #15480]
47740         [BZ #15485]
47741         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47742         main case of finite arguments, set rounding mode to FE_TONEAREST
47743         and discard exceptions.
47744         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47745         exceptions.
47746         (remainder_tonearest_test_data): New variable.
47747         (remainder_test_tonearest): New function.
47748         (remainder_towardzero_test_data): New variable.
47749         (remainder_test_towardzero): New function.
47750         (remainder_downward_test_data): New variable.
47751         (remainder_test_downward): New function.
47752         (remainder_upward_test_data): New variable.
47753         (remainder_test_upward): New function.
47754         (main): Call the new test functions.
47755
47756         * math/libm-test.inc (struct test_f_f1_data): Remove field
47757         extra_init.
47758         (struct test_fF_f1_data): Likewise.
47759         (struct test_ffI_f1_data): Likewise.
47760         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47761         based on value of EXTRA_EXPECTED.
47762         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47763         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47764         EXTRA_VAR based on value of EXTRA_EXPECTED.
47765         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47766         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47767         EXTRA_VAR based on value of EXTRA_EXPECTED.
47768         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47769         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47770         EXTRA_VAR based on value of EXTRA_EXPECTED.
47771         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47772         * math/gen-libm-test.pl (parse_args): Don't output initializers
47773         for extra output values.
47774
47775         * math/libm-test.inc (check_int): Expect result to be exactly
47776         equal to expected value and do not handle ulps.
47777         (check_long): Likewise.
47778         (check_longlong): Likewise.
47779
47780         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47781         exceptions.
47782         (cimag_test_data): Likewise.
47783         (conj_test_data): Likewise.
47784         (copysign_test_data): Likewise.
47785         (cproj_test_data): Likewise.
47786         (creal_test_data): Likewise.
47787         (fabs_test_data): Likewise.
47788         (fdim_test_data): Likewise.
47789         (finite_test_data): Likewise.
47790         (floor_test_data): Likewise.
47791         (fmax_test_data): Likewise.
47792         (fmin_test_data): Likewise.
47793         (fmod_test_data): Likewise.
47794         (fpclassify_test_data): Likewise.
47795         (frexp_test_data): Likewise.
47796         (ilogb_test_data): Likewise.
47797         (isfinite_test_data): Likewise.
47798         (isgreater_test_data): Likewise.
47799         (isgreaterequal_test_data): Likewise.
47800         (isinf_test_data): Likewise.
47801         (isless_test_data): Likewise.
47802         (islessequal_test_data): Likewise.
47803         (islessgreater_test_data): Likewise.
47804         (isnan_test_data): Likewise.
47805         (isnormal_test_data): Likewise.
47806         (issignaling_test_data): Likewise.
47807         (isunordered_test_data): Likewise.
47808         (ldexp_test_data): Likewise.
47809         (lrint_test_data): Likewise.
47810         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47811         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47812         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47813         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47814         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47815         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47816         test input.
47817         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47818         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47819         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47820         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47821         that test input.
47822         (lrint_downward_test_data): Test for "inexact" exceptions.
47823         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47824         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47825         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47826         test input.
47827         (lrint_upward_test_data): Test for "inexact" exceptions.
47828         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47829         test input.
47830         (llrint_test_data): Test for "inexact" exceptions.
47831         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47832         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47833         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47834         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47835         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47836         (llrint_downward_test_data): Test for "inexact" exceptions.
47837         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47838         (llrint_upward_test_data): Test for "inexact" exceptions.
47839         (logb_test_data): Likewise.
47840         (logb_downward_test_data): Likewise.
47841         (nextafter_test_data): Likewise.
47842         (nexttoward_test_data): Likewise.
47843         (remainder_test_data): Likewise.
47844         (remquo_test_data): Likewise.
47845         (scalbn_test_data): Likewise.
47846         (scalbln_test_data): Likewise.
47847         (signbit_test_data): Likewise.
47848         (sqrt_test_data): Likewise.
47849         (significand_test_data): Likewise.
47850
47851 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47852
47853         [BZ #15424]
47854         * benchtests/bench-modf.c (struct args): Mark arg0 as
47855         volatile.
47856         * scripts/bench.pl: Mark members of struct args as volatile.
47857
47858 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47859
47860         [BZ # 15497]
47861         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47862         negative infinity on POWER6 or lower.
47863         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47864
47865 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47866
47867         [BZ #15442]
47868         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47869         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47870         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47871         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47872         (_FP_SETQNAN): New macro.
47873         (_FP_SETQNAN_SEMIRAW): Likewise.
47874         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47875         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47876         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47877         (FP_EXTEND): Use _FP_FRAC_SNANP.
47878         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47879         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47880         into account.
47881         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47882         New macro.
47883         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47884         Likewise.
47885
47886 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47887
47888         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47889         with DIVIDE_BY_ZERO_EXCEPTION.
47890         (gamma_test_data): Likewise.
47891         (lgamma_test_data): Likewise.
47892         (log_test_data): Likewise.
47893         (log10_test_data): Likewise.
47894         (log2_test_data): Likewise.
47895         (tgamma_test_data): Likewise.
47896
47897         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47898         (acos_test_tonearest): Likewise.
47899         (acos_test_towardzero): Likewise.
47900         (acos_test_downward): Likewise.
47901         (acos_test_upward): Likewise.
47902         (acosh_test): Likewise.
47903         (asin_test): Likewise.
47904         (asin_test_tonearest): Likewise.
47905         (asin_test_towardzero): Likewise.
47906         (asin_test_downward): Likewise.
47907         (asin_test_upward): Likewise.
47908         (asinh_test): Likewise.
47909         (atan_test): Likewise.
47910         (atanh_test): Likewise.
47911         (atan2_test): Likewise.
47912         (cabs_test): Likewise.
47913         (cacos_test): Likewise.
47914         (cacosh_test): Likewise.
47915         (casin_test): Likewise.
47916         (casinh_test): Likewise.
47917         (catan_test): Likewise.
47918         (catanh_test): Likewise.
47919         (cbrt_test): Likewise.
47920         (ccos_test): Likewise.
47921         (ccosh_test): Likewise.
47922         (cexp_test): Likewise.
47923         (clog_test): Likewise.
47924         (clog10_test): Likewise.
47925         (cos_test): Likewise.
47926         (cos_test_tonearest): Likewise.
47927         (cos_test_towardzero): Likewise.
47928         (cos_test_downward): Likewise.
47929         (cos_test_upward): Likewise.
47930         (cosh_test): Likewise.
47931         (cosh_test_tonearest): Likewise.
47932         (cosh_test_towardzero): Likewise.
47933         (cosh_test_downward): Likewise.
47934         (cosh_test_upward): Likewise.
47935         (cpow_test): Likewise.
47936         (csin_test): Likewise.
47937         (csinh_test): Likewise.
47938         (csqrt_test): Likewise.
47939         (ctan_test): Likewise.
47940         (ctan_test_tonearest): Likewise.
47941         (ctan_test_towardzero): Likewise.
47942         (ctan_test_downward): Likewise.
47943         (ctan_test_upward): Likewise.
47944         (ctanh_test): Likewise.
47945         (ctanh_test_tonearest): Likewise.
47946         (ctanh_test_towardzero): Likewise.
47947         (ctanh_test_downward): Likewise.
47948         (ctanh_test_upward): Likewise.
47949         (erf_test): Likewise.
47950         (erfc_test): Likewise.
47951         (exp_test): Likewise.
47952         (exp_test_tonearest): Likewise.
47953         (exp_test_towardzero): Likewise.
47954         (exp_test_downward): Likewise.
47955         (exp_test_upward): Likewise.
47956         (exp10_test): Likewise.
47957         (exp2_test): Likewise.
47958         (expm1_test): Likewise.
47959         (fmod_test): Likewise.
47960         (gamma_test): Likewise.
47961         (hypot_test): Likewise.
47962         (j0_test): Likewise.
47963         (j1_test): Likewise.
47964         (jn_test): Likewise.
47965         (lgamma_test): Likewise.
47966         (log_test): Likewise.
47967         (log10_test): Likewise.
47968         (log1p_test): Likewise.
47969         (log2_test): Likewise.
47970         (logb_test_downward): Likewise.
47971         (pow_test): Likewise.
47972         (pow_test_tonearest): Likewise.
47973         (pow_test_towardzero): Likewise.
47974         (pow_test_downward): Likewise.
47975         (pow_test_upward): Likewise.
47976         (remainder_test): Likewise.
47977         (remquo_test): Likewise.
47978         (sin_test): Likewise.
47979         (sin_test_tonearest): Likewise.
47980         (sin_test_towardzero): Likewise.
47981         (sin_test_downward): Likewise.
47982         (sin_test_upward): Likewise.
47983         (sincos_test): Likewise.
47984         (sinh_test): Likewise.
47985         (sinh_test_tonearest): Likewise.
47986         (sinh_test_towardzero): Likewise.
47987         (sinh_test_downward): Likewise.
47988         (sinh_test_upward): Likewise.
47989         (sqrt_test): Likewise.
47990         (tan_test): Likewise.
47991         (tan_test_tonearest): Likewise.
47992         (tan_test_towardzero): Likewise.
47993         (tan_test_downward): Likewise.
47994         (tan_test_upward): Likewise.
47995         (tanh_test): Likewise.
47996         (tgamma_test): Likewise.
47997         (y0_test): Likewise.
47998         (y1_test): Likewise.
47999         (yn_test): Likewise.
48000
48001         * math/gen-libm-test.pl (adjust_arg): Remove function.
48002         (special_function): Remove argument $in_func.  Only handle
48003         generating output for tables of tests, not inside functions.
48004         (parse_args): Likewise.
48005         (generate_testfile): Remove variable $in_func.  Update call to
48006         parse_args.
48007         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
48008         (MINUS_ZERO_INIT): Rename macro to minus_zero.
48009         (PLUS_INFTY_INIT): Rename macro to plus_infty.
48010         (MINUS_INFTY_INIT): Rename macro to minus_infty.
48011         (QNAN_VALUE_INIT): Rename macro to qnan_value.
48012         (MAX_VALUE_INIT): Rename macro to max_value.
48013         (MIN_VALUE_INIT): Rename macro to min_value.
48014         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
48015         (plus_zero): Remove variable.
48016         (minus_zero): Likewise.
48017         (plus_infty): Likewise.
48018         (minus_infty): Likewise.
48019         (qnan_value): Likewise.
48020         (max_value): Likewise.
48021         (min_value): Likewise.
48022         (min_subnorm_value): Likewise.
48023
48024 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48025
48026         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
48027         uint64_t or uint32_t usage.
48028         * crypt/sha256-block.c: Likewise.
48029         * crypt/sha256-crypt.c: Likewise.
48030         * crypt/sha256.c: Likewise.
48031         * crypt/sha512-block.c: Likewise.
48032         * crypt/sha512-crypt.c: Likewise.
48033         * crypt/sha512.c: Likewise.
48034         * debug/backtrace-tst.c: Likewise.
48035         * debug/pcprofiledump.c: Likewise.
48036         * elf/cache.c: Likewise.
48037         * elf/dl-cache.c: Likewise.
48038         * elf/dl-misc.c: Likewise.
48039         * elf/dl-profile.c: Likewise.
48040         * elf/dl-support.c: Likewise.
48041         * elf/ldconfig.c: Likewise.
48042         * elf/sprof.c: Likewise.
48043         * iconv/dummy-repertoire.c: Likewise.
48044         * iconv/iconv_charmap.c: Likewise.
48045         * iconv/skeleton.c: Likewise.
48046         * iconvdata/8bit-generic.c: Likewise.
48047         * iconvdata/cp737.h: Likewise.
48048         * iconvdata/cp775.h: Likewise.
48049         * iconvdata/ibm1008.h: Likewise.
48050         * iconvdata/ibm1025.h: Likewise.
48051         * iconvdata/ibm1046.h: Likewise.
48052         * iconvdata/ibm1097.h: Likewise.
48053         * iconvdata/ibm1112.h: Likewise.
48054         * iconvdata/ibm1122.h: Likewise.
48055         * iconvdata/ibm1123.h: Likewise.
48056         * iconvdata/ibm1124.h: Likewise.
48057         * iconvdata/ibm1129.h: Likewise.
48058         * iconvdata/ibm1130.h: Likewise.
48059         * iconvdata/ibm1132.h: Likewise.
48060         * iconvdata/ibm1133.h: Likewise.
48061         * iconvdata/ibm1137.h: Likewise.
48062         * iconvdata/ibm1140.h: Likewise.
48063         * iconvdata/ibm1141.h: Likewise.
48064         * iconvdata/ibm1142.h: Likewise.
48065         * iconvdata/ibm1143.h: Likewise.
48066         * iconvdata/ibm1144.h: Likewise.
48067         * iconvdata/ibm1145.h: Likewise.
48068         * iconvdata/ibm1146.h: Likewise.
48069         * iconvdata/ibm1147.h: Likewise.
48070         * iconvdata/ibm1148.h: Likewise.
48071         * iconvdata/ibm1149.h: Likewise.
48072         * iconvdata/ibm1153.h: Likewise.
48073         * iconvdata/ibm1154.h: Likewise.
48074         * iconvdata/ibm1155.h: Likewise.
48075         * iconvdata/ibm1156.h: Likewise.
48076         * iconvdata/ibm1157.h: Likewise.
48077         * iconvdata/ibm1158.h: Likewise.
48078         * iconvdata/ibm1160.h: Likewise.
48079         * iconvdata/ibm1161.h: Likewise.
48080         * iconvdata/ibm1162.h: Likewise.
48081         * iconvdata/ibm1163.h: Likewise.
48082         * iconvdata/ibm1164.h: Likewise.
48083         * iconvdata/ibm1166.h: Likewise.
48084         * iconvdata/ibm1167.h: Likewise.
48085         * iconvdata/ibm12712.h: Likewise.
48086         * iconvdata/ibm1390.h: Likewise.
48087         * iconvdata/ibm1399.h: Likewise.
48088         * iconvdata/ibm16804.h: Likewise.
48089         * iconvdata/ibm4517.h: Likewise.
48090         * iconvdata/ibm4899.h: Likewise.
48091         * iconvdata/ibm4909.h: Likewise.
48092         * iconvdata/ibm4971.h: Likewise.
48093         * iconvdata/ibm5347.h: Likewise.
48094         * iconvdata/ibm803.h: Likewise.
48095         * iconvdata/ibm856.h: Likewise.
48096         * iconvdata/ibm901.h: Likewise.
48097         * iconvdata/ibm902.h: Likewise.
48098         * iconvdata/ibm9030.h: Likewise.
48099         * iconvdata/ibm9066.h: Likewise.
48100         * iconvdata/ibm921.h: Likewise.
48101         * iconvdata/ibm922.h: Likewise.
48102         * iconvdata/ibm9448.h: Likewise.
48103         * iconvdata/isiri-3342.h: Likewise.
48104         * iconvdata/jis0201.h: Likewise.
48105         * include/link.h: Likewise.
48106         * include/netdb.h: Likewise.
48107         * inet/check_native.c: Likewise.
48108         * inet/check_pf.c: Likewise.
48109         * inet/getipv4sourcefilter.c: Likewise.
48110         * inet/getnameinfo.c: Likewise.
48111         * inet/getsourcefilter.c: Likewise.
48112         * inet/htonl.c: Likewise.
48113         * inet/setipv4sourcefilter.c: Likewise.
48114         * inet/setsourcefilter.c: Likewise.
48115         * inet/test-inet6_opt.c: Likewise.
48116         * inet/tst-network.c: Likewise.
48117         * locale/C-collate.c: Likewise.
48118         * locale/C-ctype.c: Likewise.
48119         * locale/C-time.c: Likewise.
48120         * locale/C-translit.h: Likewise.
48121         * locale/loadarchive.c: Likewise.
48122         * locale/programs/3level.h: Likewise.
48123         * locale/programs/charmap.c: Likewise.
48124         * locale/programs/charmap.h: Likewise.
48125         * locale/programs/ld-address.c: Likewise.
48126         * locale/programs/ld-collate.c: Likewise.
48127         * locale/programs/ld-ctype.c: Likewise.
48128         * locale/programs/ld-identification.c: Likewise.
48129         * locale/programs/ld-measurement.c: Likewise.
48130         * locale/programs/ld-messages.c: Likewise.
48131         * locale/programs/ld-monetary.c: Likewise.
48132         * locale/programs/ld-name.c: Likewise.
48133         * locale/programs/ld-numeric.c: Likewise.
48134         * locale/programs/ld-paper.c: Likewise.
48135         * locale/programs/ld-telephone.c: Likewise.
48136         * locale/programs/ld-time.c: Likewise.
48137         * locale/programs/linereader.c: Likewise.
48138         * locale/programs/locale.c: Likewise.
48139         * locale/programs/locarchive.c: Likewise.
48140         * locale/programs/locfile.h: Likewise.
48141         * locale/programs/repertoire.c: Likewise.
48142         * locale/programs/simple-hash.c: Likewise.
48143         * locale/programs/simple-hash.h: Likewise.
48144         * malloc/memusage.c: Likewise.
48145         * malloc/memusagestat.c: Likewise.
48146         * nis/nis_defaults.c: Likewise.
48147         * nis/nis_hash.c: Likewise.
48148         * nis/nis_print.c: Likewise.
48149         * nis/nis_xdr.c: Likewise.
48150         * nscd/connections.c: Likewise.
48151         * nscd/hstcache.c: Likewise.
48152         * nscd/nscd_gethst_r.c: Likewise.
48153         * nscd/nscd_getserv_r.c: Likewise.
48154         * nscd/nscd_helper.c: Likewise.
48155         * nscd/servicescache.c: Likewise.
48156         * nss/makedb.c: Likewise.
48157         * nss/nss_db/db-XXX.c: Likewise.
48158         * nss/nss_db/db-initgroups.c: Likewise.
48159         * nss/nss_db/db-netgrp.c: Likewise.
48160         * nss/nss_files/files-network.c: Likewise.
48161         * nss/nss_files/files-parse.c: Likewise.
48162         * posix/bug-regex5.c: Likewise.
48163         * posix/fnmatch_loop.c: Likewise.
48164         * posix/regcomp.c: Likewise.
48165         * posix/regexec.c: Likewise.
48166         * posix/tst-rfc3484-2.c: Likewise.
48167         * posix/tst-rfc3484-3.c: Likewise.
48168         * posix/tst-rfc3484.c: Likewise.
48169         * resolv/nss_dns/dns-canon.c: Likewise.
48170         * resolv/nss_dns/dns-network.c: Likewise.
48171         * resolv/res_init.c: Likewise.
48172         * resolv/res_mkquery.c: Likewise.
48173         * resolv/tst-aton.c: Likewise.
48174         * stdlib/cxa_atexit.c: Likewise.
48175         * stdlib/cxa_finalize.c: Likewise.
48176         * stdlib/gen-fpioconst.c: Likewise.
48177         * stdlib/strtol_l.c: Likewise.
48178         * string/tst-endian.c: Likewise.
48179         * sunrpc/auth_des.c: Likewise.
48180         * sunrpc/clnt_udp.c: Likewise.
48181         * sunrpc/rtime.c: Likewise.
48182         * sunrpc/svcauth_des.c: Likewise.
48183         * sunrpc/xdr.c: Likewise.
48184         * sunrpc/xdr_intXX_t.c: Likewise.
48185         * sunrpc/xdr_rec.c: Likewise.
48186         * sysdeps/generic/ldconfig.h: Likewise.
48187         * sysdeps/generic/ldsodefs.h: Likewise.
48188         * sysdeps/generic/memusage.h: Likewise.
48189         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48190         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48191         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48192         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48193         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48194         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48195         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48196         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48197         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48198         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48199         * sysdeps/posix/getaddrinfo.c: Likewise.
48200         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48201         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48202         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48203         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48204         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48205         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48206         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48207         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48208         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48209         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48210         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48211         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48212         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48213         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48214         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48215         * sysdeps/x86_64/dl-tls.h: Likewise.
48216         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48217         * time/alt_digit.c: Likewise.
48218         * time/era.c: Likewise.
48219         * wcsmbs/tst-c16c32-1.c: Likewise.
48220
48221 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48222
48223         * math/libm-test.inc (struct test_sincos_data): New type.
48224         (RUN_TEST_LOOP_sincos): New macro.
48225         (sincos_test_data): New variable.
48226         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48227
48228 2013-05-16  Richard Henderson  <rth@redhat.com>
48229
48230         * math/atest-exp2.c (LIMB64): New macro.
48231         (CONSTSZ): New macro.
48232         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48233         (hexdig): Move ...
48234         (print_mpn_fp): ... to function scope.
48235         (read_mpn_hex): Remove.
48236         (get_log2): Remove.
48237         (exp2_mpn): Use mp_log2.
48238         (main): Use mp_exp1.
48239
48240 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48241
48242         * math/libm-test.inc: Remove comment about not testing "inexact"
48243         exceptions.
48244         (INEXACT_EXCEPTION): New macro.
48245         (NO_INEXACT_EXCEPTION): Likewise.
48246         (INVALID_EXCEPTION_OK): Update value.
48247         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48248         (OVERFLOW_EXCEPTION_OK): Likewise.
48249         (UNDERFLOW_EXCEPTION_OK): Likewise.
48250         (IGNORE_ZERO_INF_SIGN): Likewise.
48251         (ERRNO_UNCHANGED): Likewise.
48252         (ERRNO_EDOM): Likewise.
48253         (ERRNO_ERANGE): Likewise.
48254         (test_exceptions): Handle testing "inexact" exceptions.
48255         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48256         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48257         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48258         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48259         INEXACT_EXCEPTION.
48260         (rint_towardzero_test_data): Likewise.
48261         (rint_downward_test_data): Likewise.
48262         (rint_upward_test_data): Likewise.
48263
48264         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48265         with OVERFLOW_EXCEPTION.
48266         (exp10_test_data): Likewise.
48267         (exp2_test_data): Likewise.
48268         (expm1_test_data): Likewise.
48269         (lgamma_test_data): Likewise.
48270         (pow_test_data): Likewise.
48271         (tgamma_test_data): Likewise.
48272         (yn_test_data): Remove duplicate test of overflow.
48273
48274         * math/libm-test.inc (struct test_cc_c_data): New type.
48275         (RUN_TEST_LOOP_cc_c): New macro.
48276         (cpow_test_data): New variable.
48277         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48278
48279         * math/libm-test.inc (struct test_f_L_data): New type.
48280         (RUN_TEST_LOOP_f_L): New macro.
48281         (llrint_test_data): New variable.
48282         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48283         (llrint_tonearest_test_data): New variable.
48284         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48285         (llrint_towardzero_test_data): New variable.
48286         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48287         (llrint_downward_test_data): New variable.
48288         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48289         (llrint_upward_test_data): New variable.
48290         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48291         (llround_test_data): New variable.
48292         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48293
48294 2013-05-13  Peter Collingbourne  <pcc@google.com>
48295
48296         * math/atest-exp2.c (get_log2): Remove const attribute.
48297
48298 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48299
48300         * math/libm-test.inc (struct test_f_l_data): New type.
48301         (RUN_TEST_LOOP_f_l): New macro.
48302         (lrint_test_data): New variable.
48303         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48304         (lrint_tonearest_test_data): New variable.
48305         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48306         (lrint_towardzero_test_data): New variable.
48307         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48308         (lrint_downward_test_data): New variable.
48309         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48310         (lrint_upward_test_data): New variable.
48311         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48312         (lround_test_data): New variable.
48313         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48314
48315 2013-05-15  Peter Collingbourne  <pcc@google.com>
48316
48317         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48318         (EXTRACT_WORDS64) Use where appropriate.
48319         (INSERT_WORDS64) Likewise.
48320
48321         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48322         constraints with x constraints.
48323         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48324
48325         * malloc/obstack.c (_obstack_compat): Add initializer.
48326
48327 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48328
48329         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48330         si_trapno and add si_addr_lsb to _sifields.sigfault.
48331         (si_trapno): Remove macro.
48332         (si_addr_lsb): Define new macro.
48333         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48334
48335 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48336
48337         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48338         instead of TEST_f_l.
48339         (llrint_test_tonearest): Likewise.
48340         (llrint_test_towardzero): Likewise.
48341         (llrint_test_downward): Likewise.
48342         (llrint_test_upward): Likewise.
48343         (llround_test): Likewise.
48344
48345         * math/libm-test.inc (struct test_f_i_data): Add comment.
48346         (RUN_TEST_LOOP_f_b): New macro.
48347         (RUN_TEST_LOOP_f_b_tg): Likewise.
48348         (finite_test_data): New variable.
48349         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48350         (isfinite_test_data): New variable.
48351         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48352         (isinf_test_data): New variable.
48353         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48354         (isnan_test_data): New variable.
48355         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48356         (isnormal_test_data): New variable.
48357         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48358         (issignaling_test_data): New variable.
48359         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48360         (signbit_test_data): New variable.
48361         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48362
48363         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48364         with INVALID_EXCEPTION.
48365         (acosh_test_data): Likewise.
48366         (asin_test_data): Likewise.
48367         (atanh_test_data): Likewise.
48368         (fmod_test_data): Likewise.
48369         (log_test_data): Likewise.
48370         (log10_test_data): Likewise.
48371         (log2_test_data): Likewise.
48372         (pow_test_data): Likewise.
48373         (sqrt_test_data): Likewise.
48374         (y0_test_data): Likewise.
48375         (y1_test_data): Likewise.
48376         (yn_test_data): Likewise.
48377
48378         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48379         function contents.
48380
48381         * math/libm-test.inc (struct test_ff_i_data): New type.
48382         (RUN_TEST_LOOP_ff_i_tg): New macro.
48383         (isgreater_test_data): New variable.
48384         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48385         (isgreaterequal_test_data): New variable.
48386         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48387         (isless_test_data): New variable.
48388         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48389         (islessequal_test_data): New variable.
48390         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48391         (islessgreater_test_data): New variable.
48392         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48393         (isunordered_test_data): New variable.
48394         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48395
48396 2013-05-14  David S. Miller  <davem@davemloft.net>
48397
48398         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48399
48400 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48401
48402         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48403
48404         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48405         extra_test to int.
48406         (struct test_f_i_data): Change type of max_ulp to int.
48407
48408         * math/libm-test.inc (test_ffI_f1_data): New type.
48409         (RUN_TEST_LOOP_ffI_f1): New macro.
48410         (remquo_test_data): New variable.
48411         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48412
48413         * setjmp/tst-setjmp-fp.c: New file.
48414         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48415         (link-libm): New variable.
48416         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48417
48418         * math/libm-test.inc (struct test_f_i_data): New type.
48419         (RUN_TEST_LOOP_f_i): New macro.
48420         (RUN_TEST_LOOP_f_i_tg): Likewise.
48421         (fpclassify_test_data): New variable.
48422         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48423         (ilogb_test_data): New variable.
48424         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48425
48426         * math/libm-test.inc (scalbln_test): Correct function name in END
48427         call.
48428
48429         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48430         (RUN_TEST_LOOP_fI_f1): New macro.
48431         (frexp_test_data): New variable.
48432         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48433
48434         * math/libm-test.inc (struct test_fF_f1_data): New type.
48435         (RUN_TEST_LOOP_fF_f1): New macro.
48436         (modf_test_data): New variable.
48437         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48438
48439         * math/libm-test.inc (struct test_f_f1_data): New type.
48440         (RUN_TEST_LOOP_f_f1): New macro.
48441         (gamma_test_data): New variable.
48442         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48443         (lgamma_test_data): New variable.
48444         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48445
48446 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48447
48448         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48449         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48450         (main): Comment "tls" pseudo-hwcap.
48451
48452 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48453
48454         * math/libm-test.inc (struct test_fl_f_data): New type.
48455         (RUN_TEST_LOOP_fl_f): New variable.
48456         (scalbln_test_data): New variable.
48457         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48458
48459         * math/libm-test.inc (struct test_fi_f_data): New type.
48460         (RUN_TEST_LOOP_fi_f): New macro.
48461         (ldexp_test_data): New variable.
48462         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48463         (scalbn_test_data): New variable.
48464         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48465
48466         * math/libm-test.inc (struct test_c_f_data): New type.
48467         (RUN_TEST_LOOP_c_f): New macro.
48468         (cabs_test_data): New variable.
48469         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48470         (carg_test_data): New variable.
48471         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48472         (cimag_test_data): New variable.
48473         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48474         (creal_test_data): New variable.
48475         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48476
48477         * math/libm-test.inc (struct test_if_f_data): New type.
48478         (RUN_TEST_LOOP_if_f): New macro.
48479         (jn_test_data): New variable.
48480         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48481         (yn_test_data): New variable.
48482         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48483
48484         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48485
48486 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48487
48488         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48489         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48490
48491 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48492
48493         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48494         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48495         (bench-deps): Add bench-timing.h.
48496         * benchtests-bench-skeleton.c: Include bench-timing.h.
48497         (main): Use TIMING_* macros instead of clock_gettime.
48498         * benchtests/bench-timing.h: New file.
48499
48500         [BZ #14582]
48501         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48502         Renamed from _LIB_VERSION.
48503         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48504
48505 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48506
48507         * math/libm-test.inc (struct test_fff_f_data): New type.
48508         (RUN_TEST_LOOP_fff_f): New macro.
48509         (fma_test_data): New variable.
48510         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48511         (fma_towardzero_test_data): New variable.
48512         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48513         (fma_downward_test_data): New variable.
48514         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48515         (fma_upward_test_data): New variable.
48516         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48517
48518         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48519         (struct test_c_c_data): New type.
48520         (RUN_TEST_LOOP_c_c): New macro.
48521         (cacos_test_data): New variable.
48522         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48523         (cacosh_test_data): New variable.
48524         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48525         (casin_test_data): New variable.
48526         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48527         (casinh_test_data): New variable.
48528         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48529         (catan_test_data): New variable.
48530         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48531         (catanh_test_data): New variable.
48532         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48533         (ccos_test_data): New variable.
48534         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48535         (ccosh_test_data): New variable.
48536         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48537         (cexp_test_data): New variable.
48538         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48539         (clog_test_data): New variable.
48540         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48541         (clog10_test_data): New variable.
48542         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48543         (conj_test_data): New variable.
48544         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48545         (cproj_test_data): New variable.
48546         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48547         (csin_test_data): New variable.
48548         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48549         (csinh_test_data): New variable.
48550         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48551         (csqrt_test_data): New variable.
48552         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48553         (ctan_test_data): New variable.
48554         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48555         (ctan_tonearest_test_data): New variable.
48556         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48557         (ctan_towardzero_test_data): New variable.
48558         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48559         (ctan_downward_test_data): New variable.
48560         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48561         (ctan_upward_test_data): New variable.
48562         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48563         (ctanh_test_data): New variable.
48564         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48565         (ctanh_tonearest_test_data): New variable.
48566         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48567         (ctanh_towardzero_test_data): New variable.
48568         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48569         (ctanh_downward_test_data): New variable.
48570         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48571         (ctanh_upward_test_data): New variable.
48572         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48573         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48574         of BUILD_COMPLEX.
48575
48576         * math/libm-test.inc (struct test_ff_f_data): New type.
48577         (struct test_ff_f_data_nexttoward): Likewise.
48578         (RUN_TEST_LOOP_2_f): New macro.
48579         (RUN_TEST_LOOP_ff_f): Likewise.
48580         (atan2_test_data): New variable.
48581         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48582         (copysign_test_data): New variable.
48583         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48584         (fdim_test_data): New variable.
48585         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48586         (fmax_test_data): New variable.
48587         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48588         (fmin_test_data): New variable.
48589         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48590         (fmod_test_data): New variable.
48591         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48592         (hypot_test_data): New variable.
48593         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48594         (nextafter_test_data): New variable.
48595         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48596         (nexttoward_test_data): New variable.
48597         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48598         (pow_test_data): New variable.
48599         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48600         (pow_tonearest_test_data): New variable.
48601         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48602         (pow_towardzero_test_data): New variable.
48603         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48604         (pow_downward_test_data): New variable.
48605         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48606         (pow_upward_test_data): New variable.
48607         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48608         (remainder_test_data): New variable.
48609         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48610         (scalb_test_data): New variable.
48611         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48612         * sysdeps/i386/fpu/libm-test-ulps: Update.
48613
48614 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48615
48616         * math/libm-test.inc (fma_test): Use max_value instead of local
48617         variable fltmax.
48618         (nextafter_test): Likewise.
48619
48620         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48621         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48622         (acos_downward_test_data): New variable.
48623         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48624         (acos_upward_test_data): New variable.
48625         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48626         (acosh_test_data): New variable.
48627         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48628         (asin_test_data): New variable.
48629         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48630         (asin_tonearest_test_data): New variable.
48631         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48632         (asin_towardzero_test_data): New variable.
48633         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48634         (asin_downward_test_data): New variable.
48635         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48636         (asin_upward_test_data): New variable.
48637         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48638         (asinh_test_data): New variable.
48639         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48640         (atan_test_data): New variable.
48641         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48642         (atanh_test_data): New variable.
48643         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48644         (cbrt_test_data): New variable.
48645         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48646         (ceil_test_data): New variable.
48647         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48648         (cos_test_data): New variable.
48649         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48650         (cos_tonearest_test_data): New variable.
48651         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48652         (cos_towardzero_test_data): New variable.
48653         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48654         (cos_downward_test_data): New variable.
48655         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48656         (cos_upward_test_data): New variable.
48657         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48658         (cosh_test_data): New variable.
48659         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48660         (cosh_tonearest_test_data): New variable.
48661         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48662         (cosh_towardzero_test_data): New variable.
48663         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48664         (cosh_downward_test_data): New variable.
48665         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48666         (cosh_upward_test_data): New variable.
48667         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48668         (erf_test_data): New variable.
48669         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48670         (erfc_test_data): New variable.
48671         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48672         (exp_test_data): New variable.
48673         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48674         (exp_tonearest_test_data): New variable.
48675         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48676         (exp_towardzero_test_data): New variable.
48677         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48678         (exp_downward_test_data): New variable.
48679         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48680         (exp_upward_test_data): New variable.
48681         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48682         (exp10_test_data): New variable.
48683         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48684         (exp2_test_data): New variable.
48685         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48686         (expm1_test_data): New variable.
48687         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48688         (fabs_test_data): New variable.
48689         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48690         (floor_test_data): New variable.
48691         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48692         (j0_test_data): New variable.
48693         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48694         (j1_test_data): New variable.
48695         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48696         (log_test_data): New variable.
48697         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48698         (log10_test_data): New variable.
48699         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48700         (log1p_test_data): New variable.
48701         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48702         (log2_test_data): New variable.
48703         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48704         (logb_test_data): New variable.
48705         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48706         (logb_downward_test_data): New variable.
48707         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48708         (nearbyint_test_data): New variable.
48709         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48710         (rint_test_data): New variable.
48711         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48712         (rint_tonearest_test_data): New variable.
48713         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48714         (rint_towardzero_test_data): New variable.
48715         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48716         (rint_downward_test_data): New variable.
48717         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48718         (rint_upward_test_data): New variable.
48719         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48720         (round_test_data): New variable.
48721         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48722         (sin_test_data): New variable.
48723         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48724         (sin_tonearest_test_data): New variable.
48725         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48726         (sin_towardzero_test_data): New variable.
48727         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48728         (sin_downward_test_data): New variable.
48729         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48730         (sin_upward_test_data): New variable.
48731         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48732         (sinh_test_data): New variable.
48733         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48734         (sinh_tonearest_test_data): New variable.
48735         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48736         (sinh_towardzero_test_data): New variable.
48737         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48738         (sinh_downward_test_data): New variable.
48739         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48740         (sinh_upward_test_data): New variable.
48741         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48742         (sqrt_test_data): New variable.
48743         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48744         (tan_test_data): New variable.
48745         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48746         (tan_tonearest_test_data): New variable.
48747         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48748         (tan_towardzero_test_data): New variable.
48749         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48750         (tan_downward_test_data): New variable.
48751         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48752         (tan_upward_test_data): New variable.
48753         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48754         (tanh_test_data): New variable.
48755         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48756         (tgamma_test_data): New variable.
48757         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48758         (trunc_test_data): New variable.
48759         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48760         (y0_test_data): New variable.
48761         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48762         (y1_test_data): New variable.
48763         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48764         (significand_test_data): New variable.
48765         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48766
48767 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48768
48769         [BZ #12387]
48770         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48771
48772 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48773
48774         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48775
48776 2013-05-10  Andreas Jaeger  <aj@suse.de>
48777
48778         [BZ #15448]
48779         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48780         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48781
48782 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48783
48784         * math/gen-libm-test.pl (adjust_arg): New function.
48785         (special_functions): Handle generating output in both functions
48786         and arrays.
48787         (parse_args): Likewise.
48788         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48789         $in_func argument to parse_args.
48790         * math/libm-test.inc (struct test_f_f_data): New type.
48791         (IF_ROUND_INIT_): New macro.
48792         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48793         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48794         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48795         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48796         (ROUND_RESTORE_): Likewise.
48797         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48798         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48799         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48800         (ROUND_RESTORE_FE_UPWARD): Likewise.
48801         (RUN_TEST_LOOP_f_f): New macro.
48802         (acos_test_data): New variable.
48803         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48804         (acos_tonearest_test_data): New variable.
48805         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48806
48807 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48808
48809         * benchtests/bench-skeleton.c (startup): Fix coding style.
48810
48811 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48812
48813         [BZ #6809]
48814         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48815         negative infinity argument.
48816         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48817         negative infinity argument.
48818         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48819         negative infinity argument.
48820         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48821         domain errors.
48822
48823 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48824
48825         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48826         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48827         * iconv/iconv_prog.c (main): Likewise.
48828         * locale/programs/charmap-dir.c (charmap_readdir)
48829         (fopen_uncompressed): Likewise.
48830         * locale/programs/locfile.c (siblings_uncached)
48831         (write_locale_data): Use lstat64 instead of lstat.
48832         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48833         stat.
48834
48835 2013-05-10  Andreas Jaeger  <aj@suse.de>
48836
48837         [BZ #15395]
48838         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48839         localization.
48840         Include <locale.h>.
48841
48842 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48843
48844         * elf/dl-close.c (_dl_close_worker): Add comments.
48845
48846 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48847
48848         [BZ #15359]
48849         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48850         high part of pi/2.
48851         (__ieee754_rem_pio2l): Update comments.
48852
48853         [BZ #15429]
48854         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48855         high part of pi/2.
48856         (__ieee754_rem_pio2l): Update comments.
48857
48858         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48859         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48860
48861         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48862         M_PI_4l.
48863
48864         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48865         (M_PI_34_LOG10El): Likewise.
48866         (M_PI2_LOG10El): Likewise.
48867         (M_PI4_LOG10El): Likewise.
48868         (M_PI_LOG10El): Likewise.
48869
48870 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48871
48872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48873
48874 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48875
48876         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48877         (MINUS_ZERO_INIT): Likewise.
48878         (PLUS_INFTY_INIT): Likewise.
48879         (MINUS_INFTY_INIT): Likewise.
48880         (QNAN_VALUE_INIT): Likewise.
48881         (MAX_VALUE_INIT): Likewise.
48882         (MIN_VALUE_INIT): Likewise.
48883         (MIN_SUBNORM_VALUE_INIT): Likewise.
48884         (plus_zero): Initialize with PLUS_ZERO_INIT.
48885         (minus_zero): Initialize with MINUS_ZERO_INIT.
48886         (plus_infty): Initialize with PLUS_INFTY_INIT.
48887         (minus_infty): Initialize with MINUS_INFTY_INIT.
48888         (qnan_value): Initialize with QNAN_VALUE_INIT.
48889         (max_value): Initialize with MAX_VALUE_INIT.
48890         (min_value): Initialize with MIN_VALUE_INIT.
48891         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48892
48893         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48894         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48895         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48896         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48897
48898         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48899         (RUN_TEST_2_f): Likewise.
48900         (RUN_TEST_ff_f): Likewise.
48901         (RUN_TEST_fi_f): Likewise.
48902         (RUN_TEST_fl_f): Likewise.
48903         (RUN_TEST_fff_f): Likewise.
48904         (RUN_TEST_c_f): Likewise.
48905         (RUN_TEST_f_f1): Likewise.
48906         (RUN_TEST_fF_f1): Likewise.
48907         (RUN_TEST_fI_f1): Likewise.
48908         (RUN_TEST_ffI_f1): Likewise.
48909         (RUN_TEST_c_c): Likewise.
48910         (RUN_TEST_cc_c): Likewise.
48911         (RUN_TEST_f_i): Likewise.
48912         (RUN_TEST_f_i_tg): Likewise.
48913         (RUN_TEST_ff_i_tg): Likewise.
48914         (RUN_TEST_f_b): Likewise.
48915         (RUN_TEST_f_b_tg): Likewise.
48916         (RUN_TEST_f_l): Likewise.
48917         (RUN_TEST_f_L): Likewise.
48918         (RUN_TEST_sincos): Likewise.
48919         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48920         whether to show exceptions.  Do not include ");\n" in return
48921         value.
48922         (special_functions): Output call to RUN_TEST_sincos instead of
48923         check_float calls.  Update calls to new_test.
48924         (parse_args): Output call to single RUN_TEST_* macro instead of
48925         check_* calls and other assignments.  Update calls to new_test.
48926
48927         [BZ #2546]
48928         [BZ #2560]
48929         [BZ #5159]
48930         [BZ #15426]
48931         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48932         input to result for tgamma overflow.
48933         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48934         (gamma_coeff): New variable.
48935         (NCOEFF): New macro.
48936         (gamma_positive): New function.
48937         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48938         underflow here.  Use gamma_positive instead of exp (lgamma) for
48939         other arguments.
48940         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48941         (gamma_coeff): New variable.
48942         (NCOEFF): New macro.
48943         (gammaf_positive): New function.
48944         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48945         underflow here.  Use gamma_positive instead of exp (lgamma) for
48946         other arguments.
48947         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48948         (gamma_coeff): New variable.
48949         (NCOEFF): New macro.
48950         (gammal_positive): New function.
48951         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48952         underflow here.  Use gamma_positive instead of exp (lgamma) for
48953         other arguments.
48954         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48955         (gamma_coeff): New variable.
48956         (NCOEFF): New macro.
48957         (gammal_positive): New function.
48958         (__ieee754_gammal_r): Handle positive infinity, overflow and
48959         underflow here.  Handle NaN the same as positive infinity.  Remove
48960         check x < 0xffffffff for negative integers.  Use gamma_positive
48961         instead of exp (lgamma) for other arguments.
48962         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48963         (gamma_coeff): New variable.
48964         (NCOEFF): New macro.
48965         (gammal_positive): New function.
48966         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48967         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48968         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48969         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48970         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48971         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48972         * sysdeps/generic/math_private.h (__gamma_productf): New
48973         prototype.
48974         (__gamma_product): Likewise.
48975         (__gamma_productl): Likewise.
48976         * math/Makefile (libm-calls): Add gamma_product.
48977         * math/libm-test.inc (tgamma_test): Add more tests.
48978         * sysdeps/i386/fpu/libm-test-ulps: Update.
48979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48980
48981 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48982
48983         * benchtests/bench-skeleton.c (main): Preheat CPU.
48984
48985 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48986
48987         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48988
48989 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48990
48991         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48992         and _dl_skip_args_internal.
48993
48994 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48995
48996         * manual/message.texi (Message Translation): Talk about users.
48997         Message to key mapping impacts design.
48998
48999 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49000
49001         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
49002
49003         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
49004
49005         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
49006         * sysdeps/wordsize-64/glob64.c: ... here.
49007
49008         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
49009         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
49010         New macros.
49011
49012         * debug/getlogin_r_chk.c: Moved to ...
49013         * login/getlogin_r_chk.c: ... here.
49014         * debug/Makefile (routines): Move getlogin_r_chk to ...
49015         * login/Makefile (routines): ... here.
49016         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
49017         * login/Versions (libc: GLIBC_2.4): ... here.
49018
49019         * io/poll.c (__poll): Renamed from poll.
49020         Add libc_hidden_def.
49021         (poll): Define as weak alias.
49022
49023         * debug/ptsname_r_chk.c: Moved to ...
49024         * login/ptsname_r_chk.c: ... here.
49025         * debug/Makefile (routines): Move ptsname_r_chk to ...
49026         * login/Makefile (routines): ... here.
49027         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
49028         * login/Versions (libc: GLIBC_2.4): ... here.
49029
49030         * posix/getlogin.c: Moved to ...
49031         * login/getlogin.c: ... here.
49032         * posix/getlogin_r.c: Moved to ...
49033         * login/getlogin_r.c: ... here.
49034         * posix/getlogin_r.c: Moved to ...
49035         * login/getlogin_r.c: ... here.
49036         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
49037         * login/Makefile (routines): ... here.
49038         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
49039         * login/Versions (libc: GLIBC_2.0): ... here.
49040
49041         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
49042         (setrlimit): Define as weak alias.
49043
49044         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
49045         Call __ names for open, ftruncate, and close.
49046         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
49047         (truncate): Define as weak alias.
49048
49049 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
49050
49051         * math/gen-libm-test.pl (parse_args): Initialize x before each
49052         test of frexp, modf and remquo.
49053
49054         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
49055         test signgam value.
49056
49057 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49058
49059         [BZ #15418]
49060         [BZ #15419]
49061         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
49062         internal tests.
49063         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49064
49065 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49066
49067         * elf/dl-writev.h: New file.
49068         * elf/dl-misc.c: Include it.
49069         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
49070         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
49071
49072 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
49073
49074         * math/libm-test.inc (noXFails): Remove variable.
49075         (noXPasses): Likewise.
49076         (BUILD_COMPLEX_INT): Remove macro.
49077         (print_screen): Remove xfail argument.
49078         (print_screen_max_error): Likewise.
49079         (update_stats): Likewise.
49080         (print_max_error): Likewise.  Update calls to other affected
49081         functions.
49082         (print_complex_max_error): Likewise.
49083         (test_single_exception): Update calls to print_screen.
49084         (test_single_errno): Likewise.
49085         (check_float_internal): Remove xfail argument.  Update calls to
49086         other affected functions.
49087         (check_float): Likewise.
49088         (check_complex): Likewise.
49089         (check_int): Likewise.
49090         (check_long): Likewise.
49091         (check_bool): Likewise.
49092         (check_longlong): Likewise.
49093         (main): Don't print noXFails and noXPasses.
49094         * math/gen-libm-test.pl (top level): Don't mention expected
49095         failure handling in comment.
49096         (new_test): Don't handle expected failures.
49097         (parse_args): Don't mention expected failure handling in comment.
49098         (generate_testfile): Don't handle expected failures.
49099         (parse_ulps): Likewise.
49100         (print_ulps_file): Likewise.
49101         (get_failure): Remove function.
49102         (output_test): Don't handle expected failures.
49103         * make/README.libm-test: Don't mention expected failure handling.
49104
49105         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
49106         (minus_zero): Likewise.
49107         (plus_infty): Likewise.
49108         (minus_infty): Likewise.
49109         (qnan_value): Likewise.
49110         (max_value): Likewise.
49111         (min_value): Likewise.
49112         (min_subnorm_value): Likewise.
49113         (initialize): Do not initialize those variables dynamically.
49114
49115 2013-05-03  Roland McGrath  <roland@hack.frob.com>
49116
49117         * io/open.c (__open_2): Moved to ...
49118         * io/open_2.c: ... this new file.
49119         * io/open64.c (__open64_2): Moved to ...
49120         * io/open64_2.c: ... this new file.
49121         * io/openat.c (__openat_2): Moved to ...
49122         * io/openat_2.c: ... this new file.
49123         * io/openat64.c (__openat64_2): Moved to ...
49124         * io/openat64_2.c: ... this new file.
49125         * io/Makefile (routines): Add them.
49126         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49127         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49128         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49129         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49130         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49131         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49132         (__openat64): Add hidden_ver.
49133         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49134         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49135
49136         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49137         Separately conditionalize setting of GLRO(dl_sysinfo) so
49138         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49139         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49140
49141 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49142
49143         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49144         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49145         definition.
49146         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49147         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49148         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49149         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49150         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49151
49152 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49153
49154         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49155         test signgam value.
49156
49157         * math/libm-test.inc (hypot_test): Do not use
49158         IGNORE_ZERO_INF_SIGN.
49159
49160 2013-05-03  Andreas Jaeger  <aj@suse.de>
49161
49162         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49163         Linux 3.9.
49164         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49165         (PF_MAX): Adjust for VSOCK change.
49166
49167 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49168
49169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49170
49171 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49172
49173         [BZ #15264]
49174         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49175         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49176         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49177
49178 2013-05-02  David S. Miller  <davem@davemloft.net>
49179
49180         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49181
49182 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49183
49184         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49185
49186 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49187
49188         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49189
49190 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49191
49192         [BZ #14952]
49193         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49194         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49195         Use __attribute__ ((__gnu_inline__)).
49196         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49197         Don't use __attribute__ ((__gnu_inline__)).
49198
49199 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49200
49201         [BZ #15423]
49202         * math/s_catan.c (__catan): Handle small real or imaginary part of
49203         input specially to avoid spurious underflow.
49204         * math/s_catanf.c (__catanf): Likewise.
49205         * math/s_catanh.c (__catanh): Likewise.
49206         * math/s_catanhf.c (__catanhf): Likewise.
49207         * math/s_catanhl.c (__catanhl): Likewise.
49208         * math/s_catanl.c (__catanl): Likewise.
49209         * math/libm-test.inc (catan_test): Add more tests.
49210         (catanh_test): Likewise.
49211         * sysdeps/i386/fpu/libm-test-ulps: Update.
49212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49213
49214 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49215
49216         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49217
49218 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49219
49220         [BZ #15416]
49221         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49222         accurately for denominator in atan2.
49223         * math/s_catanf.c (__catanf): Likewise.
49224         * math/s_catanh.c (__catanh): Likewise.
49225         * math/s_catanhf.c (__catanhf): Likewise.
49226         * math/s_catanhl.c (__catanhl): Likewise.
49227         * math/s_catanl.c (__catanl): Likewise.
49228         * math/libm-test.inc (catan_test): Add more tests.
49229         (catanh_test): Likewise.
49230         * sysdeps/i386/fpu/libm-test-ulps: Update.
49231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49232
49233 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49234
49235         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49236
49237         * benchtests/Makefile (bench): Remove slow benchmarks.
49238         * benchtests/atan-inputs: Add slow benchmark inputs.
49239         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49240         (BENCH_FUNC): Accept variant offset.
49241         (VARIANT): Define.
49242         * benchtests/bench-skeleton.c (main): Run benchmark for each
49243         variant.
49244         * benchtests/cos-inputs: Add slow benchmark inputs.
49245         * benchtests/exp-inputs: Likewise.
49246         * benchtests/pow-inputs: Likewise.
49247         * benchtests/sin-inputs: Likewise.
49248         * benchtests/slowatan-inputs: Remove.
49249         * benchtests/slowatan.c: Remove.
49250         * benchtests/slowcos-inputs: Remove.
49251         * benchtests/slowcos.c: Remove.
49252         * benchtests/slowexp-inputs: Remove.
49253         * benchtests/slowexp.c: Remove.
49254         * benchtests/slowpow-inputs: Remove.
49255         * benchtests/slowpow.c: Remove.
49256         * benchtests/slowsin-inputs: Remove.
49257         * benchtests/slowsin.c: Remove.
49258         * benchtests/slowtan-inputs: Remove.
49259         * benchtests/slowtan.c: Remove.
49260         * benchtests/tan-inputs: Add slow benchmark inputs.
49261         * scripts/bench.pl: Parse comments and directives.
49262
49263         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49264         in CPPFLAGS.
49265         ($(objpfx)bench-%.c): Remove *-ITER.
49266         * benchtests/bench-modf.c: Remove definition of ITER.
49267         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49268         (main): Loop for DURATION seconds instead of fixed number of
49269         iterations.
49270         * scripts/bench.pl: Don't expect iterations in parameters.
49271
49272 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49273
49274         * io/fchdir.c (__fchdir): Renamed from fchdir.
49275         (fchdir): Define as weak alias.
49276
49277 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49278
49279         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49280         (ERRNO_EDOM): Likewise.
49281         (ERRNO_ERANGE): Likewise.
49282         (noErrnoTests): New variable.
49283         (init_max_error): Set errno to 0.
49284         (test_single_errno): New function.
49285         (test_errno): Likewise.
49286         (check_float_internal): Call test_errno.  Set errno to 0.
49287         (check_complex): Refer to errno tests in comment.
49288         (check_int): Call test_errno.  Set errno to 0.
49289         (check_long): Likewise.
49290         (check_bool): Likewise.
49291         (check_longlong): Likewise.
49292         (cos_test): Use ERRNO_* flags for errno tests instead of
49293         check_int.
49294         (expm1_test): Likewise.
49295         (fmod_test): Likewise.
49296         (ilogb_test): Likewise.
49297         (lgamma_test): Likewise.
49298         (pow_test): Likewise.
49299         (remainder_test): Likewise.
49300         (sin_test): Likewise.
49301         (tan_test): Likewise.
49302         (yn_test): Likewise.
49303         (initialize): Set errno to 0.
49304         (main): Print number of errno tests.
49305         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49306
49307 2013-04-29  Andreas Jaeger  <aj@suse.de>
49308
49309         [BZ #15084]
49310         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49311         and RES_USEVC.
49312
49313         [BZ #15085]
49314         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49315         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49316         unimplemented.
49317
49318         [BZ #15380]
49319         * stdlib/random.c (__initstate): Return NULL if
49320         __initstate fails.
49321
49322         [BZ #15086]
49323         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49324         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49325         RES_SNGLKUPREOP.
49326
49327 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49328
49329         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49330
49331 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49332
49333         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49334         of individual tests.
49335         (casin_test): Likewise.
49336         (casinh_test): Likewise.
49337
49338 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49339
49340         [BZ #15409]
49341         * math/s_catan.c (__catan): Handle arguments with large real or
49342         imaginary part separately without squaring.
49343         * math/s_catanf.c (__catanf): Likewise.
49344         * math/s_catanh.c (__catanh): Likewise.
49345         * math/s_catanhf.c (__catanhf): Likewise.
49346         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49347         and redefine.
49348         (__catanhl): Handle arguments with large real or imaginary part
49349         separately without squaring.
49350         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49351         and redefine.
49352         (__catanl): Handle arguments with large real or imaginary part
49353         separately without squaring.
49354         * math/libm-test.inc (catan_test): Add more tests.
49355         (catanh_test): Likewise.
49356         * sysdeps/i386/fpu/libm-test-ulps: Update.
49357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49358
49359 2013-04-27  Andreas Jaeger  <aj@suse.de>
49360
49361         [BZ #15007]
49362         * stdlib/stdlib.h: Update guards for qecvt.
49363         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49364         <stdlib.h>.
49365
49366 2013-04-27  Allan McRae  <allan@archlinux.org>
49367
49368         * sysdeps/i386/fpu/libm-test-ulps: Update.
49369
49370 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49371
49372         [BZ #15406]
49373         * math/s_catan.c: Include <float.h>.
49374         (__catan): Ensure underflow exception occurs for underflowed
49375         result.
49376         * math/s_catanf.c: Include <float.h>.
49377         (__catanf): Ensure underflow exception occurs for underflowed
49378         result.
49379         * math/s_catanh.c: Include <float.h>.
49380         (__catanh): Ensure underflow exception occurs for underflowed
49381         result.
49382         * math/s_catanhf.c: Include <float.h>.
49383         (__catanhf): Ensure underflow exception occurs for underflowed
49384         result.
49385         * math/s_catanhl.c: Include <float.h>.
49386         (__catanhl): Ensure underflow exception occurs for underflowed
49387         result.
49388         * math/s_catanl.c: Include <float.h>.
49389         (__catanl): Ensure underflow exception occurs for underflowed
49390         result.
49391         * math/libm-test.inc (catan_test): Add more tests.
49392         (catanh_test): Likewise.
49393
49394         [BZ #15405]
49395         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49396         underflowed result.
49397         * math/s_ccoshf.c (__ccoshf): Likewise.
49398         * math/s_ccoshl.c (__ccoshl): Likewise.
49399         * math/s_csin.c (__csin): Likewise.
49400         * math/s_csinf.c (__csinf): Likewise.
49401         * math/s_csinh.c (__csinh): Likewise.
49402         * math/s_csinhf.c (__csinhf): Likewise.
49403         * math/s_csinhl.c (__csinhl): Likewise.
49404         * math/s_csinl.c (__csinl): Likewise.
49405         * math/libm-test.inc (ccos_test): Add more tests.
49406         (ccosh_test): Likewise.
49407         (csin_test): Likewise.
49408         (csinh_test): Likewise.
49409
49410 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49411
49412         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49413         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49414         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49415         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49416         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49417         powerpc/power5+/fpu folders.
49418         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49419
49420
49421 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49422
49423         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49424
49425 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49426
49427         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49428         additions to variable.
49429         [$(config-machine) = x86_64] (modules-names): Likewise.
49430         ($(objpfx)tst-audit3): Remove dependency.
49431         ($(objpfx)tst-audit3.out): Likewise.
49432         ($(objpfx)tst-audit4): Likewise.
49433         ($(objpfx)tst-audit4.out): Likewise.
49434         ($(objpfx)tst-audit5): Likewise.
49435         ($(objpfx)tst-audit5.out): Likewise.
49436         ($(objpfx)tst-audit6): Likewise.
49437         ($(objpfx)tst-audit6.out): Likewise.
49438         ($(objpfx)tst-audit7): Likewise.
49439         ($(objpfx)tst-audit7.out): Likewise.
49440         (tst-audit3-ENV): Remove variable.
49441         (tst-audit4-ENV): Likewise.
49442         (tst-audit5-ENV): Likewise.
49443         (tst-audit6-ENV): Likewise.
49444         (tst-audit7-ENV): Likewise.
49445         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49446         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49447         addition to variable.
49448         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49449         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49450         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49451         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49452         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49453         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49454         tst-audit3, tst-audit4 and tst-audit5.
49455         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49456         tst-audit6 and tst-audit7.
49457         [$(subdir) = elf] (modules-names): Add audit modules for those
49458         tests.
49459         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49460         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49461         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49462         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49463         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49464         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49465         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49466         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49467         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49468         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49469         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49470         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49471         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49472         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49473         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49474         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49475         Likewise.
49476         [$(subdir) = elf && $(config-cflags-avx) = yes]
49477         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49478         [$(subdir) = elf && $(config-cflags-avx) = yes]
49479         (CFLAGS-tst-auditmod4a.c): Likewise.
49480         [$(subdir) = elf && $(config-cflags-avx) = yes]
49481         (CFLAGS-tst-auditmod4b.c): Likewise.
49482         [$(subdir) = elf && $(config-cflags-avx) = yes]
49483         (CFLAGS-tst-auditmod6b.c): Likewise.
49484         [$(subdir) = elf && $(config-cflags-avx) = yes]
49485         (CFLAGS-tst-auditmod6c.c): Likewise.
49486         [$(subdir) = elf && $(config-cflags-avx) = yes]
49487         (CFLAGS-tst-auditmod7b.c): Likewise.
49488         * elf/tst-audit3.c: Move to ...
49489         * sysdeps/x86_64/tst-audit3.c: ... here.
49490         * elf/tst-audit4.c: Move to ...
49491         * sysdeps/x86_64/tst-audit4.c: ... here.
49492         * elf/tst-audit5.c: Move to ...
49493         * sysdeps/x86_64/tst-audit5.c: ... here.
49494         * elf/tst-audit6.c: Move to ...
49495         * sysdeps/x86_64/tst-audit6.c: ... here.
49496         * elf/tst-audit7.c: Move to ...
49497         * sysdeps/x86_64/tst-audit7.c: ... here.
49498         * elf/tst-auditmod3a.c: Move to ...
49499         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49500         * elf/tst-auditmod3b.c: Move to ...
49501         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49502         * elf/tst-auditmod4a.c: Move to ...
49503         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49504         * elf/tst-auditmod4b.c: Move to ...
49505         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49506         * elf/tst-auditmod5a.c: Move to ...
49507         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49508         * elf/tst-auditmod5b.c: Move to ...
49509         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49510         * elf/tst-auditmod6a.c: Move to ...
49511         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49512         * elf/tst-auditmod6b.c: Move to ...
49513         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49514         * elf/tst-auditmod6c.c: Move to ...
49515         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49516         * elf/tst-auditmod7a.c: Move to ...
49517         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49518         * elf/tst-auditmod7b.c: Move to ...
49519         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49520
49521 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49522
49523         [BZ #15366]
49524         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49525         define unconditionally.
49526         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49527         define unconditionally.
49528         (INT8_C, INT16_C, etc.): Likewise.
49529
49530 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49531
49532         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49533         __ehdr_start with hidden visibility.
49534
49535         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49536
49537 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49538
49539         * math/libm-test.inc (cos_test): Use accurate hex constants.
49540         (sincost_test): Likewise.
49541
49542 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49543
49544         * math/libm-test.inc (catan_test): Add more tests.
49545         (catanh_test): Likewise.
49546
49547         * math/s_catanf.c (__catanf): Use suffixed floating-point
49548         constants.
49549         * math/s_catanhf.c (__catanhf): Likewise.
49550         * math/s_catanhl.c (__catanhl): Likewise.
49551         * math/s_catanl.c (__catanl): Likewise.
49552
49553         [BZ #15394]
49554         * math/s_catan.c (__catan): Calculate imaginary part of result
49555         with log1p not log unless computing log of number close to 0.
49556         * math/s_catanf.c (__catanf): Likewise.
49557         * math/s_catanl.c (__catanl): Likewise.
49558         * math/s_catanh.c (__catanh): Calculate real part of result with
49559         log1p not log unless computing log of number close to 0.
49560         * math/s_catanhf.c (__catanhf): Likewise.
49561         * math/s_catanhl.c (__catanhl): Likewise.
49562         * math/libm-test.inc (catan_test): Add more tests.
49563         (catanh_test): Likewise.
49564         * sysdeps/i386/fpu/libm-test-ulps: Update.
49565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49566
49567 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49568
49569         * benchtests/Makefile: Mention files in which fast and slow
49570         paths of math functions are implemented.
49571
49572 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49573
49574         * sysdeps/posix/timespec_get.c: New file.
49575
49576 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49577
49578         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49579         POWER.
49580         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49581         for POWER.
49582         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49583         powerpc/power5/fpu folders.
49584         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49585         * benchtests/Makefile: Add modf testcase.
49586         * benchtests/bench-modf.c: New file: Benchmark test for mo
49587
49588 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49589
49590         [BZ #14888]
49591         * time/Makefile (tests): Add tst-strptime-whitespace.
49592         * time/strptime_l.c (get_number): Use ISSPACE.
49593         (__strptime_internal): Likewise.
49594         * time/tst-strptime-whitespace.c: New test case.
49595
49596 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49597
49598         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49599         member.
49600         (_nss_files_init): Set it here.
49601
49602 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49603
49604         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49605         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49606         unsigned.
49607
49608 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49609
49610         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49611
49612 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49613
49614         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49615         size just once.
49616
49617 2013-04-21  David S. Miller  <davem@davemloft.net>
49618
49619         * po/ru.po: Update Russion translation from translation project.
49620
49621 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49622
49623         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49624         and setfsgid.
49625
49626 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49627
49628         * configure.in: Remove i386 configure warning. Remove i386 case.
49629         * configure: Regenerate.
49630         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49631         Add example to error message.
49632         * sysdeps/i386/configure: Regenerate.
49633
49634 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49635
49636         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49637         slowtan.
49638         * benchtests/cos-inputs: New file.
49639         * benchtests/slowcos-inputs: New file.
49640         * benchtests/slowcos.c: New file.
49641         * benchtests/slowtan-inputs: New file.
49642         * benchtests/slowtan.c: New file.
49643         * benchtests/tan-inputs: New file.
49644
49645 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49646
49647         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49648         considered kosher.
49649
49650 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49651
49652         * benchtests/Makefile: Include cppflags-iterator.mk to add
49653         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49654
49655         * Makefile.in (bench-clean): New target.
49656         * benchtests/Makefile (bench-clean): Likewise.
49657
49658 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49659
49660         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49661
49662 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49663
49664         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49665
49666 2013-04-15  Andreas Schwab  <schwab@suse.de>
49667
49668         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49669         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49670         * nscd/pwdcache.c (cache_addpw): Likewise.
49671         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49672         more than recsize.
49673
49674 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49675
49676         * benchtests/Makefile (bench): Write all output to
49677         bench-out.tmp together.
49678
49679 2013-04-15  Andreas Schwab  <schwab@suse.de>
49680
49681         * nscd/nscd.c (main): Don't fork again after closing files.
49682
49683 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49684
49685         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49686
49687         * benchtests/Rules (bench-deps): Collect dependencies into a
49688         single variable.  Add Makefile to dependencies.
49689         ($(objpfx)bench-%.c): Depend on bench-deps.
49690
49691 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49692             Xavier Roche  <roche+kml2@exalead.com>
49693
49694         [BZ #15361]
49695         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49696         just that it's a file descriptor.
49697         * manual/llio.texi (Synchronizing AIO Operations): Update description
49698         for EBADF error from aio_fsync.
49699
49700 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49701
49702         * Rules (bench): Move target definition...
49703         * benchtests/Makefile: ... here.
49704
49705 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49706
49707         * math/libm-test.inc (cos_test): Fix PI/2 test.
49708         (sincos_test): Likewise.
49709         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49710         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49711
49712 2013-04-11  Andreas Schwab  <schwab@suse.de>
49713
49714         [BZ #13988]
49715         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49716         accept exponent character only when digits were seen.
49717         * stdio-common/Makefile (tests): Add bug26.
49718         * stdio-common/bug26.c: New file.
49719
49720         [BZ #14293]
49721         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49722         non-freeable.
49723
49724 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49725
49726         * Makeconfig (rtld-prefix): Define built linker prefix.
49727         * Rules (run-bench): Use it.
49728         * math/Makefile (run-regen-ulps): Likewise.
49729
49730         * Rules (bench): Remove eval.
49731
49732 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49733             Roland McGrath  <roland@hack.frob.com>
49734             Ondrej Bilka  <neleai@seznam.cz>
49735
49736         [BZ #15346]
49737         * time/getdate.c: Include ctype.h and alloca.h.
49738         (__getdate_r): Trim leading and trailing spaces of input.
49739         * time/tst-getdate.c (tests): Add tests with leading and
49740         trailing spaces.
49741
49742 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49743
49744         [BZ #14280]
49745         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49746         when computing value.
49747
49748 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49749
49750         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49751         Use testrun.sh to run libm tests.
49752
49753         [BZ #15309]
49754         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49755
49756 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49757
49758         [BZ #15264]
49759         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49760
49761 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49762
49763         * Makefile.in (regen-ulps): New target.
49764         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49765         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49766         [ifneq (no,$(PERL)] (regen-ulps): New target.
49767         [ifeq (no,$(PERL)] (regen-ulps): New target.
49768         * math/libm-test.inc (ulps_file_name): Define.
49769         (output_dir): New variable.
49770         (options): Add "output-dir" option.
49771         (parse_opt): Handle 'o' case.
49772         (main): If output_dir is non-NULL use it as a prefix
49773         otherwise use "".
49774         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49775
49776 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49777
49778         [BZ #10060, #10062]
49779         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49780         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49781         fail configure if __sync_val_compare_and_swap is not inlined.
49782         * sysdeps/i386/configure: Regenerate.
49783         * configure.in: Build for i686 when configured for i386.
49784         * configure: Regenerate.
49785         * README: Remove i386 reference.
49786
49787 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49788
49789         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49790         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49791
49792 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49793
49794         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49795         (lmsnanval): New variables.
49796         (F): Add conversion tests.
49797         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49798         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49799
49800         * stdio-common/tstdiomisc.c (F): Properly collect individual
49801         tests' results.
49802
49803         [BZ #14686, #15336]
49804         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49805         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49806         Instead, use input NaN values or generate a qNaN by arithmetic
49807         operation.  Also fix bugs to comply with the standard.
49808         * math/libm-test.inc (remainder_test): Add more tests.
49809
49810         [BZ #15335, #15342]
49811         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49812         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49813         input NaN values or generate a qNaN by arithmetic operation.
49814
49815         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49816         unreachable code.
49817
49818         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49819         definitions.
49820
49821 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49822
49823         [BZ #14478]
49824         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49825         underflowed result.
49826         * math/s_cexpf.c (__cexpf): Likewise.
49827         * math/s_cexpl.c (__cexpl): Likewise.
49828         * math/libm-test.inc (cexp_test): Add more tests.
49829
49830 2013-04-03  Andreas Schwab  <schwab@suse.de>
49831
49832         [BZ #15330]
49833         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49834         order arrays from heap if bigger than alloca cutoff.
49835
49836 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49837
49838         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49839         (SNAN_TESTS_double): Refer to GCC PR56831.
49840         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49841         GCC PR56828.
49842
49843 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49844
49845         * Rules (bench): Move bench.out after the run is complete.
49846
49847         * Rules (bench): Echo currently running benchmark.
49848
49849         * benchtests/Makefile (bench): Add atan and slowatan.
49850         * benchtests/atan-inputs: New file.
49851         * benchtests/slowatan-inputs: New file.
49852         * benchtests/slowatan.c: New file.
49853
49854         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49855         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49856         its value.
49857
49858         [BZ #15305]
49859         * sysdeps/unix/sysv/linux/kernel-features.h
49860         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49861         __ASSUME_XFS_RESTRICTED_CHOWN.
49862         * sysdeps/unix/sysv/linux/pathconf.c
49863         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49864         Save and restore errno.
49865
49866 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49867
49868         [BZ #15327]
49869         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49870         arguments using __kernel_casinh.
49871         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49872         arguments using __kernel_casinhf.
49873         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49874         arguments using __kernel_casinhl.
49875         * math/libm-test.inc (cacosh_test): Add more tests.
49876         * sysdeps/i386/fpu/libm-test-ulps: Update.
49877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49878
49879 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49880
49881         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49882         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49883
49884         * bench/Makefile (bench): Add sin and slowsin.
49885         * benchtests/sin-inputs: New file.
49886         * benchtests/slowsin-inputs: New file.
49887         * benchtests/slowsin.c: New file.
49888
49889         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49890         (bench): Add slowexp and slowpow.
49891         (exp-ITER): Increase iterations.
49892         (pow-ITER): Likewise.
49893         * benchtests/exp-inputs: Change input.
49894         * benchtests/pow-inputs: Likewise.
49895         * benchtests/slowexp-inputs: New file.
49896         * benchtests/slowexp.c: New file.
49897         * benchtests/slowpow-inputs: New file.
49898         * benchtests/slowpow.c: New file.
49899
49900 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49901
49902         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49903         instructions.
49904         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49905         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49906         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49907         * benchtests/Makefile: Add rint benchtest.
49908         * benchtests/rint-inputs: Input for rint benchtest.
49909
49910 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49911
49912         * Versions.def (libm): Add GLIBC_2.18.
49913         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49914         hidden libm prototypes.
49915         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49916         * math/Makefile (libm-calls): Add s_issignaling.
49917         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49918         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49919         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49920         declaration.
49921         * math/math.h [__USE_GNU] (issignaling): New macro.
49922         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49923         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49924         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49925         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49926         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49927         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49928         * manual/arith.texi (issignaling): New section.
49929         * manual/libm-err-tab.pl (@all_functions): Update comment.
49930         * math/gen-libm-test.pl (parse_args): Apply special handling for
49931         issignaling.
49932         * math/libm-test.inc (print_float, issignaling_test): New
49933         functions.
49934         (check_float_internal): Add issignaling checks.
49935         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49936         default definition.
49937         * sysdeps/powerpc/math-tests.h: New file.
49938         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49939         tests.
49940         * math/test-snan.c (TEST_FUNC): Likewise.
49941
49942 2013-03-30  David S. Miller  <davem@davemloft.net>
49943
49944         * po/de.po: Update from translation team.
49945
49946 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49947
49948         [BZ #10357]
49949         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49950         imaginary part less than 1.0 and real part less than 0.5
49951         specially.
49952         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49953         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49954         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49955         (cacos_test): Add more tests.
49956         (casin_test): Likewise.
49957         (casinh_test): Likewise.
49958         * sysdeps/i386/fpu/libm-test-ulps: Update.
49959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49960
49961 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49962
49963         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49964         ONE with its value.
49965
49966         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49967         (__pow_mp): Replace ONE and MONE with their values.
49968         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49969         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49970         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49971         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49972         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49973         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49974
49975         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49976
49977         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49978         (__pow_mp): Replace ZERO and MZERO with their values.
49979         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49980         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49981         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49982         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49983         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49984         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49985         (__sqr): Likewise.
49986
49987         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49988
49989         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49990
49991 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49992
49993         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49994         Declare with __attribute__ ((weak)).
49995         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49996         Call __call_tls_dtors only if it's not NULL.
49997
49998 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49999
50000         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
50001         didn't do it already, then set _dl_phdr and _dl_phnum based on the
50002         magic __ehdr_start linker symbol if it's defined.
50003         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
50004         them up here if it was already done.
50005
50006         * elf/dl-support.c (_dl_phdr): Make pointer to const.
50007         (_dl_aux_init): Use const in cast when setting it.
50008         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
50009         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
50010         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
50011
50012         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
50013         Declare them here.
50014         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
50015         * csu/libc-tls.c: Nor here.
50016         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
50017
50018         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
50019         (__libc_message): Never call vsyslog.
50020
50021 2013-03-28  Alan Modra  <amodra@gmail.com>
50022
50023         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
50024         Define as empty.
50025         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
50026         Likewise.
50027
50028 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50029
50030         [BZ #15214]
50031         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
50032         underflow.
50033         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50034
50035 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50036
50037         [BZ #15304]
50038         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
50039         Don't add gid passed as argument.
50040
50041         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
50042
50043 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
50044
50045         [BZ #15307]
50046         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50047         imaginary part between 1.0 and 1.5 and real part less than 0.5
50048         specially.
50049         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50050         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50051         * math/libm-test.inc (cacos_test): Add more tests.
50052         (casin_test): Likewise.
50053         (casinh_test): Likewise.
50054         * sysdeps/i386/fpu/libm-test-ulps: Update.
50055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50056
50057 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50058
50059         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
50060         constants.
50061         (norm): Likewise.
50062         (denorm): Likewise.
50063         (__dbl_mp): Likewise.
50064         (add_magnitudes): Likewise.
50065         (sub_magnitudes): Likewise.
50066         (__add): Likewise.
50067         (__sub): Likewise.
50068         (__mul): Likewise.
50069         (__sqr): Likewise.
50070         (__inv): Likewise.
50071         (__dvd): Likewise.
50072
50073         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
50074         commented code.
50075         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
50076         (__dubcos): Likewise.
50077         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
50078         (__ieee754_acos): Likewise.
50079         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50080         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
50081         (__exp1): Likewise.
50082         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50083         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
50084         (log1): Likewise.
50085         (my_log2): Likewise.
50086         (checkint): Likewise.
50087         * sysdeps/ieee754/dbl-64/e_remainder.c
50088         (__ieee754_remainder): Likewise.
50089         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50090         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
50091         (bsloww): Likewise.
50092         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50093
50094         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50095         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
50096         MANTISSA_STORE_T to store computations on mantissa.  Use
50097         macros for rounding and division.
50098         (denorm): Likewise.
50099         (__dbl_mp): Likewise.
50100         (add_magnitudes): Likewise.
50101         (sub_magnitudes): Likewise.
50102         (__mul): Likewise.
50103         (__sqr): Likewise.
50104         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50105         powers of two in terms of TWOPOW macro.
50106         (mp_no): Make type of mantissa as MANTISSA_T.
50107         [!RADIXI]: Define RADIXI.
50108         [!TWO52]: Define TWO52.
50109         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50110
50111 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50112
50113         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
50114         llroundl symbol when building for PPC32.
50115
50116 2013-03-24  Mark H Weaver  <mhw@netris.org>
50117
50118         * manual/arith.texi (Normalization Functions): Fix prototypes for
50119         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
50120
50121 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50122
50123         [BZ #13889]
50124         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50125         high value to check if expl overflow.
50126         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50127         to check for underflow and overflow.
50128         * math/libm-test.inc: Add exp test.
50129
50130 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50131
50132         [BZ #11120]
50133         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50134         with NOT_IN_libc.
50135
50136 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50137
50138         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50139         symbol.
50140
50141 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50142
50143         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50144         wrap blocks consisting of several statements.
50145
50146         * sysdeps/generic/math-tests.h: New file.
50147         * sysdeps/i386/fpu/math-tests.h: Likewise.
50148         * math/test-snan.c: Include it.
50149         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50150
50151 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50152
50153         [BZ #15285]
50154         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50155         (__ieee754_j0l): Do not improve calculations using cos of twice
50156         input for inputs above LDBL_MAX / 2.0L.
50157         (__ieee754_y0l): Likewise.
50158         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50159         (__ieee754_j1l): Do not improve calculations using cos of twice
50160         input for inputs above LDBL_MAX / 2.0L.
50161         (__ieee754_y1l): Likewise.
50162         * math/libm-test.inc (j0_test): Add another test.
50163         (j1_test): Likewise.
50164         (y0_test): Likewise.
50165         (y1_test): Likewise.
50166         * sysdeps/i386/fpu/libm-test-ulps: Update.
50167
50168 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50169
50170         * Rules ($(objpfx)bench-%.c): Include code from a C source
50171         file.
50172
50173 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50174
50175         [BZ #15287]
50176         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50177         imaginary part 1.0 and real part less than 0.5 specially.
50178         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50179         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50180         * math/libm-test.inc (cacos_test): Add more tests.
50181         (casin_test): Likewise.
50182         (casinh_test): Likewise.
50183         * sysdeps/i386/fpu/libm-test-ulps: Update.
50184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50185
50186 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50187
50188         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50189         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50190
50191 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50192
50193         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50194         * config.make.in (config-cflags-sse4): Remove variable.
50195         (config-cflags-avx): Likewise.
50196         (config-cflags-sse2avx): Likewise.
50197         (config-cflags-novzeroupper): Likewise.
50198         (config-asflags-i686): Likewise.
50199         (have-mfma4): Likewise.
50200         (have-as-vis3): Likewise.
50201         (MIG): Likewise.
50202         * configure.in (MIG): Do not AC_SUBST.
50203         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50204         (libc_cv_cc_sse4): Do not AC_SUBST.
50205         (libc_cv_cc_avx): Likewise.
50206         (libc_cv_cc_sse2avx): Likewise.
50207         (libc_cv_cc_novzeroupper): Likewise.
50208         (libc_cv_cc_fma4): Likewise.
50209         (libc_cv_as_i686): Likewise.
50210         (libc_cv_sparc_as_vis3): Likewise.
50211         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50212         LIBC_CONFIG_VAR.
50213         (config-asflags-i686): Likewise.
50214         (config-cflags-avx): Likewise.
50215         (config-cflags-sse2avx): Likewise.
50216         (have-mfma4): Likewise.
50217         (config-cflags-novzeroupper): Likewise.
50218         * sysdeps/mach/configure.in (MIG): Likewise.
50219         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50220         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50221         LIBC_CONFIG_VAR.
50222         (config-cflags-avx): Likewise.
50223         (config-cflags-sse2avx): Likewise.
50224         (have-mfma4): Likewise.
50225         (config-cflags-novzeroupper): Likewise.
50226         * configure: Regenerated.
50227         * sysdeps/i386/configure: Likewise.
50228         * sysdeps/mach/configure: Likewise.
50229         * sysdeps/sparc/configure: Likewise.
50230         * sysdeps/x86_64/configure: Likewise.
50231
50232 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50233
50234         [BZ #14812]
50235         * locale/programs/localedef.c (options): Put N_ translation marker
50236         on argument names, not just descriptions.
50237
50238 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50239
50240         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50241
50242 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50243
50244         [BZ #14176]
50245         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50246
50247 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50248
50249         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50250         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50251         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50252         [!BEFORE_ABORT] (before_abort): New function.
50253         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50254         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50255         (writev_for_fatal): New function.
50256         (WRITEV_FOR_FATAL): New macro; call that.
50257         (backtrace_and_maps): New function.
50258         (BEFORE_ABORT): New macro; call that.
50259         (struct str_list): Type removed.
50260         (__libc_message, __libc_fatal): Functions removed.
50261         Include <sysdeps/posix/libc_fatal.c> instead.
50262
50263 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50264
50265         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50266         constants.
50267         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50268         double constants.
50269
50270 2013-03-19  Andreas Schwab  <schwab@suse.de>
50271
50272         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50273         * sysdeps/gnu/configure: Regenerate.
50274
50275         * configure.in: Substitute libc_cv_rtlddir.
50276         * configure: Regenerate.
50277         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50278         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50279         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50280         * elf/Makefile (install-others, CFLAGS-interp.c)
50281         (ldso_install, common-ldd-rewrite): Likewise.
50282         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50283         $(inst_slibdir)/$(rtld-installed-name).
50284         * scripts/rellns-sh: Add -p option.
50285         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50286         for source.
50287
50288 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50289
50290         * manual/nptl.texi: Renamed to ...
50291         * manual/threads.texi: ... this.
50292         * manual/Makefile (chapters): Update.
50293
50294 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50295
50296         [BZ #14812]
50297         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50298         on argument names, not just descriptions.
50299         * malloc/memusagestat.c (options): Likewise.
50300         * nss/getent.c (options): Likewise.
50301
50302 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50303
50304         [BZ #14812]
50305         * iconv/iconv_prog.c (options): Put N_ translation marker
50306         on argument names, not just descriptions.
50307         * iconv/iconvconfig.c (options): Likewise.
50308
50309 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50310
50311         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50312         implementation which is faster on all x86_64 architectures.
50313         Tested on AMD, Intel Nehalem, SNB, IVB.
50314         * sysdeps/x86_64/strnlen.S: Likewise.
50315
50316         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50317         Remove all multiarch strlen and strnlen versions.
50318         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50319         Remove strlen and strnlen related parts.
50320
50321         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50322         Inline strlen part.
50323         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50324
50325         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50326         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50327         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50328         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50329         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50330         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50331
50332 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50333
50334         * manual/memory.texi (Malloc Tunable Parameters):
50335         Sort parameters alphabetically. Add comments for missing entries.
50336
50337 2013-03-17  David S. Miller  <davem@davemloft.net>
50338
50339         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50340
50341 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50342
50343         [BZ #15283]
50344         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50345         for arguments at most half maximum finite value.
50346         * math/libm-test.inc (j0_test): Add more tests.
50347         (j1_test): Likewise.
50348         (y0_test): Likewise.
50349         (y1_test): Likewise.
50350         * sysdeps/i386/fpu/libm-test-ulps: Update.
50351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50352
50353         [BZ #14155]
50354         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50355         1 / x and functions P and Q for arguments above 0x1p256L.
50356         (__ieee754_y0l): Likewise.
50357         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50358         (__ieee754_y1l): Likewise.
50359         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50360         (j1_test): Likewise.
50361         (y0_test): Likewise.
50362         (y1_test): Likewise.
50363
50364 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50365
50366         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50367         variable.
50368
50369 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50370
50371         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50372         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50373         zero since it's initialized to EXEC_PAGESIZE.
50374
50375         * sysdeps/unix/sysv/linux/ldsodefs.h
50376         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50377         * sysdeps/generic/ldsodefs.h: ... here.
50378
50379 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50380
50381         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50382
50383         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50384         math/test-snan.c.
50385         * math/test-snan.c: Renamed from
50386         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50387         * math/Makefile (tests): Add test-snan.
50388         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50389         test-powerpc-snan.
50390
50391         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50392         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50393         functions.
50394         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50395         __builtin_nan family of functions.
50396         * math/libm-test.inc (initialize): Initialize qnan_value with
50397         __builtin_nan family of functions.
50398         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50399         Remove variables.
50400         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50401         Remove functions.
50402         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50403         storage class.  Initialize qNaN_var and sNaN_var with
50404         __builtin_nan and __builtin_nans families of functions,
50405         respectively.
50406
50407         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50408         (sqrt_test): Remove duplicate test with qNaN input.
50409         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50410         (round_test, signbit_test, significand_test): Note missing +/-Inf
50411         as well as qNaN tests.
50412
50413         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50414         qNaN_var.  Fix a few strings, too.
50415         * math/libm-test.inc (nan_value): Rename to qnan_value.
50416         * math/gen-libm-test.pl (%beautify): Adjust to that.
50417         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50418         * math/test-misc.c (main): Likewise.
50419         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50420         to __qnan_bytes, and __qnan_union, respectively.
50421         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50422         Likewise.
50423         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50424         and lqnanval, respectively.
50425         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50426         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50427         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50428         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50429
50430         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50431         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50432         doubles.
50433
50434         * math/test-misc.c (main): Fix copy'n'pastos.
50435         * misc/tst-efgcvt.c (special): Likewise.
50436
50437         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50438         Remove declarations.
50439
50440 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50441
50442         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50443         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50444         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50445         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50446
50447 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50448
50449         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50450         macro to return vdso values correctly in IFUNC implementations.
50451         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50452         Optimization by using IFUNC.
50453
50454 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50455             Richard Henderson  <rth@redhat.com>
50456             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50457
50458         * Makefile.in (bench): New target.
50459         * NEWS: Mention the benchmark framework.
50460         * Rules (bench): Likewise.
50461         (binaries-bench): Generate binaries for functions to
50462         benchmark.
50463         * benchtests/Makefile: New makefile for benchmark tests.
50464         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50465         programs.
50466         * benchtests/exp-inputs: New input file for EXP function.
50467         * benchtests/pow-inputs: New input file for POW function.
50468         * scripts/bench.pl: New script to generate source files for
50469         benchmark programs.
50470
50471 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50472
50473         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50474         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50475         computations on mantissa.  Use macros for rounding and
50476         division.
50477         (denorm): Likewise.
50478         (__dbl_mp): Likewise.
50479         (add_magnitudes): Likewise.
50480         (sub_magnitudes): Likewise.
50481         (__mul): Likewise.
50482         (__sqr): Likewise.
50483         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50484         powers of two in terms of TWOPOW macro.
50485         (mp_no): Make type of mantissa as MANTISSA_T.
50486         [!RADIXI]: Define RADIXI.
50487         [!TWO52]: Define TWO52.
50488         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50489
50490         * manual/nptl.texi (cindex): Modify threads to pthreads.
50491
50492 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50493
50494         * sysdeps/x86_64/preconfigure: Regenerated.
50495
50496 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50497
50498         [BZ #14155]
50499         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50500         0x1p28 and above.
50501         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50502         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50503         0x1p28 and above.
50504         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50505         * math/libm-test.inc (j0_test): Do not allow one spurious
50506         underflow exception.
50507         (y1_test): Likewise.
50508
50509 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50510
50511         * manual/Makefile (chapters): Add nptl.
50512         * manual/debug.texi (Debugging Support): Add link to Threads
50513         chapter.
50514         * manual/nptl.texi: New file.
50515
50516         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50517
50518 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50519
50520         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50521         for non-NULL pointer before the memory validity test. Pointed
50522         out by Holger Brunck <holger.brunck@keymile.com>.
50523
50524 2013-03-13  Andreas Schwab  <schwab@suse.de>
50525
50526         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50527         instead of .os.
50528
50529 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50530
50531         * timezone/zic.c: Update from tzcode 2013b.
50532
50533 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50534
50535         * manual/install.texi (Configuring and compiling):
50536         Mention i686 and i586.
50537         * INSTALL: Regenerate.
50538
50539 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50540
50541         * sysdeps/init_array/elf-init.c: New file.
50542         * csu/elf-init.c
50543         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50544         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50545
50546         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50547         __gmon_start__ as global, but as static with a .preinit_array pointer.
50548         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50549         * sysdeps/init_array/crti.S: New file, empty except for comments.
50550         * sysdeps/init_array/crtn.S: Likewise.
50551
50552 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50553
50554         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50555         definining bcopy.
50556         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50557         Remove Prefer_SSE_for_memop.
50558         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50559         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50560         HAS_PREFER_SSE_FOR_MEMOP.
50561         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50562         memset-x86-64.
50563         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50564         Remove bzero, memset ifunc support.
50565         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50566         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50567         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50568         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50569
50570 2013-03-11  Andreas Schwab  <schwab@suse.de>
50571
50572         [BZ #15234]
50573         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50574         by SHLIB_COMPAT.
50575         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50576         (GLIBC_2.16): Remove pthread_atfork.
50577
50578 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50579
50580         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50581         (ptestcases.h): Likewise.
50582
50583 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50584
50585         * Makeconfig ($(common-objpfx)config.status): Depend on
50586         sysdeps/*/preconfigure{,.in} too.
50587
50588 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50589
50590         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50591         (__free_hook): Use void * instead of __malloc_ptr_t.
50592         (__malloc_hook): Likewise.
50593         (__realloc_hook): Likewise.
50594         (__memalign_hook): Likewise.
50595         (__after_morecore_hook): Likewise.
50596         * malloc/arena.c (save_malloc_hook): Likewise.
50597         (save_free_hook): Likewise.
50598         * malloc/hooks.c (malloc_hook_ini): Likewise.
50599         (realloc_hook_ini): Likewise.
50600         (memalign_hook_ini): Likewise.
50601         * malloc/malloc.c (malloc_hook_ini): Likewise.
50602         (realloc_hook_ini): Likewise.
50603         (memalign_hook_ini): Likewise.
50604         (__free_hook): Likewise.
50605         (__malloc_hook): Likewise.
50606         (__realloc_hook): Likewise.
50607         (__memalign_hook): Likewise.
50608         (__libc_malloc): Likewise.
50609         (__libc_free): Likewise.
50610         (__libc_realloc): Likewise.
50611         (__libc_memalign): Likewise.
50612         (__libc_valloc): Likewise.
50613         (__libc_pvalloc): Likewise.
50614         (__libc_calloc): Likewise.
50615         (__posix_memalign): Likewise.
50616         * malloc/morecore.c (__sbrk): Likewise.
50617         (__default_morecore): Likewise.
50618
50619         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50620
50621         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50622         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50623         __malloc_ptrdiff_t.
50624
50625         * malloc/malloc.h (__malloc_size_t): Remove macro.
50626         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50627         __malloc_size_t.
50628         (old_memalign_hook): Likewise.
50629         (old_realloc_hook): Likewise.
50630         (struct hdr): Likewise.
50631         (flood): Likewise.
50632         (mallochook): Likewise.
50633         (memalignhook): Likewise.
50634         (reallochook): Likewise.
50635         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50636         (tr_old_realloc_hook): Likewise.
50637         (tr_old_memalign_hook): Likewise.
50638         (tr_mallochook): Likewise.
50639         (tr_reallochook): Likewise.
50640         (tr_memalignhook): Likewise.
50641
50642 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50643
50644         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50645         default_ldbl_pack and using as default implementation.
50646         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50647         implementation.
50648         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50649         redundant definition.
50650         (ldbl_insert_mantissa): Likewise.
50651         (ldbl_canonicalize): Likewise.
50652         (ldbl_nearbyint): Likewise.
50653         (ldbl_pack): Rename to ldbl_pack_ppc.
50654         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50655         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50656         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50657
50658 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50659
50660         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50661         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50662         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50663         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50664         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50665         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50666         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50667         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50668
50669 2013-03-07  Andreas Jaeger  <aj@suse.de>
50670
50671         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50672         bits/mman-linux.h.
50673
50674 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50675
50676         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50677         Include mpa.h and declare __MPEXP.
50678         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50679         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50680         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50681         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50682         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50683         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50684         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50685
50686         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50687         (__slowpow): Use long double EXPL and LOGL functions to
50688         compute POW.
50689         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50690         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50691         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50692         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50693         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50694         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50695
50696         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50697         intermediate variable to calculate exponent.
50698         (__sqr): Likewise.
50699         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50700         Likewise.
50701         (__sqr): Likewise.
50702
50703         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50704         [!NO__SQR]: Define __sqr.
50705         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50706         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50707         sysdeps/ieee754/dbl-64/mpa.c.
50708         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50709
50710         [BZ #12723]
50711         * posix/Makefile (tests): Add tst-pathconf.
50712         * posix/tst-pathconf.c: New test case.
50713         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50714         _PC_PIPE_BUF.
50715         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50716
50717 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50718
50719         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50720
50721 2013-03-06  Andreas Jaeger  <aj@suse.de>
50722
50723         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50724         definition via __MAP_ANONYMOUS.
50725
50726         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50727         it's not part of Linux headers.
50728
50729         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50730         (MAP_HUGE_MASK): Define.
50731
50732         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50733         Define.
50734         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50735         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50736         Define.
50737         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50738         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50739         Define.
50740         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50741         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50742         Define.
50743         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50744
50745         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50746         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50747         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50748         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50749         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50750         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50751
50752         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50753         Handle f2fs.
50754
50755         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50756         Handle f2fs and efivarfs.
50757
50758         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50759         f2fs.
50760
50761         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50762         (EFIVARFS_MAGIC): Add.
50763         (F2FS_LINK_MAX): Add.
50764
50765 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50766
50767         * stdio-common/vfprintf.c: Replace __builtin_expect with
50768         __glibc_unlikely.
50769
50770 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50771
50772         [BZ #13550]
50773         * sysdeps/generic/bp-sym.h: Remove file.
50774         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50775         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50776         <bp-sym.h> and <bp-asm.h>.
50777         (__longjmp): Don't use BP_SYM.
50778         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50779         and <bp-asm.h>.
50780         (memcpy): Don't use BP_SYM.
50781         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50782         <bp-sym.h> and <bp-asm.h>.
50783         (memcpy): Don't use BP_SYM.
50784         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50785         <bp-asm.h>.
50786         (memcpy): Don't use BP_SYM.
50787         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50788         <bp-asm.h>.
50789         (memset): Don't use BP_SYM.
50790         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50791         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50792         (__bzero): Don't use BP_SYM.
50793         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50794         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50795         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50796         <bp-sym.h> and <bp-asm.h>.
50797         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50798         pointers.
50799         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50800         <bp-sym.h> and <bp-asm.h>.
50801         (memcpy): Don't use BP_SYM.
50802         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50803         <bp-sym.h> and <bp-asm.h>.
50804         (memset): Don't use BP_SYM.
50805         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50806         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50807         (__bzero): Don't use BP_SYM.
50808         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50809         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50810         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50811         <bp-sym.h> and <bp-asm.h>.
50812         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50813         pointers.
50814         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50815         <bp-sym.h> and <bp-asm.h>.
50816         (memcpy): Don't use BP_SYM.
50817         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50818         <bp-sym.h> and <bp-asm.h>.
50819         (memset): Don't use BP_SYM.
50820         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50821         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50822         (__bzero): Don't use BP_SYM.
50823         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50824         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50825         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50826         <bp-sym.h> and <bp-asm.h>.
50827         (__memchr): Don't use BP_SYM.
50828         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50829         <bp-sym.h> and <bp-asm.h>.
50830         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50831         pointers.
50832         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50833         <bp-sym.h> and <bp-asm.h>.
50834         (memcpy): Don't use BP_SYM.
50835         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50836         <bp-sym.h> and <bp-asm.h>.
50837         (__mempcpy): Don't use BP_SYM.
50838         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50839         <bp-sym.h> and <bp-asm.h>.
50840         (__memrchr): Don't use BP_SYM.
50841         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50842         <bp-sym.h> and <bp-asm.h>.
50843         (memset): Don't use BP_SYM.
50844         (__bzero): Likewise.
50845         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50846         <bp-sym.h> and <bp-asm.h>.
50847         (__rawmemchr): Don't use BP_SYM.
50848         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50849         <bp-sym.h> and <bp-asm.h>.
50850         (__STRCMP): Don't use BP_SYM.
50851         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50852         <bp-sym.h> and <bp-asm.h>.
50853         (strchr): Don't use BP_SYM.
50854         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50855         <bp-sym.h> and <bp-asm.h>.
50856         (__strchrnul): Don't use BP_SYM.
50857         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50858         <bp-sym.h> and <bp-asm.h>.
50859         (strlen): Don't use BP_SYM.
50860         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50861         <bp-sym.h> and <bp-asm.h>.
50862         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50863         pointers.
50864         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50865         <bp-sym.h> and <bp-asm.h>.
50866         (__strnlen): Don't use BP_SYM.
50867         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50868         <bp-sym.h> and <bp-asm.h>.
50869         (__GI__setjmp): Don't use BP_SYM.
50870         (_setjmp): Likewise.
50871         (__sigsetjmp): Likewise.
50872         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50873         (L(start_addresses)): Don't use BP_SYM.
50874         (_start): Likewise.
50875         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50876         <bp-asm.h>.
50877         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50878         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50879         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50880         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50881         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50882         <bp-asm.h>.
50883         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50884         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50885         about bounded pointers.
50886         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50887         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50888         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50889         <bp-asm.h>.
50890         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50891         about bounded pointers.  Remove GKM FIXME comments.
50892         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50893         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50894         <bp-asm.h>.
50895         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50896         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50897         Remove GKM FIXME comments.
50898         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50899         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50900         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50901         <bp-asm.h>.
50902         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50903         about bounded pointers.  Remove GKM FIXME comment.
50904         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50905         and <bp-asm.h>.
50906         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50907         pointers.
50908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50909         <bp-sym.h> and <bp-asm.h>.
50910         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50912         <bp-sym.h> and <bp-asm.h>.
50913         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50914         comment.
50915
50916 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50917
50918         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50919         call free(NULL).
50920
50921 2013-03-05  David S. Miller  <davem@davemloft.net>
50922
50923         * po/es.po: Update from translation team.
50924
50925 2013-03-05  Andreas Jaeger  <aj@suse.de>
50926
50927         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50928         <bits/mman-linux.h>.
50929         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50930         is fine.
50931         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50932         <bits/mman-linux.h> to end of file.
50933         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50934         is fine.
50935         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50936         <bits/mman-linux.h> to end of file.
50937         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50938         is fine.
50939         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50940         <bits/mman-linux.h> to end of file.
50941
50942         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50943         (MCL_CURRENT, MCL_FUTURE): Define here.
50944
50945 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50946
50947         [BZ #15232]
50948         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50949         attribute_hidden.
50950         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50951
50952 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50953
50954         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50955         fourth parameter needed for rt_sigprocmask syscall.
50956         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50957         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50958         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50959         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50960         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50961         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50962
50963 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50964
50965         [BZ #13550]
50966         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50967         comment about bounded pointers.
50968         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50969         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50970
50971 2013-03-04  Andreas Jaeger  <aj@suse.de>
50972
50973         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50974         common definitions.
50975
50976         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50977         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50978         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50979         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50980         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50981         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50982
50983 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50984
50985         [BZ #15055]
50986         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50987         __ieee754_sqrl instead of __sqrl.
50988
50989 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50990
50991         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50992         * sysdeps/powerpc/fpu_control.h: ... here.
50993         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50994         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50995         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50996         * sysdeps/powerpc/bits/mathinline.h: ... here.
50997
50998 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50999
51000         * elf/dl-hwcaps.c (_dl_important_hwcaps):
51001         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
51002         to just [NEED_DL_SYSINFO_DSO].
51003         * elf/dl-support.c: Likewise.
51004         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
51005         * elf/rtld.c (dl_main): Likewise.
51006         * elf/setup-vdso.h (setup_vdso): Likewise.
51007         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
51008         * sysdeps/unix/sysv/linux/dl-sysdep.c
51009         (_dl_discover_osversion): Likewise.
51010
51011 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
51012
51013         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
51014         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51015
51016 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
51017
51018         * NEWS: Mention libm performance improvements and non-x86 PI
51019         futex support.
51020
51021         * csu/libc-start.c (__pthread_initialize_minimal): Change
51022         function arguments.
51023         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51024
51025 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
51026
51027         [BZ #13550]
51028         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
51029         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
51030         <bp-sym.h> and <bp-asm.h>.
51031         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51032         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
51033         and <bp-asm.h>.
51034         (memcpy): Don't use BP_SYM.
51035         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
51036         <bp-asm.h>.
51037         (__mpn_add_n): Don't use BP_SYM.
51038         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
51039         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
51040         and <bp-asm.h>.
51041         (__mpn_addmul_1): Don't use BP_SYM.
51042         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51043         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
51044         <bp-sym.h>.
51045         (_setjmp): Don't use BP_SYM.
51046         (__novmx_setjmp): Likewise.
51047         (__GI__setjmp): Likewise.
51048         (__vmx_setjmp): Likewise.
51049         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
51050         <bp-sym.h>.
51051         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
51052         (__bzero): Don't use BP_SYM.
51053         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
51054         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
51055         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
51056         <bp-sym.h> and <bp-asm.h>.
51057         (memcpy): Don't use BP_SYM.
51058         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
51059         <bp-sym.h> and <bp-asm.h>.
51060         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51061         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
51062         <bp-sym.h> and <bp-asm.h>.
51063         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51064         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
51065         <bp-asm.h>.
51066         (__mpn_lshift): Don't use BP_SYM.
51067         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51068         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
51069         <bp-asm.h>.
51070         (memset): Don't use BP_SYM.
51071         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
51072         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
51073         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
51074         <bp-asm.h>.
51075         (__mpn_mul_1): Don't use BP_SYM.
51076         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51077         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
51078         <bp-sym.h> and <bp-asm.h>.
51079         (memcmp): Don't use BP_SYM.
51080         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
51081         <bp-sym.h> and <bp-asm.h>.
51082         (memcpy): Don't use BP_SYM.
51083         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
51084         <bp-sym.h> and <bp-asm.h>.
51085         (memset): Don't use BP_SYM.
51086         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
51087         <bp-sym.h> and <bp-asm.h>.
51088         (strncmp): Don't use BP_SYM.
51089         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
51090         <bp-sym.h> and <bp-asm.h>.
51091         (memcpy): Don't use BP_SYM.
51092         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
51093         <bp-sym.h> and <bp-asm.h>.
51094         (memset): Don't use BP_SYM.
51095         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
51096         <bp-sym.h> and <bp-asm.h>.
51097         (__memchr): Don't use BP_SYM.
51098         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
51099         <bp-sym.h> and <bp-asm.h>.
51100         (memcmp): Don't use BP_SYM.
51101         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
51102         <bp-sym.h> and <bp-asm.h>.
51103         (memcpy): Don't use BP_SYM.
51104         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
51105         <bp-sym.h> and <bp-asm.h>.
51106         (__mempcpy): Don't use BP_SYM.
51107         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
51108         <bp-sym.h> and <bp-asm.h>.
51109         (__memrchr): Don't use BP_SYM.
51110         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
51111         <bp-sym.h> and <bp-asm.h>.
51112         (memset): Don't use BP_SYM.
51113         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
51114         <bp-sym.h> and <bp-asm.h>.
51115         (__rawmemchr): Don't use BP_SYM.
51116         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
51117         <bp-sym.h> and <bp-asm.h>.
51118         (__STRCMP): Don't use BP_SYM.
51119         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
51120         <bp-sym.h> and <bp-asm.h>.
51121         (strchr): Don't use BP_SYM.
51122         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
51123         <bp-sym.h> and <bp-asm.h>.
51124         (__strchrnul): Don't use BP_SYM.
51125         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51126         <bp-sym.h> and <bp-asm.h>.
51127         (strlen): Don't use BP_SYM.
51128         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51129         <bp-sym.h> and <bp-asm.h>.
51130         (strncmp): Don't use BP_SYM.
51131         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51132         <bp-sym.h> and <bp-asm.h>.
51133         (__strnlen): Don't use BP_SYM.
51134         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51135         <bp-asm.h>.
51136         (__mpn_rshift): Don't use BP_SYM.
51137         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51138         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51139         <bp-sym.h> and <bp-asm.h>.
51140         (__sigsetjmp): Don't use BP_SYM.
51141         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51142         (L(start_addresses)): Don't use BP_SYM.
51143         (_start): Likewise.
51144         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51145         <bp-asm.h>.
51146         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51147         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51148         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51149         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51150         <bp-asm.h>.
51151         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51152         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51153         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51154         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51155         <bp-asm.h>.
51156         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51157         comments.
51158         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51159         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51160         <bp-asm.h>.
51161         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51162         FIXME comments.
51163         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51164         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51165         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51166         <bp-asm.h>.
51167         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51168         comment.
51169         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51170         and <bp-asm.h>.
51171         (strncmp): Don't use BP_SYM,
51172         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51173         <bp-asm.h>.
51174         (__mpn_sub_n): Don't use BP_SYM.
51175         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51176         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51177         and <bp-asm.h>.
51178         (__mpn_submul_1): Don't use BP_SYM.
51179         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51181         <bp-sym.h> and <bp-asm.h>.
51182         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51184         <bp-sym.h> and <bp-asm.h>.
51185         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51186         comment.
51187
51188 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51189
51190         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51191         Use ZK to minimize writes to Z.
51192         (sub_magnitudes): Simplify code a bit.
51193         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51194         Use ZK to minimize writes to Z.
51195         (sub_magnitudes): Simplify code a bit.
51196
51197 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51198
51199         * csu/gmon-start.c: Add special exception to license text.
51200
51201 2013-02-27  Richard Henderson  <rth@redhat.com>
51202
51203         * scripts/config.guess: Update from config.git.
51204         * scripts/config.sub: Likewise.
51205
51206 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51207
51208         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51209
51210         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51211
51212         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51213
51214         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51215
51216         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51217
51218 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51219
51220         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51221         [$(build-shared = yes].
51222
51223 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51224
51225         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51226         (__mul): Reduce iterations for calculating mantissa.
51227
51228         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51229         MPTWO.
51230         (__mpranred): Likewise.
51231
51232         [BZ #15160]
51233         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51234         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51235
51236 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51237
51238         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51239         Define __attribute__.
51240
51241 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51242
51243         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51244         unused.
51245         * posix/regex_internal.h (__attribute): Remove.
51246         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51247         (re_string_context_at): Likewise.
51248         (bitset_not): Use __attribute__ and mark function as possibly
51249         unused.
51250         (bitset_merge): Likewise.
51251         (bitset_mask): Likewise.
51252         (re_string_char_size_at): Likewise.
51253         (re_string_wchar_at): Likewise.
51254         (re_string_elem_size_at): Likewise.
51255
51256 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51257
51258         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51259         code.
51260         (cc32): Likewise.
51261
51262         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51263         (__acr): Likewise.
51264         (__cpy): Likewise.
51265         (norm): Likewise.
51266         (denorm): Likewise.
51267         (__dbl_mp): Likewise.
51268         (add_magnitudes): Likewise.
51269         (sub_magnitudes): Likewise.
51270         (__mul): Likewise.
51271         (__inv): Likewise.
51272
51273         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51274         style.
51275
51276         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51277         style.
51278
51279         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51280         code.
51281
51282         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51283         up changes with default code.
51284         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51285         Likewise.
51286
51287 2013-02-24  Allan McRae  <allan@archlinux.org>
51288
51289         * manual/socket.texi (The Internet Namespace): Order menu items
51290         to match that in the file.
51291
51292         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51293         node listing of the info page menu.
51294
51295 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51296
51297         [BZ #13550]
51298         * sysdeps/i386/bp-asm.h: Remove file.
51299         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51300         (PARMS): Do not use macros from bp-asm.h.
51301         (S1): Likewise.
51302         (S2): Likewise.
51303         (SIZE): Likewise.
51304         (__mpn_add_n): Do not use BP_SYM
51305         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51306         "bp-asm.h".
51307         (PARMS): Do not use macros from bp-asm.h.
51308         (S1): Likewise.
51309         (SIZE): Likewise.
51310         (__mpn_addmul_1): Do not use BP_SYM
51311         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51312         "bp-asm.h".
51313         (PARMS): Do not use macros from bp-asm.h.
51314         (SIGMSK): Likewise.
51315         (_setjmp): Likewise.  Do not use BP_SYM.
51316         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51317         "bp-asm.h".
51318         (PARMS): Do not use macros from bp-asm.h.
51319         (SIGMSK): Likewise.
51320         (setjmp): Likewise.  Do not use BP_SYM.
51321         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51322         "bp-asm.h".
51323         (PARMS): Do not use macros from bp-asm.h.
51324         (__frexp): Do not use BP_SYM.
51325         (frexp): Likewise.
51326         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51327         "bp-asm.h".
51328         (PARMS): Do not use macros from bp-asm.h.
51329         (__frexpf): Do not use BP_SYM.
51330         (frexpf): Likewise.
51331         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51332         "bp-asm.h".
51333         (PARMS): Do not use macros from bp-asm.h.
51334         (__frexpl): Do not use BP_SYM.
51335         (frexpl): Likewise.
51336         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51337         "bp-asm.h".
51338         (PARMS): Do not use macros from bp-asm.h.
51339         (__remquo): Do not use BP_SYM.
51340         (remquo): Likewise.
51341         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51342         "bp-asm.h".
51343         (PARMS): Do not use macros from bp-asm.h.
51344         (__remquof): Do not use BP_SYM.
51345         (remquof): Likewise.
51346         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51347         "bp-asm.h".
51348         (PARMS): Do not use macros from bp-asm.h.
51349         (__remquol): Do not use BP_SYM.
51350         (remquol): Likewise.
51351         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51352         "bp-asm.h".
51353         (PARMS): Do not use macros from bp-asm.h.
51354         (DEST): Likewise.
51355         (SRC): Likewise.
51356         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51357         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51358         "bp-asm.h".
51359         (PARMS): Do not use macros from bp-asm.h.
51360         (strlen): Do not use BP_SYM.
51361         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51362         "bp-asm.h".
51363         (PARMS): Do not use macros from bp-asm.h.
51364         (S1): Likewise.
51365         (S2): Likewise.
51366         (SIZE): Likewise.
51367         (__mpn_add_n): Do not use BP_SYM.
51368         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51369         "bp-asm.h".
51370         (PARMS): Do not use macros from bp-asm.h.
51371         (S1): Likewise.
51372         (SIZE): Likewise.
51373         (__mpn_addmul_1): Do not use BP_SYM.
51374         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51375         weak_alias.
51376         (bzero): Likewise.
51377         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51378         "bp-asm.h".
51379         (PARMS): Do not use macros from bp-asm.h.
51380         (S): Likewise.
51381         (SIZE): Likewise.
51382         (__mpn_lshift): Do not use BP_SYM.
51383         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51384         "bp-asm.h".
51385         (PARMS): Do not use macros from bp-asm.h.
51386         (DEST): Likewise.
51387         (SRC): Likewise.
51388         (LEN): Likewise.
51389         (memcpy): Likewise.  Do not use BP_SYM.
51390         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51391         libc_hidden_def and weak_alias.
51392         (mempcpy): Do not use BP_SYM in weak_alias.
51393         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51394         "bp-asm.h".
51395         (PARMS): Do not use macros from bp-asm.h.
51396         (DEST): Likewise.
51397         (LEN): Likewise.
51398         [!BZERO_P] (CHR): Likewise.
51399         (memset): Likewise.  Do not use BP_SYM.
51400         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51401         "bp-asm.h".
51402         (PARMS): Do not use macros from bp-asm.h.
51403         (S1): Likewise.
51404         (SIZE): Likewise.
51405         (__mpn_mul_1): Do not use BP_SYM.
51406         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51407         "bp-asm.h".
51408         (PARMS): Do not use macros from bp-asm.h.
51409         (S): Likewise.
51410         (SIZE): Likewise.
51411         (__mpn_rshift): Do not use BP_SYM.
51412         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51413         "bp-asm.h".
51414         (PARMS): Do not use macros from bp-asm.h.
51415         (STR): Likewise.
51416         (CHR): Likewise.
51417         (strchr): Likewise.  Do not use BP_SYM.
51418         (index): Do not use BP_SYM in weak_alias.
51419         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51420         "bp-asm.h".
51421         (PARMS): Do not use macros from bp-asm.h.
51422         (DEST): Likewise.
51423         (SRC): Likewise.
51424         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51425         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51426         "bp-asm.h".
51427         (PARMS): Do not use macros from bp-asm.h.
51428         (strlen): Do not use BP_SYM.
51429         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51430         "bp-asm.h".
51431         (PARMS): Do not use macros from bp-asm.h.
51432         (S1): Likewise.
51433         (S2): Likewise.
51434         (SIZE): Likewise.
51435         (__mpn_sub_n): Do not use BP_SYM.
51436         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51437         "bp-asm.h".
51438         (PARMS): Do not use macros from bp-asm.h.
51439         (S1): Likewise.
51440         (SIZE): Likewise.
51441         (__mpn_submul_1): Do not use BP_SYM.
51442         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51443         "bp-asm.h".
51444         (PARMS): Do not use macros from bp-asm.h.
51445         (S1): Likewise.
51446         (S2): Likewise.
51447         (SIZE): Likewise.
51448         (__mpn_add_n): Do not use BP_SYM.
51449         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51450         weak_alias.
51451         (bzero): Likewise.
51452         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51453         "bp-asm.h".
51454         (PARMS): Do not use macros from bp-asm.h.
51455         (BLK2): Likewise.
51456         (LEN): Likewise.
51457         (memcmp): Do not use BP_SYM.
51458         (bcmp): Do not use BP_SYM in weak_alias.
51459         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51460         "bp-asm.h".
51461         (PARMS): Do not use macros from bp-asm.h.
51462         (DEST): Likewise.
51463         (SRC): Likewise.
51464         (LEN): Likewise.
51465         (memcpy): Likewise.  Do not use BP_SYM.
51466         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51467         "bp-asm.h".
51468         (PARMS): Do not use macros from bp-asm.h.
51469         (DEST): Likewise.
51470         (SRC): Likewise.
51471         (LEN): Likewise.
51472         (memmove): Likewise.  Do not use BP_SYM.
51473         * sysdeps/i386/i686/mempcpy.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         (__mempcpy): Likewise.  Do not use BP_SYM.
51480         (mempcpy): Do not use BP_SYM in weak_alias.
51481         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51482         "bp-asm.h".
51483         (PARMS): Do not use macros from bp-asm.h.
51484         (DEST): Likewise.
51485         (LEN): Likewise.
51486         [!BZERO_P] (CHR): Likewise.
51487         (memset): Likewise.  Do not use BP_SYM.
51488         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51489         "bp-asm.h".
51490         (PARMS): Do not use macros from bp-asm.h.
51491         (STR2): Likewise.
51492         (strcmp): Do not use BP_SYM.
51493         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51494         "bp-asm.h".
51495         (PARMS): Do not use macros from bp-asm.h.
51496         (STR): Likewise.
51497         (DELIM): Likewise.
51498         [USE_AS_STRTOK_R] (SAVE): Likewise.
51499         (FUNCTION): Likewise.  Do not use BP_SYM.
51500         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51501         aliases.
51502         (strtok_r): Likewise.
51503         (__GI___strtok_r): Likewise.
51504         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51505         (PARMS): Do not use macros from bp-asm.h.
51506         (S): Likewise.
51507         (SIZE): Likewise.
51508         (__mpn_lshift): Do not use BP_SYM.
51509         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51510         (PARMS): Do not use macros from bp-asm.h.
51511         (STR): Likewise.
51512         (CHR): Likewise.
51513         (__memchr): Do not use BP_SYM.
51514         (memchr): Do not use BP_SYM in weak_alias.
51515         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51516         (PARMS): Do not use macros from bp-asm.h.
51517         (BLK2): Likewise.
51518         (LEN): Likewise.
51519         (memcmp): Do not use BP_SYM.
51520         (bcmp): Do not use BP_SYM in weak_alias.
51521         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51522         (PARMS): Do not use macros from bp-asm.h.
51523         (S1): Likewise.
51524         (SIZE): Likewise.
51525         (__mpn_mul_1): Do not use BP_SYM.
51526         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51527         "bp-asm.h".
51528         (PARMS): Do not use macros from bp-asm.h.
51529         (STR): Likewise.
51530         (CHR): Likewise.
51531         (__rawmemchr): Do not use BP_SYM.
51532         (rawmemchr): Do not use BP_SYM in weak_alias.
51533         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51534         (PARMS): Do not use macros from bp-asm.h.
51535         (S): Likewise.
51536         (SIZE): Likewise.
51537         (__mpn_rshift): Do not use BP_SYM.
51538         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51539         (PARMS): Do not use macros from bp-asm.h.
51540         (SIGMSK): Likewise.
51541         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51542         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51543         (_start): Do not use BP_SYM.
51544         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51545         (PARMS): Do not use macros from bp-asm.h.
51546         (DEST): Likewise.
51547         (SRC): Likewise.
51548         (__stpcpy): Likewise.  Do not use BP_SYM.
51549         (stpcpy): Do not use BP_SYM in weak_alias.
51550         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51551         "bp-asm.h".
51552         (PARMS): Do not use macros from bp-asm.h.
51553         (DEST): Likewise.
51554         (SRC): Likewise.
51555         (LEN): Likewise.
51556         (__stpncpy): Likewise.  Do not use BP_SYM.
51557         (stpncpy): Do not use BP_SYM in weak_alias.
51558         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51559         (PARMS): Do not use macros from bp-asm.h.
51560         (STR): Likewise.
51561         (CHR): Likewise.
51562         (strchr): Likewise.  Do not use BP_SYM.
51563         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51564         "bp-asm.h".
51565         (PARMS): Do not use macros from bp-asm.h.
51566         (STR): Likewise.
51567         (CHR): Likewise.
51568         (__strchrnul): Likewise.  Do not use BP_SYM.
51569         (strchrnul): Do not use BP_SYM in weak_alias.
51570         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51571         "bp-asm.h".
51572         (PARMS): Do not use macros from bp-asm.h.
51573         (STOP): Likewise.
51574         (strcspn): Do not use BP_SYM.
51575         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51576         "bp-asm.h".
51577         (PARMS): Do not use macros from bp-asm.h.
51578         (STR): Likewise.
51579         (STOP): Likewise.
51580         (strpbrk): Likewise.  Do not use BP_SYM.
51581         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51582         "bp-asm.h".
51583         (PARMS): Do not use macros from bp-asm.h.
51584         (STR): Likewise.
51585         (CHR): Likewise.
51586         (strrchr): Likewise.  Do not use BP_SYM.
51587         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51588         (PARMS): Do not use macros from bp-asm.h.
51589         (SKIP): Likewise.
51590         (strspn): Do not use BP_SYM.
51591         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51592         (PARMS): Do not use macros from bp-asm.h.
51593         (STR): Likewise.
51594         (DELIM): Likewise.
51595         (SAVE): Likewise.
51596         (FUNCTION): Likewise.  Do not use BP_SYM.
51597         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51598         aliases.
51599         (strtok_r): Likewise.
51600         (__GI___strtok_r): Likewise.
51601         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51602         (PARMS): Do not use macros from bp-asm.h.
51603         (S1): Likewise.
51604         (S2): Likewise.
51605         (SIZE): Likewise.
51606         (__mpn_sub_n): Do not use BP_SYM.
51607         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51608         "bp-asm.h".
51609         (PARMS): Do not use macros from bp-asm.h.
51610         (S1): Likewise.
51611         (SIZE): Likewise.
51612         (__mpn_submul_1): Do not use BP_SYM.
51613         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51614         <bp-sym.h>.
51615         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51616         and <bp-asm.h>.
51617         (PARMS): Do not use macros from bp-asm.h.
51618         (FLAGS): Likewise.
51619         (PTID): Likewise.
51620         (TLS): Likewise.
51621         (CTID): Likewise.
51622         (__clone): Do not use BP_SYM.
51623         (clone): Do not use BP_SYM in weak_alias.
51624         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51625         and <bp-asm.h>.
51626         (PARMS): Do not use macros from bp-asm.h.
51627         (LEN): Likewise.
51628         (__mmap64): Do not use BP_SYM.
51629         (mmap64): Do not use BP_SYM in weak_alias.
51630         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51631         <bp-sym.h> and <bp-asm.h>.
51632         (PARMS): Do not use macros from bp-asm.h.
51633         (__posix_fadvise64_l64): Do not use BP_SYM.
51634         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51635         (PARMS): Do not use macros from bp-asm.h.
51636         (NSOPS): Likewise.
51637         (semtimedop): Do not use BP_SYM.
51638         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51639         and <bp-asm.h>.
51640
51641 2013-02-21  Allan McRae  <allan@archlinux.org>
51642
51643         * manual/message.texi (Charset conversion in gettext):
51644         Move @end statement to beginning of line.
51645
51646 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51647
51648         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51649         static.
51650         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51651         Likewise.
51652
51653         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51654         (denorm): Likewise.
51655         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51656         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51657
51658 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51659
51660         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51661         tail-call to the resolved function if pltexit isn't needed.
51662
51663 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51664
51665         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51666         or Y being zero as being unlikely.
51667         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51668         Likewise.
51669
51670 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51671
51672         * manual/nss.texi (System Databases and Name Service Switch):
51673         Remove frobnicate @pxref.
51674
51675 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51676
51677         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51678         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51679
51680 2013-02-20  Petr Machata  <pmachata@redhat.com>
51681
51682         * elf/elf.h (R_ARM_TARGET1): New macro.
51683         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51684         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51685         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51686         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51687         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51688         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51689         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51690         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51691         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51692         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51693         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51694         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51695         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51696         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51697         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51698         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51699         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51700         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51701         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51702         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51703         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51704         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51705         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51706         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51707         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51708         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51709         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51710         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51711         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51712         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51713         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51714         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51715         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51716         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51717         (R_ARM_THM_GOT_BREL12): Likewise.
51718         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51719         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51720         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51721         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51722         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51723         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51724         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51725         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51726         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51727
51728 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51729
51730         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51731         __attribute_used__ to __attribute__ ((unused)).
51732
51733 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51734
51735         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51736         powerpc mpa.c.
51737         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51738         comment formatting.
51739         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51740
51741 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51742
51743         [BZ #13550]
51744         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51745         Remove macro.
51746         (ENTER): Remove both macro definitions.
51747         (LEAVE): Likewise.
51748         (CHECK_BOUNDS_LOW): Likewise.
51749         (CHECK_BOUNDS_HIGH): Likewise.
51750         (CHECK_BOUNDS_BOTH): Likewise.
51751         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51752         (RETURN_BOUNDED_POINTER): Likewise.
51753         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51754         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51755         (POP_ERRNO_LOCATION_RETURN): Likewise.
51756         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51757         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51758         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51759         macros.
51760         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51761         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51762         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51763         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51764         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51765         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51766         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51767         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51768         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51769         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51770         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51771         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51772         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51773         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51774         removed macros.
51775         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51776         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51777         macros.
51778         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51779         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51780         * sysdeps/i386/i586/memset.S (memset): Likewise.
51781         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51782         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51783         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51784         macros.
51785         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51786         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51787         Change uses of L(2) to L(out).
51788         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51789         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51790         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51791         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51792         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51793         removed macros.
51794         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51795         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51796         macros.
51797         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51798         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51799         (RETURN): Do not use macro LEAVE.
51800         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51801         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51802         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51803         * sysdeps/i386/i686/memset.S (memset): Likewise.
51804         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51805         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51806         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51807         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51808         Likewise.
51809         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51810         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51811         L(1_2) and L(1_3) into L(1).
51812         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51813         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51814         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51815         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51816         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51817         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51818         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51819         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51820         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51821         macros.
51822         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51823         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51824         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51825         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51826         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51827         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51828         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51829         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51830         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51831         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51832         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51833         * sysdeps/i386/strspn.S (strspn): Likewise.
51834         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51835         conditional code.
51836         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51837         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51838         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51839         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51840         L(1_3) into L(1_1).
51841         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51842         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51843         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51844         macros.
51845         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51846
51847 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51848
51849         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51850         macro.
51851
51852 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51853
51854         * math/atest-exp.c (exp_mpn): Remove ROUND.
51855         * math/atest-exp2.c (exp_mpn): Likewise.
51856         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51857
51858         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51859         * stdlib/tst-tls-atexit-lib.c: Likewise.
51860         * stdlib/tst-tls-atexit.c: Likewise.
51861
51862 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51863
51864         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51865         and __attribute_alloc_size__.
51866
51867 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51868
51869         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51870         __attribute_alloc_size__.
51871         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51872         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51873
51874 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51875
51876         * include/programs/xmalloc.h: New file.
51877         * catgets/gencat.c: Include it.
51878         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51879         * elf/pldd.c: Likewise.
51880         * iconv/iconv_charmap.c: Likewise.
51881         * iconv/iconvconfig.c: Likewise.
51882         * iconv/strtab.c: Likewise.
51883         * locale/programs/locale.c: Likewise.
51884         * locale/programs/localedef.h: Likewise.
51885         * locale/programs/simple-hash.c: Likewise.
51886         * nscd/nscd.h: Likewise.
51887         * nss/makedb.c: Likewise.
51888         * sysdeps/generic/ldconfig.h: Likewise.
51889
51890 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51891
51892         * Versions.def: Add GLIBC_2.18.
51893         * include/link.h (struct link_map): New member l_tls_dtor_count.
51894         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51895         (__call_tls_dtors): Likewise.
51896         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51897         __cxa_thread_atexit_impl.
51898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51899         Likewise.
51900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51901         Likewise.
51902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51903         Likewise.
51904         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51905         Likewise.
51906         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51908         Likewise.
51909         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51910         Likewise.
51911         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51912         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51913         Likewise.
51914         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51915         (tests): Add test case tst-tls-atexit.
51916         (modules-names): Add shared library for tst-tls-atexit.
51917         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51918         (GLIBC_PRIVATE): Add __call_tls_dtors.
51919         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51920         for libstdc++.
51921         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51922         * stdlib/tst-tls-atexit.c: New test case.
51923         * stdlib/tst-tls-atexit-lib.c: New test case.
51924
51925         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51926
51927         * elf/Versions (ld): Add _dl_find_dso_for_object.
51928         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51929         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51930         (dl_open_worker): Use _dl_find_dso_for_object.
51931         * elf/dl-sym.c (do_sym): Likewise.
51932         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51933
51934 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51935
51936         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51937         Syntactic changes only.
51938         (_dl_runtime_profile): Do a tail-call to the resolved function.
51939
51940 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51941
51942         [BZ #13550]
51943         * sysdeps/x86_64/bp-asm.h: Remove file.
51944         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51945         <bp-sym.h> and <bp-asm.h>.
51946         (__clone): Do not use BP_SYM.
51947         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51948         <bp-sym.h> and <bp-asm.h>.
51949         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51950         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51951         "bp-asm.h".
51952         (_setjmp): Do not use BP_SYM.
51953         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51954         "bp-asm.h".
51955         (setjmp): Do not use BP_SYM.
51956         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51957         libc_hidden_def.
51958         (mempcpy): Do not use BP_SYM in weak_alias.
51959         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51960         "bp-asm.h".
51961         (strchr): Do not use BP_SYM.
51962         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51963         "bp-asm.h".
51964         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51965         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51966         (_start): Do not use BP_SYM.
51967         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51968         "bp-asm.h".
51969         (strcat): Do not use BP_SYM.
51970         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51971         "bp-asm.h".
51972         (STRCMP): Do not use BP_SYM.
51973         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51974         "bp-asm.h".
51975         (STRCPY): Do not use BP_SYM.
51976         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51977         "bp-asm.h".
51978         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51979         "bp-asm.h".
51980         (FUNCTION): Do not use BP_SYM.
51981         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51982         weak_alias.
51983         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51984
51985 2013-02-17  Andreas Jaeger  <aj@suse.de>
51986
51987         * time/Versions: Sort entries.
51988         * string/Versions: Likewise.
51989         * resolv/Versions: Likewise.
51990         * posix/Versions: Likewise.
51991         * iconv/Versions: Likewise.
51992         * elf/Versions: Likewise.
51993         * wcsmbs/Versions: Likewise.
51994
51995 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51996
51997         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51998         loop termination condition.
51999
52000         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
52001         variable to calculate EZ.
52002         (__sqr): Likewise.
52003
52004         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
52005         the lower precision input.
52006
52007 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
52008
52009         [BZ #13550]
52010         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
52011         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
52012         (run-via-rtld-prefix): Do not handle %-bp tests.
52013         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
52014         (all-object-suffixes): Remove .ob.
52015         (bppfx): Remove variable.
52016         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
52017         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
52018         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
52019         [$(build-bounded) = yes] (libtype.ob): Likewise.
52020         * Makerules (elide-routines.ob): Remove variable.
52021         (do-tests-clean): Do not handle *-bp.out.
52022         (common-mostlyclean): Do not handle *-bp and *-bp.out.
52023         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
52024         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
52025         (tests): Do not include $(tests-bp.out).
52026         (xtests): Do not include $(xtests-bp.out).
52027         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
52028         [$(build-bounded) = yes] ($(addprefix
52029         $(objpfx),$(binaries-bounded))): Remove rule.
52030         ($(objpfx)%-bp.out): Remove rule.
52031         * config.make.in (build-bounded): Remove variable.
52032         * crypt/Makefile [$(build-bounded) = yes]
52033         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
52034         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
52035         append to variable.
52036         [$(build-bounded) = yes] (install-lib): Likewise.
52037         [$(build-bounded) = yes] (generated): Likewise.
52038         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
52039         Remove rule.
52040         * intl/Makefile [$(build-bounded) = yes]
52041         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
52042         * math/Makefile [$(build-bounded) = yes]
52043         ($(tests:%=$(objpfx)%-bp): Likewise.
52044         * misc/Makefile [$(build-bounded) = yes]
52045         ($(objpfx)tst-tsearch-bp): Likewise.
52046         * nptl/Makeconfig (bounded-thread-library): Remove variable.
52047         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
52048         Remove dependency.
52049         * string/Makefile (o-objects.ob): Remove variable.
52050         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
52051         (CFLAGS-.ob): Remove variable.
52052         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
52053         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
52054         both definitions of variable.
52055         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
52056         (ASFLAGS-.ob): Remove variable.
52057
52058 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
52059
52060         [BZ #13550]
52061         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
52062         Remove __BOUNDED_POINTERS__ from condition.
52063         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
52064         * string/bits/string2.h [!__NO_STRING_INLINES &&
52065         !__BOUNDED_POINTERS__]: Likewise.
52066         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
52067         Likewise.
52068         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
52069         Remove conditional code.
52070         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
52071         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
52072         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
52073         condition.
52074
52075         [BZ #13550]
52076         * csu/libc-start.c: Do not include <bp-sym.h>.
52077         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
52078         * elf/dl-open.c: Do not include <bp-sym.h>.
52079         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
52080         * math/fegetenv.c: Do not include <bp-sym.h>.
52081         (fegetenv): Do not use BP_SYM in versioned symbols.
52082         * nptl/sysdeps/pthread/bits/libc-lockP.h
52083         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
52084         <bp-sym.h>.
52085         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52086         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
52087         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52088         (__pthread_mutex_destroy): Likewise.
52089         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52090         (__pthread_mutex_lock): Likewise.
52091         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52092         (__pthread_mutex_trylock): Likewise.
52093         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52094         (__pthread_mutex_unlock): Likewise.
52095         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52096         (__pthread_mutexattr_init): Likewise.
52097         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52098         (__pthread_mutexattr_destroy): Likewise.
52099         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52100         (__pthread_mutexattr_settype): Likewise.
52101         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52102         (__pthread_rwlock_init): Likewise.
52103         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52104         (__pthread_rwlock_destroy): Likewise.
52105         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52106         (__pthread_rwlock_rdlock): Likewise.
52107         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52108         (__pthread_rwlock_tryrdlock): Likewise.
52109         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52110         (__pthread_rwlock_wrlock): Likewise.
52111         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52112         (__pthread_rwlock_trywrlock): Likewise.
52113         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52114         (__pthread_rwlock_unlock): Likewise.
52115         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52116         (__pthread_key_create): Likewise.
52117         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52118         (__pthread_setspecific): Likewise.
52119         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52120         (__pthread_getspecific): Likewise.
52121         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
52122         Likewise.
52123         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52124         (_pthread_cleanup_push_defer): Likewise.
52125         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52126         (_pthread_cleanup_pop_restore): Likewise.
52127         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52128         (pthread_setcancelstate): Likewise.
52129         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52130         <bp-sym.h>.
52131         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52132         (memchr): Do not use BP_SYM in weak_alias.
52133         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52134         (fegetenv): Do not use BP_SYM in versioned symbols.
52135         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52136         (fesetenv): Do not use BP_SYM in versioned symbols.
52137         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52138         (feupdateenv): Do not use BP_SYM in versioned symbols.
52139         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52140         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52141         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52142         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52143         (open64): Do not use BP_SYM in weak_alias.
52144         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52145         (fegetenv): Do not use BP_SYM in versioned symbols.
52146         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52147         (fesetenv): Do not use BP_SYM in versioned symbols.
52148         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52149         (feupdateenv): Do not use BP_SYM in versioned symbols.
52150         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52151         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52152         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52153         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52154         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52155         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52156         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52157         <bp-sym.h>.
52158         (__libc_start_main): Do not use BP_SYM.
52159
52160 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52161
52162         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52163         redundant return line.
52164         (norm): Likewise.
52165         (denorm): Likewise.
52166         (dbl_mp): Likewise.
52167         (sub_magnitudes): Likewise.
52168         (__add): Likewise.
52169         (__sub): Likewise.
52170         (__mul): Likewise.
52171         (__inv): Likewise.
52172         (__dvd): Likewise.
52173         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52174         (norm): Likewise.
52175         (denorm): Likewise.
52176         (dbl_mp): Likewise.
52177         (sub_magnitudes): Likewise.
52178         (__add): Likewise.
52179         (__sub): Likewise.
52180         (__mul): Likewise.
52181         (__inv): Likewise.
52182         (__dvd): Likewise.
52183
52184         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52185         instead of __mul.
52186         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52187         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52188         (cc32): Likewise.
52189
52190         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52191         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52192         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52193         of __mul for squares.
52194         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52195         function
52196         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52197         Likewise.
52198         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52199         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52200
52201 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52202
52203         [BZ #13550]
52204         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52205         code.
52206         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52207         prototype or function definition.  Rename ubp_* variables and
52208         parameters.  Remove argv definitions conditional on
52209         [__BOUNDED_POINTERS__].
52210         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52211         * elf/dl-runtime.c (_dl_fixup): Likewise.
52212         * include/set-hooks.h (RUN_HOOK): Likewise.
52213         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52214         definition.
52215         * string/strcpy.c (strcpy): Do not use __unbounded.
52216         * sysdeps/generic/frame.h (struct layout): Likewise.
52217         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52218         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52219         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52220         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52221         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52222         (__backtrace): Likewise.
52223         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52224         use __ptrvalue.
52225         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52226         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52227         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52228         Likewise.
52229         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52230         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52231         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52232         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52233         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52234         Do not use __unbounded.
52235         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52236         Rename __unboundedrlimits parameter to rlimits in prototype.
52237         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52238         Do not use __unbounded.
52239         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52240         not use __ptrvalue.
52241         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52242         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52243         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52244         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52245         __ptrvalue or __unbounded.
52246         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52247         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52248         use __unbounded.
52249         (__new_msgctl): Do not use __ptrvalue.
52250         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52251         __unbounded.
52252         (__libc_msgrcv): Do not use __ptrvalue.
52253         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52254         startup_info): Do not use __unbounded.
52255         (__libc_start_main): Likewise.  Rename ubp_* variables and
52256         parameters.  Remove argv definitions conditional on
52257         [__BOUNDED_POINTERS__].
52258         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52259         __ptrvalue.
52260         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52261         use __unbounded.
52262         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52263         or __ptrvalue.
52264         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52265         use __unbounded.
52266         (__new_shmctl): Do not use __ptrvalue.
52267         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52268         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52269         Likewise.
52270         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52271         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52272         (__libc_sigaction): Likewise.
52273         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52274         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52275         Likewise.
52276         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52277
52278 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52279
52280         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52281
52282         * string/mempcpy.c: Implement by calling memcpy.
52283
52284 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52285
52286         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52287
52288         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52289         evaluation.
52290
52291         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52292         values in the mantissa.
52293
52294         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52295         minimize writes to Z.
52296         (sub_magnitudes): Simplify code a bit.
52297
52298 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52299
52300         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52301         from the message.  The linker prefixes all warnings with that already.
52302
52303 2013-02-12  Andreas Schwab  <schwab@suse.de>
52304
52305         [BZ #15078]
52306         * posix/regexec.c (extend_buffers): Add parameter min_len.
52307         (check_matching): Pass minimum needed length.
52308         (clean_state_log_if_needed): Likewise.
52309         (get_subexp): Likewise.
52310         * posix/Makefile (tests): Add bug-regex34.
52311         (bug-regex34-ENV): Define.
52312         * posix/bug-regex34.c: New file.
52313
52314         [BZ #11561]
52315         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52316         elements compare against the byte sequence of it, not its name.
52317         * posix/Makefile (tests): Add bug-regex35.
52318         (bug-regex35-ENV): Define.
52319         * posix/bug-regex35.c: New file.
52320
52321 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52322
52323         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52324         comment.
52325         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52326         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52327         (CHECK_EOL): Add undef.
52328
52329 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52330
52331         * bits/stdlib-bsearch.h: New file.
52332         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52333         * stdlib/stdlib.h: Likewise.
52334
52335 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52336
52337         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52338         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52339         declaration.
52340         * manual/search.texi (Array Search Function): Add missing const in
52341         lfind prototype.
52342         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52343         declaration to use rlim_t.
52344         (Basic Scheduling Functions): Remove erroneous const from
52345         sched_getparam prototype.  Remove erroneous * from
52346         sched_get_priority_max and sched_get_priority_min prototypes.
52347         (Resource Usage): Fix summary @comment on vtimes to refer to
52348         sys/vtimes.h rather than vtimes.h.
52349         Add missing *s in vtimes prototype.
52350         (Limits on Resources): Fix ulimit prototype to return long int.
52351         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52352         prototypes to use long int rather than double.
52353         (BSD Random): Fix initstate and setstate to use char *, not void *.
52354         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52355         prototype to make second argument 'struct aiocb64 *const[]'.
52356         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52357         (Status of AIO Operations): Remove erroneous const in aio_return and
52358         aio_return64 prototypes.
52359         (Synchronizing I/O): Fix sync prototype to return void.
52360         * manual/startup.texi (Suboptions): Remove an erroneous const in
52361         getsubopt prototype.
52362         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52363         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52364         use size_t rather than int.
52365         (Scanning All Users): Likewise for getpwent_r.
52366         (Setting Groups): Add missing const to setgroups prototype.
52367         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52368         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52369         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52370         'const void *' rather than 'const char *'.
52371         (Host Address Functions): Likewise for inet_ntop.
52372         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52373         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52374         ssize_t for return value.
52375         (Sending Data): Likewise for send, sendto, sendmsg.
52376         (Socket Option Functions): Add a missing const in setsockopt prototype.
52377         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52378         use wchar_t for the argument.
52379         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52380         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52381         take no arguments.
52382         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52383         double/float/long double for second argument.
52384         Fix return types of significand, significandf, significandl.
52385         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52386         argument in fchmod prototype.
52387         (File Owner): Use uid_t and gid_t in fchown prototype.
52388         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52389         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52390         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52391         use 'const struct dirent **' as argument types to CMP function pointer
52392         argument.
52393         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52394         (File Times): Fix summary magic @comment for struct utimbuf and utime
52395         to refer to utime.h, not time.h.
52396         * manual/string.texi (Argz Functions): Add missing const in
52397         argz_extract and argz_next prototypes.
52398         (Finding Tokens in a String): Likewise for basename.
52399         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52400         (Copying and Concatenation): Fix typo in wmemmove prototype.
52401         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52402         (Signal Stack): Remove erroneous const in sigstack prototype.
52403         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52404         prototype.
52405         (Simple Calendar Time): Likewise for stime.
52406         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52407         prototype.
52408         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52409         say sys/sysctl.h instead.
52410         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52411         and vsyslog prototypes.
52412
52413 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52414
52415         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52416         Remove.
52417
52418 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52419
52420         * misc/sys/mman.h: Fix typo in mremap comment.
52421
52422 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52423
52424         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52425         the '\0' terminator.
52426
52427 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52428
52429         [BZ #13550]
52430         * debug/segfault.c: Don't include <bp-checks.h>.
52431         * sysdeps/generic/bp-checks.h: Remove file.
52432         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52433         (__GETDENTS): Don't use CHECK_N.
52434         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52435         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52436         (__getgroups): Don't use CHECK_N.
52437         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52438         (setgroups): Don't use CHECK_N.
52439         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52440         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52441         (__libc_msgrcv): Don't use CHECK_N.
52442         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52443         (__libc_msgsnd): Don't use CHECK_N.
52444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52445         <bp-checks.h>.
52446         (__libc_pread): Don't use CHECK_N.
52447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52448         include <bp-checks.h>.
52449         (__libc_pread64): Don't use CHECK_N.
52450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52451         include <bp-checks.h>.
52452         (__libc_pwrite): Don't use CHECK_N.
52453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52454         include <bp-checks.h>.
52455         (__libc_pwrite64): Don't use CHECK_N.
52456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52457         <bp-checks.h>.
52458         (__libc_pread): Don't use CHECK_N.
52459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52460         include <bp-checks.h>.
52461         (__libc_pread64): Don't use CHECK_N.
52462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52463         include <bp-checks.h>.
52464         (__libc_pwrite): Don't use CHECK_N.
52465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52466         include <bp-checks.h>.
52467         (__libc_pwrite64): Don't use CHECK_N.
52468         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52469         (do_pread): Don't use CHECK_N.
52470         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52471         (do_pread64): Don't use CHECK_N.
52472         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52473         (do_pwrite): Don't use CHECK_N.
52474         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52475         (do_pwrite64): Don't use CHECK_N.
52476         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52477         (__libc_readv): Don't use CHECK_N.
52478         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52479         (semop): Don't use CHECK_N.
52480         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52481         <bp-checks.h>.
52482         (semtimedop): Don't use CHECK_N.
52483         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52484         (__libc_pread): Don't use CHECK_N.
52485         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52486         <bp-checks.h>.
52487         (__libc_pread64): Don't use CHECK_N.
52488         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52489         <bp-checks.h>.
52490         (__libc_pwrite): Don't use CHECK_N.
52491         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52492         <bp-checks.h>.
52493         (__libc_pwrite64): Don't use CHECK_N.
52494         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52495         <bp-checks.h>.
52496         (__libc_msgrcv): Don't use CHECK_N.
52497         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52498         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52499         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52500         (__libc_writev): Don't use CHECK_N.
52501
52502 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52503
52504         * string/strcpy.c: Removed unused variable.
52505
52506         * Makeconfig (+sysdep-includes): Define with := rather than =.
52507         Use an existing include/ subdir of each sysdeps dir before it.
52508
52509 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52510
52511         * nscd/connection.c (register_traced_file): Comment function.
52512         [HAVE_INOTIFY] (union __inev): Define.
52513         [HAVE_INOTIFY] (inotify_check_files): New function.
52514         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52515         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52516         clear_db_cache.
52517         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52518
52519 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52520
52521         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52522         loaded if not already and that a failure is permanent.
52523
52524 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52525
52526         [BZ #15006]
52527         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52528         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52529
52530 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52531
52532         [BZ #13550]
52533         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52534         (CHECK_1_NULL_OK): Likewise.
52535         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52536         (__fxstat): Do not use CHECK_1.
52537         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52538         <bp-checks.h>.
52539         (___fxstat64): Do not use CHECK_1.
52540         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52541         <bp-checks.h>.
52542         (__fxstatat): Do not use CHECK_1.
52543         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52544         <bp-checks.h>.
52545         (__fxstatat64): Do not use CHECK_1.
52546         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52547         <bp-checks.h>.
52548         (__fxstat): Do not use CHECK_1.
52549         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52550         <bp-checks.h>.
52551         (__fxstatat): Do not use CHECK_1.
52552         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52553         <bp-checks.h>.
52554         (__getresgid): Do not use CHECK_1.
52555         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52556         <bp-checks.h>.
52557         (__getresuid): Do not use CHECK_1.
52558         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52559         <bp-checks.h>.
52560         (__lxstat): Do not use CHECK_1.
52561         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52562         <bp-checks.h>.
52563         (__old_msgctl): Do not use CHECK_1.
52564         (__new_msgctl): Likewise.
52565         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52566         <bp-checks.h>.
52567         (__new_setrlimit): Do not use CHECK_1.
52568         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52569         <bp-checks.h>.
52570         (__old_shmctl): Do not use CHECK_1.
52571         (__new_shmctl): Likewise.
52572         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52573         <bp-checks.h>.
52574         (__xstat): Do not use CHECK_1.
52575         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52576         (__lxstat): Do not use CHECK_1.
52577         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52578         <bp-checks.h>.
52579         (___lxstat64): Do not use CHECK_1.
52580         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52581         (__old_msgctl): Do not use CHECK_1.
52582         (__new_msgctl): Likewise.
52583         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52584         <bp-checks.h>.
52585         (__gettimeofday): Do not use CHECK_1.
52586         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52587         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52588         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52589         <bp-checks.h>.
52590         (__gettimeofday): Do not use CHECK_1.
52591         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52592         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52593         (__new_shmctl): Do not use CHECK_1.
52594         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52595         <bp-checks.h>.
52596         (do_sigtimedwait): Do not use CHECK_1.
52597         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52598         <bp-checks.h>.
52599         (do_sigwaitinfo): Do not use CHECK_1.
52600         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52601         <bp-checks.h>.
52602         (msgctl): Do not use CHECK_1.
52603         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52604         <bp-checks.h>.
52605         (shmctl): Do not use CHECK_1.
52606         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52607         (ustat): Do not use CHECK_1.
52608         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52609         <bp-checks.h>.
52610         (__fxstat): Do not use CHECK_1.
52611         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52612         <bp-checks.h>.
52613         (__fxstatat): Do not use CHECK_1.
52614         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52615         <bp-checks.h>.
52616         (__lxstat): Do not use CHECK_1.
52617         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52618         <bp-checks.h>.
52619         (__xstat): Do not use CHECK_1.
52620         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52621         (__xstat): Do not use CHECK_1.
52622         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52623         (___xstat64): Do not use CHECK_1.
52624
52625         [BZ #13550]
52626         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52627         definitions.
52628         (CHECK_BOUNDS_HIGH): Likewise.
52629         * string/strcpy.c: Do not include <bp-checks.h>.
52630         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52631
52632 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52633
52634         * nscd/nscd-client.h (__nscd_drop_map_ref):
52635         Add __attribute__ ((unused)).
52636         * nis/nss-nisplus.h (niserr2nss): Likewise.
52637
52638         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52639         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52640
52641         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52642         Remove inline keyword.
52643         * include/rounding-mode.h (round_away): Likewise.
52644         * libio/wfileops.c (adjust_wide_data): Likewise.
52645         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52646         (__m128i_strloadu_tolower): Likewise.
52647         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52648         (__m128i_strloadu_tolower): Likewise.
52649         * time/mktime.c (ydhms_diff): Likewise.
52650         * locale/elem-hash.h (elem_hash): Likewise.
52651         * locale/setlocale.c (setdata): Likewise.
52652         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52653         (re_string_wchar_at): Likewise.
52654         (bitset_not, bitset_merge, bitset_mask): Likewise.
52655         [!(__GNUC__ > 3)] (inline): Remove macro.
52656         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52657         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52658         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52659         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52660         * string/memcmp.c (memcmp_bytes): Likewise.
52661         * locale/programs/locarchive.c (compute_hashval): Likewise.
52662         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52663         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52664         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52665         * nss/getent.c (print_rpc, print_protocols): Likewise.
52666         (print_passwd, print_group, print_aliases): Likewise.
52667         * nis/nss-nisplus.h (niserr2nss): Likewise.
52668         * nscd/connections.c (restart_p): Likewise.
52669         Change return type to bool.
52670
52671 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52672
52673         * Makeconfig (all-Depend-files): Add existing
52674         $(sorted-subdirs:=/Depend) files.
52675         (all-subdirs): Remove nss.
52676         * sysdeps/unix/inet/Subdirs: Add it here instead.
52677         * hesiod/Depend: New file.
52678
52679         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52680         instead of calling alloca.
52681
52682         * io/lseek.c (__lseek): Rename to __libc_lseek.
52683         Define __lseek as an alias.
52684
52685         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52686
52687 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52688
52689         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52690         else clause and remove check for non-standard endianness.
52691
52692 2013-02-04  David S. Miller  <davem@davemloft.net>
52693
52694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52695
52696 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52697
52698         [BZ #13550]
52699         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52700         (__ubp_memchr): Remove prototype.
52701         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52702         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52703         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52704         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52705         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52706         Remove alias.
52707         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52708         (__ubp_memchr): Likewise.
52709         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52710         (__ubp_memchr): Likewise.
52711         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52712         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52713         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52714         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52715         CHECK_STRING.
52716         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52717         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52718         (__getcwd): Do not use CHECK_STRING.
52719         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52720         <bp-checks.h>.
52721         (__real_chown): Do not use CHECK_STRING.
52722         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52723         <bp-checks.h>.
52724         (fchownat): Do not use CHECK_STRING.
52725         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52726         CHECK_STRING.
52727         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52728         <bp-checks.h>.
52729         (__lchown): Do not use CHECK_STRING.
52730         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52731         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52732         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52733         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52735         include <bp-checks.h>.
52736         (truncate64): Do not use CHECK_STRING.
52737         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52738         <bp-checks.h>.
52739         (__real_chown): Do not use CHECK_STRING.
52740         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52741         <bp-checks.h>.
52742         (__lchown): Do not use CHECK_STRING.
52743         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52744         <bp-checks.h>.
52745         (__chown): Do not use CHECK_STRING.
52746         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52747         <bp-checks.h>.
52748         (truncate64): Do not use CHECK_STRING.
52749         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52750         Likewise.
52751         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52752         (__xmknod): Do not use CHECK_STRING.
52753         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52754         <bp-checks.h>.
52755         (__xmknodat): Do not use CHECK_STRING.
52756         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52757         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52758
52759 2013-02-04  Andreas Schwab  <schwab@suse.de>
52760
52761         [BZ #14142]
52762         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52763         * include/netdb.h: Likewise for h_errno.
52764         * elf/tst-stackguard1.c: Include <tls.h>.
52765
52766 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52767
52768         * elf/link.h (struct link_map): Extend the l_addr comment.
52769         * include/link.h (struct link_map): Likewise.
52770
52771 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52772
52773         [BZ #13550]
52774         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52775         (BOUNDED_1): Remove macro.
52776         * debug/backtrace.c: Don't include <bp-checks.h>.
52777         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52778         (__backtrace): Likewise.
52779         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52780         <bp-checks.h>.
52781         (__backtrace): Don't use BOUNDED_1.
52782         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52783         <bp-checks.h>.
52784         (__backtrace): Don't use BOUNDED_1.
52785         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52786         (__backtrace): Don't use BOUNDED_1.
52787         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52788         (shmat): Don't use BOUNDED_N.
52789
52790 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52791
52792         [BZ #13550]
52793         * sysdeps/generic/bp-start.h: Remove file.
52794         * csu/libc-start.c: Don't include <bp-start.h>.
52795         (LIBC_START_MAIN): Set up __environ directly instead of using
52796         INIT_ARGV_and_ENVIRON.
52797         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52798         <bp-start.h>.
52799
52800         [BZ #13550]
52801         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52802         definitions.
52803         (CHECK_FCNTL): Likewise.
52804         (CHECK_N_PAGES): Likewise.
52805
52806         [BZ #13550]
52807         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52808         definitions.
52809         (CHECK_SIGSET_NULL_OK): Likewise.
52810         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52811         <bp-checks.h>.
52812         (sigpending): Don't use CHECK_SIGSET.
52813         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52814         <bp-checks.h>.
52815         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52816         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52817         <bp-checks.h>.
52818         (do_sigsuspend): Don't use CHECK_SIGSET.
52819         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52820         use CHECK_SIGSET.
52821         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52822         (do_sigwait): Don't use CHECK_SIGSET.
52823         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52824         use CHECK_SIGSET.
52825         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52826         include <bp-checks.h>.
52827         (sigpending): Don't use CHECK_SIGSET.
52828         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52829         include <bp-checks.h>.
52830         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52831         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52832         <bp-checks.h>.
52833         (sigpending): Don't use CHECK_SIGSET.
52834         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52835         <bp-checks.h>.
52836         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52837
52838         [BZ #13550]
52839         * sysdeps/generic/bp-semctl.h: Remove file.
52840         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52841         <bp-checks.h> and <bp-semctl.h>.
52842         (__old_semctl): Don't use CHECK_SEMCTL.
52843         (__new_semctl): Likewise.
52844         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52845         and <bp-semctl.h>.
52846         (__old_semctl): Don't use CHECK_SEMCTL.
52847         (__new_semctl): Likewise.
52848         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52849         <bp-checks.h> and <bp-semctl.h>.
52850         (__old_semctl): Don't use CHECK_SEMCTL.
52851         (__new_semctl): Likewise.
52852         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52853         <bp-checks.h> and <bp-semctl.h>.
52854         (semctl): Don't use CHECK_SEMCTL.
52855
52856         [BZ #13550]
52857         * Makerules (elide-bp-thunks): Remove variable.
52858         (elide-routines.oS): Don't use $(elide-bp-thunks).
52859         (elide-routines.os): Likewise.
52860         (elide-routines.o): Likewise.
52861         (elide-routines.op): Likewise.
52862         (elide-routines.og): Likewise.
52863         (objects): Don't use $(bp-thunks).
52864         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52865         include.
52866         (common-generated): Do not add s-proto-bp.d.
52867         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52868         (int): Likewise.
52869         (typ): Likewise.
52870         Do not generate makefile rules for bounded-pointer thunks.
52871         * sysdeps/generic/bp-thunks.h: Remove file.
52872         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52873         * sysdeps/unix/s-proto-bp.S: Likewise.
52874
52875         [BZ #15062]
52876         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52877         parts of result separately when argument is not close to line from
52878         -i to i and one part of argument is small.
52879         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52880         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52881         * math/libm-test.inc (cacos_test): Add more tests.
52882         (casin_test): Likewise.
52883         (casinh_test): Likewise.
52884         * sysdeps/i386/fpu/libm-test-ulps: Update.
52885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52886
52887 2013-01-31  David S. Miller  <davem@davemloft.net>
52888
52889         * po/de.po: Update from translation team.
52890
52891 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52892
52893         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52894
52895 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52896
52897         * configure.in (_AC_PROG_CC_C89): New definition.
52898         * configure: Regenerate.
52899
52900         * configure.in (AC_PROG_CPP): New definition.
52901         * configure: Regenerate.
52902
52903 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52904
52905         * debug/tst-backtrace.h: New file.
52906         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52907         (ret): Remove variable.
52908         (x): Likewise.
52909         (FAIL): Remove macro.
52910         (NO_INLINE): Likewise.
52911         (fn1): Use match function instead of strstr.
52912         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52913         (ret): Remove variable.
52914         (x): Likewise.
52915         (FAIL): Remove macro.
52916         (NO_INLINE): Likewise.
52917         (fn): Use match function instead of strstr.
52918         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52919         (ret): Remove variable.
52920         (x): Likewise.
52921         (FAIL): Remove macro.
52922         (NO_INLINE): Likewise.
52923         (handle_signal): Use match function instead of strstr.
52924         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52925         (ret): Remove variable.
52926         (x): Likewise.
52927         (FAIL): Remove macro.
52928         (NO_INLINE): Likewise.
52929         (handle_signal): Use match function instead of strstr.
52930
52931 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52932
52933         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52934
52935 2013-01-23  David S. Miller  <davem@davemloft.net>
52936
52937         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52938         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52939         argument of CAS if possible.
52940         * sysdeps/sparc/sparc64/bits/atomic.h
52941         (__arch_compare_and_exchange_val_32_acq): Likewise.
52942         (__arch_compare_and_exchange_val_64_acq): Likewise.
52943
52944 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52945
52946         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52947         * sysdeps/posix/ulimit.c: ... this.
52948         Include <limits.h>.
52949         * sysdeps/unix/bsd/ulimit.c: Remove file.
52950
52951 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52952
52953         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52954         (LDFLAGS-tst-array5): Likewise.
52955
52956 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52957
52958         [BZ #15036]
52959         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52960         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52961         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52962         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52963
52964 2013-01-21  David S. Miller  <davem@davemloft.net>
52965
52966         * sysdeps/sparc/backtrace.c: New file.
52967         * sysdeps/sparc/sparc32/backtrace.h: New file.
52968         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52969         * sysdeps/sparc/sparc64/backtrace.h: New file.
52970         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52971         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52972         -funwind-tables.
52973
52974 2013-01-21  Andreas Schwab  <schwab@suse.de>
52975
52976         [BZ #15020]
52977         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52978         closed its stdout.
52979
52980 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52981
52982         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52983         "mpa2.h".
52984         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52985
52986 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52987             Mark Mitchell  <mark@codesourcery.com>
52988             Tom de Vries  <tom@codesourcery.com>
52989             Paul Pluzhnikov  <ppluzhnikov@google.com>
52990
52991         * debug/tst-backtrace2.c: New file.
52992         * debug/tst-backtrace3.c: Likewise.
52993         * debug/tst-backtrace4.c: Likewise.
52994         * debug/tst-backtrace5.c: Likewise.
52995         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52996         (CFLAGS-tst-backtrace3.c): Likewise.
52997         (CFLAGS-tst-backtrace4.c): Likewise.
52998         (CFLAGS-tst-backtrace5.c): Likewise.
52999         (LDFLAGS-tst-backtrace2): Likewise.
53000         (LDFLAGS-tst-backtrace3): Likewise.
53001         (LDFLAGS-tst-backtrace4): Likewise.
53002         (LDFLAGS-tst-backtrace5): Likewise.
53003         (tests): Add new tests tst-backtrace2, tst-backtrace3,
53004         tst-backtrace4 and tst-backtrace5.
53005
53006 2013-01-18  Anton Blanchard  <anton@samba.org>
53007             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53008
53009         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
53010         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
53011         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
53012         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
53013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53014         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
53015         "+r" and remove output regs list as redundant.  Add explicit inline
53016         asm to specify register of return val to work around compiler codegen
53017         bug.  Remove (int) cast on return value.  Add return type parameter to
53018         use in macro so that this macro does not truncate return value for
53019         64-bit values.
53020         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
53021         pass to INTERNAL_VSYSCALL_NCS.
53022         (INLINE_VSYSCALL): Add 'long int' as return type to
53023         INTERNAL_VSYSCALL_NCS macro invocation.
53024         (INTERNAL_VSYSCALL): Add 'long int' as return type to
53025         INTERNAL_VSYSCALL_NCS macro invocation.
53026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53027
53028 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
53029
53030         [BZ #14496]
53031         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
53032         Fix application of SIMD FP exception mask.
53033
53034         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
53035         mp_no from a power of two.
53036         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
53037         __mpexp_twomm1.  Use __pow_mp.
53038
53039         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
53040         multiplication.
53041
53042 2013-01-17  David S. Miller  <davem@davemloft.net>
53043
53044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53045
53046 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53047
53048         [BZ #15023]
53049         * include/complex.h: Condition contents on [!_COMPLEX_H].
53050         (__kernel_casinhf): New prototype.
53051         (__kernel_casinh): Likewise.
53052         (__kernel_casinhl): Likewise.
53053         * math/Makefile (libm_calls): Add k_casinh.
53054         * math/k_casinh.c: New file.
53055         * math/k_casinhf.c: Likewise.
53056         * math/k_casinhl.c: Likewise.
53057         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
53058         finite nonzero arguments.
53059         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
53060         finite nonzero arguments.
53061         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
53062         finite nonzero arguments.
53063         * math/s_casinh.c: Do not include <float.h>.
53064         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
53065         * math/s_casinhf.c: Do not include <float.h>.
53066         (__casinhf): Move code for finite nonzero arguments to
53067         k_casinhf.c.
53068         * math/s_casinhl.c: Do not include <float.h>.
53069         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
53070         redefine.
53071         (__casinhl): Move code for finite nonzero arguments to
53072         k_casinhl.c.
53073         * math/libm-test.inc (cacos_test): Add more tests.
53074         * sysdeps/i386/fpu/libm-test-ulps: Update.
53075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53076
53077 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
53078
53079         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
53080         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
53081         [!HAVE_MREMAP]: Remove [defined linux] case.
53082         * malloc/arena.c: Do not include <malloc-sysdep.h>.
53083
53084 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53085
53086         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
53087
53088 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
53089
53090         * elf/elf.h (R_386_SIZE32): New relocation.
53091         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
53092         R_386_SIZE32.
53093         (elf_machine_rela): Likewise.
53094         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
53095         R_X86_64_SIZE64 and R_X86_64_SIZE32.
53096
53097 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53098
53099         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
53100         (FP_FAST_FMA): Do not define.
53101         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
53102         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
53103         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
53104         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
53105         !_SOFT_FLOAT]: Likewise.
53106         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
53107         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
53108         value.
53109         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
53110         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
53111         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
53112         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
53113         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
53114         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
53115         file.
53116
53117 2013-01-16  Andreas Schwab  <schwab@suse.de>
53118
53119         [BZ #14327]
53120         * include/stdlib.h (__mktemp): Add declaration.
53121         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
53122         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
53123
53124 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53125
53126         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53127         definitions.
53128         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53129         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53130         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53131         definitions here.
53132         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53133         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53134         definitions.
53135         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53136         and ONE.
53137         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53138         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53139         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53140         definitions.
53141         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53142         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53143         definitions.
53144         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53145
53146         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53147
53148 2013-01-15  David S. Miller  <davem@davemloft.net>
53149
53150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53151         trunc{,f} to libm-sysdep_routes.
53152         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53154         file.
53155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53157         file.
53158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53159         file.
53160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53161         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53162         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53163         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53164         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53165         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53166         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53167         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53168
53169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53170         nearbyint{,f} to libm-sysdep_routes.
53171         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53173         New file.
53174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53175         file.
53176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53177         New file.
53178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53179         file.
53180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53182         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53183         file.
53184         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53185         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53186         file.
53187         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53188         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53189         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53190
53191         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53192         libc_feholdexcept and libc_fesetenv.
53193
53194 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53195
53196         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53197
53198 2013-01-14  David S. Miller  <davem@davemloft.net>
53199
53200         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53201         (SPARC_ASM_VIS2_IFUNC): Likewise.
53202         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53204         use of 'siam' instruction.
53205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53206         Likewise.
53207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53208         Likewise.
53209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53210         Likewise.
53211         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53212         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53213         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53214         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53216         file.
53217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53218         file.
53219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53220         file.
53221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53222         file.
53223         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53224         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53225         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53226         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53228         new VIS2 routines.
53229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53232         Likewise.
53233         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53234         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53235         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53236         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53238         routines to libm-sysdep_routines.
53239         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53240
53241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53242         fdim/fdimf to libm-sysdep_routines.
53243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53244         file.
53245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53247         file.
53248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53251         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53252         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53253         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53254         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53255
53256 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53257
53258         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53259         to optimize copies.
53260
53261         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53262         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53263         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53264
53265         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53266         local variable MPTWO.
53267         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53268         Likewise.
53269
53270 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53271
53272         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53273         GLOB_NOESCAPE.
53274
53275 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53276
53277         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53278
53279 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53280
53281         * manual/pattern.texi (glob_t): Document gl_flags.
53282         (glob64_t): Likewise.
53283
53284 2013-01-11  David S. Miller  <davem@davemloft.net>
53285
53286         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53287         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53288         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53289         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53290         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53291         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53292         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53293         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53294         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53295         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53296         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53297         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53298         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53299
53300         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53301         sparc V9 rather than using V8 code.
53302         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53303         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53304
53305         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53306         Move to...
53307         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53308         Here.
53309
53310 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53311
53312         [BZ #14941]
53313         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53314         not in the main loop.
53315         * configure: Regenerated.
53316
53317 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53318
53319         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53320         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53321         to just #else.
53322         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53323         [!__GLIBC_HAVE_LONG_LONG] case.
53324         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53325         condition to just #else.
53326         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53327         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53328         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53329         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53330         unconditional.
53331         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53332         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53333         #elif condition to just #else.
53334         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53335         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53336         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53337         #elif condition to just #else.
53338
53339 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53340
53341         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53342         (EF_MIPS_ARCH_64): Fix value.
53343         (EF_MIPS_ARCH_32R2): New.
53344         (EF_MIPS_ARCH_64R2): New.
53345
53346 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53347
53348         * Makeconfig (+link-pie-before-libc): New.
53349         (+link-pie-after-libc): Likewise.
53350         (+link-pie-tests): Likewise.
53351         (+link-pie): Rewritten.
53352         (link-before-libc): Remove $(config-LDFLAGS).
53353         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53354         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53355         (config-LDFLAGS): Renamed to ...
53356         (rtld-LDFLAGS): This.
53357         (rtld-tests-LDFLAGS): New macro.
53358         (link-libc-rpath-link): Likewise.
53359         (link-libc-tests-rpath-link): Likewise.
53360         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53361         (link-libc): Prepand $(link-libc-rpath-link).
53362         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53363         (test-program-prefix): New macro.
53364         (test-via-rtld-prefix): Likewise.
53365         (test-program-cmd): Likewise.
53366         (host-test-program-cmd): Likewise.
53367         * Makefile ($(common-objpfx)testrun.sh): Replace
53368         $(run-program-prefix) with $(test-program-prefix).
53369         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53370         $(rtld-LDFLAGS).
53371         ($(common-objpfx)shlib.lds): Likewise.
53372         (build-module-helper): Likewise.
53373         ($(common-objpfx)format.lds): Likewise.
53374         * Rules (binaries-pie-tests): New.
53375         (binaries-pie-notests): Likewise.
53376         (binaries-pie): Rewritten.
53377         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53378         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53379         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53380         (make-test-out): Replace $(host-built-program-cmd) with
53381         $(host-test-program-cmd).
53382         * config.make.in (build-hardcoded-path-in-tests): New variable.
53383         * configure.in (--enable-hardcoded-path-in-tests): New configure
53384         option.
53385         (hardcoded_path_in_tests): New AC_SUBST.
53386         * configure: Regenerated.
53387         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53388         $(built-program-cmd) with $(test-program-cmd).
53389         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53390         (test_program_cmd): This.
53391         * elf/Makefile ($(objpfx)order.out): Run test with
53392         $(test-program-prefix).
53393         ($(objpfx)order2.out): Likewise.
53394         ($(objpfx)tst-initorder.out): Likewise.
53395         ($(objpfx)tst-initorder2.out): Likewise.
53396         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53397         $(test-program-cmd).
53398         ($(objpfx)tst-array1-static.out): Likewise.
53399         ($(objpfx)tst-array2.out): Likewise.
53400         ($(objpfx)tst-array3.out): Likewise.
53401         ($(objpfx)tst-array4.out): Likewise.
53402         ($(objpfx)tst-array5.out): Likewise.
53403         ($(objpfx)tst-array5-static.out): Likewise.
53404         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53405         $(test-program-cmd).
53406         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53407         $(run-program-prefix) with $(test-program-prefix).
53408         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53409         (test_program_prefix): This.
53410         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53411         $(run-program-prefix) with $(test-program-prefix).
53412         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53413         (test_program_prefix): This.
53414         * iconvdata/tst-tables.sh: Likewise.
53415         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53416         $(run-program-prefix) with $(test-program-prefix).
53417         ($(objpfx)tst-translit.out): Likewise.
53418         ($(objpfx)tst-gettext2.out): Likewise.
53419         ($(objpfx)tst-gettext4.out): Likewise.
53420         ($(objpfx)tst-gettext6.out): Likewise.
53421         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53422         (test_program_prefix): This.
53423         * intl/tst-gettext2.sh: Likewise.
53424         * intl/tst-gettext4.sh  Likewise.
53425         * intl/tst-gettext6.sh: Likewise.
53426         * intl/tst-translit.sh: Likewise.
53427         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53428         with $(test-program-cmd).
53429         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53430         $(run-program-prefix) with $(test-program-prefix).
53431         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53432         (test_program_prefix): This.
53433         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53434         $(run-program-prefix) with $(test-program-prefix).
53435         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53436         (test_program_prefix): This.
53437         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53438         * posix/Makefile ($(objpfx)globtest.out): Replace
53439         $(run-via-rtld-prefix) and $(test-wrapper) with
53440         $(test-program-prefix) and $(test-via-rtld-prefix).
53441         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53442         $(test-program-prefix).
53443         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53444         $(host-test-program-cmd).
53445         (tst-spawn-ARGS): Likewise.
53446         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53447         $(test-program-prefix).
53448         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53449         (test_via_rtld_prefix): This.
53450         (test_wrapper): Renamed to ...
53451         (test_program_prefix): This.
53452         (run_program_prefix): Replaced by test_program_prefix.
53453         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53454         (test_program_prefix): This.
53455         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53456         with $(host-test-program-cmd).
53457         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53458         $(run-program-prefix) with $(test-program-prefix).
53459         ($(objpfx)tst-printf.out): Likewise.
53460         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53461         $(test-program-cmd).
53462         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53463         (test_program_prefix): This.
53464         * stdio-common/tst-unbputc.sh: Likewise.
53465         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53466         $(run-program-prefix) with $(test-program-prefix).
53467         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53468         (test_program_prefix): This.
53469         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53470         $(built-program-cmd) with $(test-program-cmd).
53471
53472 2013-01-11  Andreas Jaeger  <aj@suse.de>
53473
53474         [BZ #15003]
53475         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53476         value. Sync with Linux 3.7.
53477
53478 2013-01-10  David S. Miller  <davem@davemloft.net>
53479
53480         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53481         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53482         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53483
53484 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53485
53486         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53487         never set.
53488         * configure: Regenerated.
53489
53490 2013-01-10  David S. Miller  <davem@davemloft.net>
53491
53492         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53493         sparc V9 rather than using V8 code.
53494         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53495         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53496
53497 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53498
53499         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53500         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53501         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53502         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53503         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53504         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53505         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53506         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53507         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53508         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53509         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53510         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53511         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53512         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53513         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53514         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53515         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53516         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53517         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53518         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53519         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53520         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53521         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53522         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53523         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53524         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53525         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53526
53527 2013-01-10  David S. Miller  <davem@davemloft.net>
53528
53529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53530
53531 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53532
53533         * posix/Makefile (tests-static): New variable.
53534         (tests): Add $(tests-static).
53535         (tst-exec-static-ARGS): New variable.
53536         (tst-spawn-static-ARGS): Likewise.
53537         * posix/tst-exec-static.c: New file.
53538         * posix/tst-spawn-static.c: Likewise.
53539         * posix/tst-exec.c: Support run directly.
53540         * posix/tst-spawn.c: Likewise.
53541
53542 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53543
53544         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53545         long.
53546         * math/bits/mathcalls.h (llrint): Likewise.
53547         (llround): Likewise.
53548         * stdlib/stdlib.h (struct drand48_data): Likewise.
53549         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53550         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53551         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53552         Likewise.
53553         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53554         Likewise.
53555         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53556         (elf_greg_t): Likewise.
53557         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53558         (__jmp_buf): Likewise.
53559         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53560         definitions.
53561         (llrint): Likewise, for all definitions.
53562         (llrintl): Likewise.
53563
53564         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53565         Remove [__GNUC__] condition.
53566         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53567         condition to just [__USE_ISOC99].
53568         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53569
53570 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53571
53572         [BZ #14200]
53573         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53574         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53575         defined.
53576         (_POSIX_V6_ILP32_OFF32): Likewise.
53577         (_XBS5_ILP32_OFF32): Likewise.
53578         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53579         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53580
53581 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53582
53583         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53584
53585         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53586         doubles __mpexp_twomm1.  Adjust usage.
53587         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53588         Remove.
53589
53590 2013-01-10  Andreas Schwab  <schwab@suse.de>
53591
53592         [BZ #14964]
53593         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53594         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53595
53596 2013-01-09  David S. Miller  <davem@davemloft.net>
53597
53598         [BZ #15003]
53599         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53600         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53601         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53602         (TCP_FASTOPEN): Define.
53603         (tcp_repair_opt): New structure.
53604         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53605         enum values.
53606         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53607         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53608         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53609         (tcp_cookie_transactions): New structure.
53610
53611 2013-01-09  Anton Blanchard  <anton@samba.org>
53612
53613         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53614         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53615         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53616         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53617
53618 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53619
53620         * include/features.h (__USE_ANSI): Remove.
53621
53622 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53623
53624         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53625
53626         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53627
53628 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53629
53630         * sysdeps/s390/fpu/libm-test-ulps: Update.
53631
53632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53633
53634         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53635         (__acr): Likewise.
53636         (__cpy): Likewise.
53637         (norm): Likewise.
53638         (denorm): Likewise.
53639         (__mp_dbl): Likewise.
53640         (__dbl_mp): Likewise.
53641         (add_magnitudes): Likewise.
53642         (sub_magnitudes): Likewise.
53643         (__add): Likewise.
53644         (__sub): Likewise.
53645         (__mul): Likewise.
53646         (__inv): Likewise.
53647         (__dvd): Likewise.
53648         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
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/powerpc64/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
53677 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53678
53679         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53680         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53681         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53682         2 && __USE_EXTERN_INLINES]: Likewise.
53683
53684 2013-01-08  Andreas Jaeger  <aj@suse.de>
53685
53686         [BZ# 14985]
53687         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53688         Remove.
53689         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53690         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53691
53692 2013-01-07  Anton Blanchard  <anton@samba.org>
53693
53694         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53695         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53696         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53697         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53698         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53699         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53700         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53701         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53702         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53703         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53704         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53705         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53706         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53707         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53708         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53709         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53710         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53711         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53712         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53713         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53714         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53715         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53716         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53717         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53718         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53719         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53720         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53721         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53722         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53723         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53724         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53725         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53726         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53727         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53728         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53729         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53730         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53731         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53732         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53733         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53734         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53735         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53736         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53737
53738 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53739
53740         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53741         (__MALLOC_PMT): Likewise.
53742         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53743         [__GNUC__], only on [_LIBC].
53744         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53745         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53746         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53747         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53748         forward declaration.
53749         (realloc_hook_ini): Likewise.
53750         (memalign_hook_ini): Likewise.
53751         (__libc_memalign): Do not use __MALLOC_PMT in variable
53752         declaration.
53753         (__libc_valloc): Likewise.
53754         (__libc_pvalloc): Likewise.
53755         (__libc_calloc): Likewise.
53756         (__posix_memalign): Likewise.
53757
53758         [BZ #14996]
53759         * math/s_casinh.c: Include <float.h>.
53760         (__casinh): Do not do computation with squaring and square root
53761         for large arguments.
53762         * math/s_casinhf.c: Include <float.h>.
53763         (__casinhf): Do not do computation with squaring and square root
53764         for large arguments.
53765         * math/s_casinhl.c: Include <float.h>.
53766         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53767         (__casinhl): Do not do computation with squaring and square root
53768         for large arguments.
53769         * math/libm-test.inc (casin_test): Add more tests.
53770         (casinh_test): Likewise.
53771         * sysdeps/i386/fpu/libm-test-ulps: Update.
53772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53773
53774 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53775
53776         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53777         (__x86_64_raw_data_cache_size): Likewise.
53778         (__x86_64_data_cache_size_half): Likewise.
53779         (__x86_64_raw_data_cache_size_half): Likewise.
53780         (__x86_64_shared_cache_size): Likewise.
53781         (__x86_64_raw_shared_cache_size): Likewise.
53782         (__x86_64_shared_cache_size_half): Likewise.
53783         (__x86_64_raw_shared_cache_size_half): Likewise.
53784         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53785         to ...
53786         (__x86_data_cache_size): This.
53787         (__x86_64_raw_data_cache_size): Renamed to ...
53788         (__x86_raw_data_cache_size): This.
53789         (__x86_64_data_cache_size_half): Renamed to ...
53790         (__x86_data_cache_size_half): This.
53791         (__x86_64_raw_data_cache_size_half): Renamed to ...
53792         (__x86_raw_data_cache_size_half): This.
53793         (__x86_64_shared_cache_size): Renamed to ...
53794         (__x86_shared_cache_size): This.
53795         (__x86_64_raw_shared_cache_size): Renamed to ...
53796         (__x86_raw_shared_cache_size): This.
53797         (__x86_64_shared_cache_size_half): Renamed to ...
53798         (__x86_shared_cache_size_half): This.
53799         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53800         (__x86_raw_shared_cache_size_half): This.
53801         * sysdeps/x86_64/memcpy.S: Updated.
53802         * sysdeps/x86_64/memset.S: Likewise.
53803         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53804         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53805         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53806
53807 2013-01-04  David S. Miller  <davem@davemloft.net>
53808
53809         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53810
53811 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53812
53813         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53814         1 to avoid redefinition warning.
53815         (__USE_GNU): Don't define.
53816         (init_signaling_nan): Protoize.
53817
53818         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53819
53820 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53821
53822         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53823         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53824         (__cpymn): Likewise.
53825         (norm): Remove commented code.
53826         (denorm): Likewise.
53827         (__mp_dbl): Likewise.
53828         (__inv): Likewise.
53829         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53830         (__cpymn): Likewise.
53831         (norm): Remove commented code.
53832         (denorm): Likewise.
53833         (__mp_dbl): Likewise.
53834         (__inv): Likewise.
53835
53836         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53837         mp_no value for 1.0 and 2.0.
53838         (norm): Use RADIXI instead of radixi.d.
53839         (denorm): Likewise.
53840         (__mul): Use 0.0 instead of zero.d.
53841         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53842         mp_no value for 1.0 and 2.0.
53843         (norm): Use RADIXI instead of radixi.d.
53844         (denorm): Likewise.
53845         (__mul): Use 0.0 instead of zero.d.
53846
53847 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53848
53849         [BZ #14994]
53850         * math/s_casinh.c (__casinh): Reduce finite argument to first
53851         quadrant then set signs of results at the end.
53852         * math/s_casinhf.c (__casinhf): Likewise.
53853         * math/s_casinhl.c (__casinhl): Likewise.
53854         * math/libm-test.inc (casin_test): Add more tests.
53855         (casinh_test): Likewise.
53856         * sysdeps/i386/fpu/libm-test-ulps: Update.
53857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53858
53859 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53860
53861         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53862
53863         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53864
53865         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53866         declarations.
53867         (denorm): Likewise.
53868         (__mp_dbl): Likewise.
53869         (__inv): Likewise.
53870
53871         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53872         and adjust the header comment.
53873
53874         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53875         variable name from declaration.
53876
53877 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53878
53879         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53880         Initialize COMMON_CPUID_INDEX_7 element.
53881         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53882         (CPUID_RTM): Likewise.
53883         (HAS_RTM): Likewise.
53884         (COMMON_CPUID_INDEX_7): New enum.
53885
53886 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53887
53888         [BZ #14981]
53889         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53890         size is zero, record memory as freed.
53891
53892 2013-01-03  Andreas Jaeger  <aj@suse.de>
53893
53894         * po/ia.po: Add new Interlingua translation.
53895
53896 2012-01-03  Allan McRae  <allan@archlinux.org>
53897
53898         * locale/programs/localedef.c: Fix description of '--posix' flag.
53899
53900 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53901
53902         * NEWS: Update dates in second copyright notice.
53903         * README: Update copyright dates in example.
53904         * manual/libc.texinfo: Update copyright dates.
53905         * scripts/test-installation.pl: Update copyright date in --version
53906         output.
53907
53908         * hurd/ctty-input.c: Fix copyright notice formatting.
53909         * hurd/ctty-output.c: Likewise.
53910         * hurd/dtable.c: Likewise.
53911         * hurd/hurd-raise.c: Likewise.
53912         * hurd/hurdprio.c: Likewise.
53913         * hurd/msgportdemux.c: Likewise.
53914         * misc/sys/file.h: Likewise.
53915         * misc/sys/ioctl.h: Likewise.
53916         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53917         * sysdeps/mach/hurd/chdir.c: Likewise.
53918         * sysdeps/mach/hurd/fchdir.c: Likewise.
53919         * sysdeps/mach/hurd/rename.c: Likewise.
53920         * sysdeps/mach/hurd/rmdir.c: Likewise.
53921         * sysdeps/mach/hurd/seekdir.c: Likewise.
53922         * sysdeps/mach/hurd/setsid.c: Likewise.
53923         * sysdeps/posix/wait3.c: Likewise.
53924
53925         * All files with FSF copyright notices: Update copyright dates
53926         using scripts/update-copyrights.
53927         * intl/plural.c: Regenerated.
53928         * locale/programs/charmap-kw.h: Likewise.
53929         * locale/programs/locfile-kw.h: Likewise.
53930
53931 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53932
53933         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53934         four values.
53935
53936         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53937         calculation loop and add branch prediction.
53938
53939         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53940         check access beyond bounds of m1np.
53941
53942         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53943         MPTWO.
53944         (__inv): Remove local variable MPTWO to use the global
53945         constant.
53946         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53947         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53948         variable MPTWO.
53949         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53950         MP3HALFS static const.
53951
53952 2013-01-01  David S. Miller  <davem@davemloft.net>
53953
53954         * po/ca.po: Update from translation team.
53955
53956 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53957
53958         * scripts/update-copyrights: New file.
53959         * Makeconfig: Reformat copyright notice.
53960         * ctype/ctype.h: Likewise.
53961         * debug/swprintf_chk.c: Likewise.
53962         * elf/dl-cache.c: Likewise.
53963         * elf/dl-debug.c: Likewise.
53964         * elf/dl-object.c: Likewise.
53965         * grp/initgroups.c: Likewise.
53966         * hurd/Makefile: Likewise.
53967         * hurd/hurd/signal.h: Likewise.
53968         * hurd/hurdfault.c: Likewise.
53969         * hurd/hurdioctl.c: Likewise.
53970         * hurd/hurdlookup.c: Likewise.
53971         * hurd/intr-msg.c: Likewise.
53972         * iconv/gconv_open.c: Likewise.
53973         * libio/swprintf.c: Likewise.
53974         * locale/lc-ctype.c: Likewise.
53975         * locale/nl_langinfo.c: Likewise.
53976         * mach/Machrules: Likewise.
53977         * mach/Makefile: Likewise.
53978         * malloc/obstack.h: Likewise.
53979         * manual/Makefile: Likewise.
53980         * manual/tsort.awk: Likewise.
53981         * misc/bits/stab.def: Likewise.
53982         * nis/nis_print_group_entry.c: Likewise.
53983         * nis/nis_table.c: Likewise.
53984         * nis/nss_compat/compat-pwd.c: Likewise.
53985         * nis/nss_compat/compat-spwd.c: Likewise.
53986         * po/Makefile: Likewise.
53987         * posix/fnmatch.c: Likewise.
53988         * posix/regex.h: Likewise.
53989         * resolv/Makefile: Likewise.
53990         * resolv/nss_dns/dns-network.c: Likewise.
53991         * resolv/res_hconf.c: Likewise.
53992         * scripts/gen-sorted.awk: Likewise.
53993         * soft-fp/soft-fp.h: Likewise.
53994         * stdio-common/printf.h: Likewise.
53995         * stdlib/monetary.h: Likewise.
53996         * stdlib/random.c: Likewise.
53997         * stdlib/random_r.c: Likewise.
53998         * sysdeps/generic/Makefile: Likewise.
53999         * sysdeps/gnu/Makefile: Likewise.
54000         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
54001         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
54002         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
54003         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
54004         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
54005         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
54006         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
54007         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
54008         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
54009         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
54010         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
54011         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
54012         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
54013         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
54014         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
54015         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
54016         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
54017         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
54018         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
54019         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
54020         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
54021         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
54022         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
54023         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
54024         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
54025         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
54026         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
54027         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
54028         * sysdeps/mach/hurd/errnos.awk: Likewise.
54029         * sysdeps/mach/hurd/fork.c: Likewise.
54030         * sysdeps/mach/hurd/getcwd.c: Likewise.
54031         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
54032         * sysdeps/mach/hurd/mmap.c: Likewise.
54033         * sysdeps/mach/hurd/utimes.c: Likewise.
54034         * sysdeps/mach/hurd/xmknod.c: Likewise.
54035         * sysdeps/posix/profil.c: Likewise.
54036         * sysdeps/posix/readdir_r.c: Likewise.
54037         * sysdeps/powerpc/bits/mathdef.h: Likewise.
54038         * sysdeps/powerpc/bits/setjmp.h: Likewise.
54039         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
54040         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
54041         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
54042         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
54043         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
54044         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
54045         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
54046         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
54047         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
54048         * sysdeps/pthread/lio_listio.c: Likewise.
54049         * sysdeps/sparc/dl-procinfo.h: Likewise.
54050         * sysdeps/unix/i386/sysdep.S: Likewise.
54051         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
54052         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
54053         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
54054         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
54055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
54056         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
54057         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
54058         * sysdeps/unix/sysv/linux/speed.c: Likewise.
54059         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
54060         * sysdeps/wordsize-32/divdi3.c: Likewise.
54061         * time/sys/time.h: Likewise.
54062         * wcsmbs/Makefile: Likewise.
54063
54064 2013-01-01  David S. Miller  <davem@davemloft.net>
54065
54066         * po/fr.po: Update from translation team.
54067
54068         * catgets/gencat.c: Update copyright year.
54069         * csu/version.c: Likewise.
54070         * debug/catchsegv.sh: Likewise.
54071         * debug/pcprofiledump.c: Likewise.
54072         * debug/xtrace.sh: Likewise.
54073         * elf/ldconfig.c: Likewise.
54074         * elf/ldd.bash.in: Likewise.
54075         * elf/pldd.c: Likewise.
54076         * elf/sotruss.ksh: Likewise.
54077         * elf/sprof.c: Likewise.
54078         * iconv/iconv_prog.c: Likewise.
54079         * iconv/iconvconfig.c: Likewise.
54080         * locale/programs/locale.c: Likewise.
54081         * locale/programs/localedef.c: Likewise.
54082         * login/programs/pt_chown.c: Likewise.
54083         * malloc/memusage.sh: Likewise.
54084         * malloc/memusagestat.c: Likewise.
54085         * malloc/mtrace.pl: Likewise.
54086         * nscd/nscd.c: Likewise.
54087         * nss/getent.c: Likewise.
54088         * nss/makedb.c: Likewise.
54089         * posix/getconf.c: Likewise.
54090
54091 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
54092
54093         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
54094         numbers.
54095
54096 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
54097
54098         * math/bits/mathcalls.h (modf): Use __nonnull.
54099
54100 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54101
54102         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
54103         (split): Use macro CN instead of the bare value.
54104         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
54105         could be used.
54106         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
54107         instead of the bare value.
54108         (power1): Likewise.
54109
54110 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54111
54112         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
54113         __ATAN_TWOM.
54114         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54115
54116         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
54117         their values.
54118         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
54119         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
54120         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
54121         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
54122
54123 2012-12-28  Andreas Jaeger  <aj@suse.de>
54124
54125         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54126         values are from Linux 3.7.
54127
54128         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54129         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54130
54131 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54132
54133         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54134         TRUE case.
54135
54136         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54137         (norm): Likewise.
54138         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54139         variables with preprocessor constants.
54140         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54141         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54142         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54143
54144 2012-12-27  Bruno Haible  <bruno@clisp.org>
54145
54146         [BZ #14317]
54147         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54148         only if needed.
54149
54150 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54151
54152         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54153         and use variable directly.
54154         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54155
54156         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54157         MPONE.
54158         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54159         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54160         variable MPONE.
54161         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54162         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54163         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54164         include directive.  Remove local variable MPONE.
54165         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54166         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54167         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54168
54169 2012-12-25  David S. Miller  <davem@davemloft.net>
54170
54171         * version.h (RELEASE): Set to "development".
54172         (VERSION): Set to "2.17.90".
54173         * NEWS: Add 2.18 section.
54174
54175 2012-12-21  David S. Miller  <davem@davemloft.net>
54176
54177         * po/hr.po: Update from translation team.
54178
54179 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54180
54181         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54182
54183 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54184
54185         * NEWS:  Mention new memcpy for MIPS.
54186
54187 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54188
54189         * manual/contrib.texi (Contributors): Spelling correction.
54190
54191 2012-12-15  David S. Miller  <davem@davemloft.net>
54192
54193         * po/ru.po: Update from translation team.
54194
54195 2012-12-13  David S. Miller  <davem@davemloft.net>
54196
54197         * NEWS: Mention IFUNC testsuite enhancements.
54198
54199         * po/pl.po: Update from translation team.
54200         * po/bg.po: Likewise.
54201
54202         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54203         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54204
54205 2012-12-11  David S. Miller  <davem@davemloft.net>
54206
54207         * po/sv.po: Update from translation team.
54208
54209         * po/vi.po: Update from translation team.
54210
54211         * po/cs.po: Update from translation team.
54212
54213         * po/de.po: Update from translation team.
54214         * po/eo.po: Likewise.
54215         * po/nl.po: Likewise.
54216
54217 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54218
54219         [BZ #14246]
54220         * manual/argp.texi (Argp Helper Functions): Move node to follow
54221         Argp Parsing State.
54222
54223         [BZ #14872]
54224         * manual/conf.texi (Limits on File System Capacity): Mention if
54225         terminating null is included in the max size.
54226
54227 2012-12-10  Andreas Jaeger  <aj@suse.de>
54228
54229         * po/cs.po: Update from translation team.
54230
54231 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54232
54233         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54234         void pointer and cast to uintptr_t.
54235         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54236         path.
54237         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54238         * sysdeps/s390/s390-64/memset.S: Likewise.
54239
54240 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54241
54242         [BZ #14833]
54243         * menual/message.texi (Message Translation): Fix typos.
54244         (Helper programs for gettext): Likewise.
54245
54246 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54247
54248         [BZ #14898]
54249         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54250         Change to -1.
54251
54252 2012-12-07  David S. Miller  <davem@davemloft.net>
54253
54254         * po/libc.pot: Update.
54255
54256 2012-12-07  Richard Henderson  <rth@redhat.com>
54257
54258         [BZ #10114]
54259         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54260         normal/normal case to before the switch.
54261         (_FP_DIV): Likewise.
54262
54263 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54264             Mike Frysinger  <vapier@gentoo.org>
54265
54266         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54267         check for __NR_fadvise64_64.
54268
54269 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54270
54271         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54272         0, not just to plain "0" as a statement.
54273         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54274         with cw.
54275
54276 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54277
54278         * NEWS: Use sourceware.org in Bugzilla URL.
54279
54280 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54281
54282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54283         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54284
54285         * stdio-common/tst-put-error.c (do_test): Add newline to the
54286         padded test to ensure flush.
54287
54288 2012-12-05  Jeff Law  <law@redhat.com>
54289
54290         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54291
54292 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54293
54294         * README: Don't refer to ports add-on as distributed separately.
54295         Mention AArch64 in list of systems supported in the ports add-on.
54296
54297         * LICENSES: Add more non-FSF copyright and license notices.
54298
54299         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54300         ((unused)).
54301
54302         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54303
54304         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54305         10000 as width of padded output.
54306
54307 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54308
54309         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54310
54311         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54312         variable LX with __attribute__ ((unused)).
54313         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54314         Likewise.
54315         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54316         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54317         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54318         with __attribute__ ((unused)).
54319
54320 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54321
54322         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54323
54324 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54325
54326         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54327         (CFLAGS-nldbl-acos.c): New variable.
54328         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54329         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54330         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54331         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54332         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54333         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54334         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54335         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54336         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54337         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54338         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54339         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54340         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54341         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54342         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54343         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54344         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54345         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54346         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54347         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54348         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54349         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54350         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54351         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54352         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54353         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54354         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54355         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54356         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54357         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54358         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54359         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54360         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54361         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54362         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54363         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54364         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54365         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54366         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54367         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54368         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54369         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54370         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54371         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54372         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54373         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54374         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54375         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54376         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54377         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54378         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54379         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54380         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54381         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54382         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54383         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54384         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54385         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54386         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54387         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54388         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54389         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54390         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54391         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54392         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54393         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54394         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54395         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54396         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54397         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54398         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54399         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54400         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54401         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54402         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54403         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54404         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54405         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54406         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54407         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54408         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54409         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54410         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54411         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54412         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54413         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54414         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54415         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54416         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54417         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54418         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54419         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54420         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54421         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54422         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54423         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54424         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54425
54426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54427         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54428
54429         [BZ #14914]
54430         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54431         whole low double instead of just low 47 bits when splitting values
54432         into two parts.
54433
54434 2012-12-03  Allan McRae  <allan@archlinux.org>
54435
54436         * manual/stdio.texi (Predefined Printf Handlers): Remove
54437         @hsep and @vsep usage.
54438
54439 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54440
54441         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54442         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54443
54444 2012-12-03  Jeff Law  <law@redhat.com>
54445
54446         * time/sys/time.h (settimeofday): Do not mark TV argument
54447         as __nonnull.
54448
54449 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54450
54451         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54452         when currently writing and seek to current position when not.
54453         * libio/Makefile (tests): Remove bug-fclose1.
54454         * libio/bug-fclose1.c: Delete.
54455
54456 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54457
54458         * manual/arith.texi (feenableexcept): Fix typo.
54459         (fedisableexcept): Likewise.
54460
54461 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54462
54463         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54464         second, differently-typed declaration, rather than a cast.
54465
54466 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54467
54468         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54469         * include/rpc/svc.h: ... here.
54470
54471 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54472
54473         [BZ #13013]
54474         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54475         depending n and resplen2 to catch cases where answer
54476         equals answerp2.
54477
54478 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54479
54480         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54481         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54482
54483 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54484
54485         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54486
54487 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54488
54489         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54490
54491 2012-11-28  Jeff Law  <law@redhat.com>
54492
54493         [BZ #13761]
54494         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54495         dataset_temporary.  Track alloca usage into alloca_used.
54496         If dataset is large allocate and release it via malloc/free.
54497
54498 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54499
54500         [BZ #14197]
54501         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54502
54503 2012-11-28  David S. Miller  <davem@davemloft.net>
54504
54505         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54506
54507 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54508
54509         [BZ #14803]
54510         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54511         of pi/2 rounded to nearest to 64 bits.
54512         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54513         nearest to 64 bits.
54514         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54515         bits.
54516
54517 2012-11-28  Jeff Law <law@redhat.com>
54518             Martin Osvald <mosvald@redhat.com>
54519
54520         [BZ #14889]
54521         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54522         * sunrpc/svc.c: Include time.h.
54523         (__svc_accept_failed): New function.
54524         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54525         any reason other than EINTR, call __svc_accept_failed.
54526         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54527         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54528
54529 2012-11-28  Andreas Schwab  <schwab@suse.de>
54530
54531         * scripts/abilist.awk: Also handle indirect functions in .opd
54532         section.
54533
54534 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54535
54536         [BZ #13881]
54537         * sysdeps/x86/fpu/powl_helper.c: New file.
54538         * sysdeps/x86/fpu/Makefile: Likewise.
54539         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54540         (p3): New object.
54541         (__ieee754_powl): Use __powl_helper for finite arguments except
54542         integer exponents below 8.
54543         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54544         (p3): New object.
54545         (__ieee754_powl): Use __powl_helper for finite arguments except
54546         integer exponents below 8.
54547         * math/libm-test.inc (pow_test): Add more tests and enable some
54548         previously disabled tests.
54549         * sysdeps/i386/fpu/libm-test-ulps: Update.
54550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54551
54552 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54553             Carlos O'Donell  <carlos_odonell@mentor.com>
54554
54555         * nss/makedb.c (is_prime): Assert that input is odd and greater
54556         than 4.  Note that fact in a comment too.
54557         (next_prime): Add 4 to input.
54558
54559 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54560
54561         [BZ #11741]
54562         * libio/Makefile (tests): Add test case tst-fwrite-error.
54563         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54564         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54565         * libio/tst-fwrite-error.c: New test case.
54566
54567 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54568
54569         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54570         before casting to void *.
54571         * include/libc-internal.h (__pointer_type): New macro.
54572         (__integer_if_pointer_type_sub): Likewise.
54573         (__integer_if_pointer_type): Likewise.
54574         (cast_to_integer): Likewise.
54575         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54576         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54577         before casting to atomic64_t.
54578         (atomic_exchange_acq): Likewise.
54579         (__arch_exchange_and_add_body): Likewise.
54580         (__arch_add_body): Likewise.
54581         (atomic_add_negative): Likewise.
54582         (atomic_add_zero): Likewise.
54583
54584 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54585
54586         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54587         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54588         (add_fdes): Likewise.
54589         (linear_search_fdes): Likewise.
54590         (binary_search_unencoded_fdes): Likewise.
54591
54592 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54593
54594         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54595
54596 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54597
54598         * configure.in: Autodetect C++ header directories.
54599         * configure: Regenerated.
54600
54601 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54602
54603         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54604
54605 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54606
54607         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54608
54609 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54610
54611         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54612         LDBL_MANT_DIG == 106]: Disable some tests.
54613         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54614         Likewise.
54615         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54616         Likewise.
54617
54618         [BZ #14871]
54619         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54620         input for small inputs.  Return +/- pi/2 for large inputs.
54621         * math/libm-test.inc (atan_test): Add more tests.
54622
54623         * sysdeps/generic/unwind-dw2-fde-glibc.c
54624         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54625         __attribute__ ((unused)).
54626
54627         [BZ #14645]
54628         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54629         x * y if x and y are nonzero and z is zero.
54630
54631         [BZ #14811]
54632         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54633         nonzero exponents with absolute value below 0x1p-117 to +/-
54634         0x1p-117.
54635
54636         [BZ #14869]
54637         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54638         up arguments below 2**-450, not just those below 2**-500.
54639         * math/libm-test.inc (hypot_test): Add another test.
54640
54641         [BZ #14868]
54642         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54643         Return a+b for ratio over 2**120, not 2**60.
54644         * math/libm-test.inc (hypot_test): Add another test.
54645
54646         * math/libm-test.inc (clog_test): Use
54647         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54648         (clog10_test): Likewise.
54649
54650         [BZ #6778]
54651         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54652
54653 2012-11-22  Andreas Schwab  <schwab@suse.de>
54654
54655         * sysdeps/i386/fpu/libm-test-ulps: Update.
54656
54657 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54658
54659         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54660         printf output with newline.
54661
54662 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54663
54664         [BZ #14865]
54665         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54666         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54667         -z nodlopen, -z initfirst and -z execstack support.
54668         * configure: Regenerated.
54669
54670         * elf/elf.h (DF_1_NODIRECT): New macro.
54671         (DF_1_IGNMULDEF): Likewise.
54672         (DF_1_NOKSYMS): Likewise.
54673         (DF_1_NOHDR): Likewise.
54674         (DF_1_EDITED): Likewise.
54675         (DF_1_NORELOC): Likewise.
54676         (DF_1_SYMINTPOSE): Likewise.
54677         (DF_1_GLOBAUDIT): Likewise.
54678         (DF_1_SINGLETON): Likewise.
54679         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54680         DT_1_SUPPORTED_MASK bits.
54681         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54682
54683 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54684
54685         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54686
54687 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54688
54689         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54690         macro.
54691
54692         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54693         (sendmmsg): Move declarations...
54694         * socket/sys/socket.h: ... here.
54695         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54696         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54697         include it from...
54698         * socket/recvmmsg.c: ... this new file.
54699         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54700         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54701         definition of __sendmmsg hidden.
54702         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54703         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54704         Move ENOSYS stub into and include it from...
54705         * socket/sendmmsg.c: ... this new file.
54706         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54707         (sysdep_routines): Move recvmmsg and sendmmsg...
54708         * socket/Makefile (routines): ... here.
54709         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54710         (GLIBC_PRIVATE): Add __sendmmsg.
54711         * include/sys/socket.h (__sendmmsg): Add declarations.
54712         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54713         sendmmsg.
54714
54715 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54716
54717         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54718         variable I1 with __attribute__ ((unused)).
54719         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54720
54721 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54722
54723         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54724         DUMMY variables with __attribute__ ((unused)).
54725
54726         * bits/byteswap.h: Include <bits/types.h>.
54727         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54728
54729 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54730
54731         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54732         string_t.  Do not manually set errno.
54733         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54734         length with __strnlen.  Make sure to both set errno and return it on
54735         failure.
54736
54737 2012-11-19  David S. Miller  <davem@davemloft.net>
54738
54739         With help from Joseph Myers.
54740         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54741         very large arguments properly.
54742         * math/libm-test.inc (atan_test): New tests.
54743         (atan2_test): New tests.
54744         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54745         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54746
54747 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54748
54749         [BZ #14856]
54750         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54751         Define to 3.
54752
54753         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54754         [POSIX] (EADDRNOTAVAIL): Likewise.
54755         [POSIX] (EAFNOSUPPORT): Likewise.
54756         [POSIX] (EALREADY): Likewise.
54757         [POSIX] (ECONNABORTED): Likewise.
54758         [POSIX] (ECONNREFUSED): Likewise.
54759         [POSIX] (ECONNRESET): Likewise.
54760         [POSIX] (EDESTADDRREQ): Likewise.
54761         [POSIX] (EDQUOT): Likewise.
54762         [POSIX] (EHOSTUNREACH): Likewise.
54763         [POSIX] (EIDRM): Likewise.
54764         [POSIX] (EISCONN): Likewise.
54765         [POSIX] (ELOOP): Likewise.
54766         [POSIX] (EMULTIHOP): Likewise.
54767         [POSIX] (ENETDOWN): Likewise.
54768         [POSIX] (ENETUNREACH): Likewise.
54769         [POSIX] (ENOBUFS): Likewise.
54770         [POSIX] (ENODATA): Likewise.
54771         [POSIX] (ENOLINK): Likewise.
54772         [POSIX] (ENOMSG): Likewise.
54773         [POSIX] (ENOPROTOOPT): Likewise.
54774         [POSIX] (ENOSR): Likewise.
54775         [POSIX] (ENOSTR): Likewise.
54776         [POSIX] (ENOTCONN): Likewise.
54777         [POSIX] (ENOTSOCK): Likewise.
54778         [POSIX] (EOPNOTSUPP): Likewise.
54779         [POSIX] (EOVERFLOW): Likewise.
54780         [POSIX] (EPROTO): Likewise.
54781         [POSIX] (EPROTONOSUPPORT): Likewise.
54782         [POSIX] (EPROTOTYPE): Likewise.
54783         [POSIX] (ESTALE): Likewise.
54784         [POSIX] (ETIME): Likewise.
54785         [POSIX] (ETXTBSY): Likewise.
54786         [POSIX] (EWOULDBLOCK): Likewise.
54787         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54788         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54789         [POSIX] (SEEK_CUR): Likewise.
54790         [POSIX] (SEEK_END): Likewise.
54791         [POSIX || UNIX98] (mode_t): Do not require.
54792         [POSIX] (off_t): Likewise.
54793         [POSIX] (pid_t): Likewise.
54794         [POSIX] (sys/stat.h): Do not allow header.
54795         [POSIX] (unistd.h): Likewise.
54796         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54797         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54798         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54799         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54800         require.
54801         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54802         sigevent): Specify elements.
54803         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54804         entry.
54805         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54806         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54807
54808         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54809         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54810         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54811         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54812         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54813         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54814         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54815         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54816         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54817         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54818         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54819         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54820         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54821         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54822         Likewise.
54823         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54824         Likewise.
54825         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54826         Likewise.
54827         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54828         Likewise.
54829         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54830         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54831         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54832         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54833         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54834         Specify lower bound on value.
54835         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54836         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54837         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54838         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54839         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54840         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54841         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54842         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54843         value.
54844         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54845         as optional.
54846         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54847         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54848         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54849         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54850         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54851         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54852         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54853         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54854         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54855         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54856         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54857         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54858         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54859         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54860         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54861         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54862         entry.
54863         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54864         optional.
54865         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54866         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54867         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54868         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54869         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54870         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54871         Likewise.
54872         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54873         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54874         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54875         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54876         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54877         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54878         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54879         as optional.
54880         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54881         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54882         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54883         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54884         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54885         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54886         specify as optional.
54887         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54888         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54889         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54890         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54891         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54892         [XPG3] (NL_LANGMAX): Likewise.
54893         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54894         [POSIX || XPG3] (NL_NMAX): Likewise.
54895         [POSIX || XPG3] (NL_SETMAX): Likewise.
54896         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54897         [XPG3] (NZERO): Likewise.
54898         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54899         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54900         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54901         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54902         (REG_ERANGE): Expect.
54903         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54904         optional-constant.
54905         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54906         Use (void) in prototype.
54907         [POSIX] (*_t): Allow.
54908         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54909         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54910         (WRDE_BADVAL): Expect.
54911
54912         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54913         expect.
54914         [XPG3 || XPG4] (O_RSYNC): Likewise.
54915         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54916         Likewise.
54917         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54918         [XPG3 || XPG4] (sigqueue): Likewise.
54919         [XPG3 || XPG4] (sigtimedwait): Likewise.
54920         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54921         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54922         [XPG3 || XPG4] (vsnprintf): Likewise.
54923         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54924         Likewise.
54925         [XPG3 || XPG4] (blksize_t): Likewise.
54926         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54927         Likewise.
54928         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54929         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54930         [XPG3 || XPG4] (struct itimerspec): Likewise.
54931         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54932         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54933         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54934         [XPG3 || XPG4] (clockid_t): Likewise.
54935         [XPG3 || XPG4] (timer_t): Likewise.
54936         [XPG3 || XPG4] (clock_getres): Likewise.
54937         [XPG3 || XPG4] (clock_gettime): Likewise.
54938         [XPG3 || XPG4] (clock_settime): Likewise.
54939         [XPG3 || XPG4] (nanosleep): Likewise.
54940         [XPG3 || XPG4] (timer_create): Likewise.
54941         [XPG3 || XPG4] (timer_delete): Likewise.
54942         [XPG3 || XPG4] (timer_gettime): Likewise.
54943         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54944         [XPG3 || XPG4] (timer_settime): Likewise.
54945         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54946         [XPG3 || XPG4] (getlogin_r): Likewise.
54947         [XPG3 || XPG4] (pread): Likewise.
54948         [XPG3 || XPG4] (pthread_atfork): Likewise.
54949         [XPG3 || XPG4] (pwrite): Likewise.
54950
54951         [BZ #14835]
54952         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54953         <bits/siginfo.h>.
54954
54955 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54956
54957         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54958         finalizing MALLSTREAM.
54959
54960         * sysdeps/mach/hurd/syncfs.c: New file.
54961
54962 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54963
54964         [BZ #14719]
54965         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54966         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54967         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54968         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54969         (_nss_dns_gethostbyname4_r): Likewise.
54970         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54971         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54972
54973 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54974
54975         [BZ #13763]
54976         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54977
54978 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54979
54980         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54981         * elf/cache.c (print_entry): Print ",AArch64" for
54982         FLAG_AARCH64_LIB64
54983
54984         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54985         * elf/cache.c (print_entry): Print ",hard-float" for
54986         FLAG_ARM_LIBHF.
54987
54988 2012-11-18  David S. Miller  <davem@davemloft.net>
54989
54990         With help from Joseph Myers.
54991         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54992         cutoff to 2**-13.
54993         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54994         cutoff to 2**-25.
54995         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54996         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54997         small.
54998         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54999         * math/libm-test.inc (y0_test): New tests.
55000         (y1_test): New tests.
55001         * sysdeps/i386/fpu/libm-test-ulps: Update.
55002         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55003         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55004
55005 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
55006
55007         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
55008         64-bit targets.
55009         * configure: Regenerated.
55010
55011 2012-11-17  David S. Miller  <davem@davemloft.net>
55012
55013         [BZ #14811]
55014         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
55015         nonzero exponents with absolute value below 0x1p-128 to +/-
55016         0x1p-128.
55017
55018 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
55019
55020         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
55021
55022         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
55023
55024         * posix/getconf-speclist.c: New file.
55025         * posix/posix-envs.def: Likewise.
55026         * posix/confstr.c (START_ENV_GROUP): New macro.
55027         (END_ENV_GROUP): Likewise.
55028         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55029         (KNOWN_PRESENT_ENV_STRING): Likewise.
55030         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55031         (UNKNOWN_ENVIRONMENT): Likewise.
55032         (confstr): Include posix-envs.def instead of handling
55033         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
55034         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
55035         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
55036         (END_ENV_GROUP): Likewise.
55037         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55038         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55039         (UNKNOWN_ENVIRONMENT): Likewise.
55040         (__sysconf): Include posix-envs.def instead of handling associated
55041         cases directly here.
55042         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
55043         preprocessing getconf-speclist.c rather than running getconf or
55044         generating empty file.
55045
55046 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
55047
55048         * scripts/check-local-headers.sh: Ignore 'mach' headers.
55049
55050 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
55051
55052         [BZ #14672]
55053         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
55054
55055 2012-11-16  David S. Miller  <davem@davemloft.net>
55056
55057         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
55058         smaller than LDBL_EPSILON/2.0L, just return xm1.
55059
55060 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
55061
55062         * elf/tst-array1.c (init): Set constructor priority to 1000.
55063         (fini): Set destructor priority to 1000.
55064         * elf/tst-array2dep.c: Likewise.
55065
55066 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55067
55068         [BZ #11741]
55069         * libio/fileops.c (_IO_new_file_write): Correctly return error.
55070         (_IO_new_file_xsputn): Also return EOF if none of the input
55071         data was written when overflow failed.
55072         * libio/iopadn.c (_IO_padn): Likewise.
55073         * libio/iowpadn.c (_IO_wpadn): Likewise.
55074         * stdio-common/tst-put-error.c: Add copyright notice.
55075         (do_test): Add case for printing padded string.
55076         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
55077         _IO_padn returned error.
55078         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
55079         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
55080         return EOF.
55081
55082 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55083
55084         * libio/libioP.h: Add comment note that the references to C++
55085         bits are now obsolete.
55086
55087 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55088
55089         * math/libm-test.inc (check_complex): Use asprintf.
55090
55091 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
55092
55093         * debug/pcprofiledump.c (print_version): Update copyright year.
55094         * malloc/memusagestat.c (print_version): Likewise.
55095
55096 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
55097
55098         [BZ #14831]
55099         * elf/Makefile (tests): Add tst-audit8.
55100         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
55101         ($(objpfx)tst-audit8.out): New target.
55102         (tst-audit8-ENV): New variable.
55103         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55104         audit if l_reloc_result is NULL.
55105         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
55106         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
55107         * elf/tst-audit8.c: New file.
55108
55109 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55110
55111         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
55112         * misc/Makefile (CFLAGS-select.c): Define.
55113         * posix/Makefile (CFLAGS-pause.c): Define.
55114
55115 2012-11-13  David S. Miller  <davem@davemloft.net>
55116
55117         * crypt/Makefile: Move test targets after toplevel Rules
55118         inclusion.  Grab any necessary sysdep routines when linking.
55119         * crypt/md5.c (md5_process_block): Remove define, we will always
55120         name it __md5_process_block.
55121         (md5_finish_ctx): Update md5_process_block call.
55122         (md5_stream): Likewise.
55123         (md5_process_bytes): Likewise.
55124         (md5_process_block): Rename to __md5_process_block and move to ...
55125         * crypt/md5-block.c: ... here.
55126         * crypt/sha256.c (sha256_process_block): Move to ...
55127         * crypt/sha256-block.c: ... here.
55128         * crypt/sha512.c (sha512_process_block): Move to ...
55129         * crypt/sha512-block.c: ... here.
55130         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55131         path.
55132         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55133         * sysdeps/sparc/sparc64/multiarch/Makefile
55134         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55135         crypt subdir.
55136         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55137         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55138         multiarch changes.
55139         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55140         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55141         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55142         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55143         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55144         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55145         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55146         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55147         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55148         file.
55149         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55150         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55151         file.
55152         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55153
55154 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55155
55156         * timezone/tzselect.ksh: Update from tzcode git revision
55157         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55158         * timezone/zdump.c: Likewise.
55159         * timezone/zic.c: Likewise.
55160         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55161         in TZVERSION setting, not $(PKGVERSION).
55162         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55163         REPORT_BUGS_TO settings.
55164
55165         [BZ #14838]
55166         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55167         macro.
55168
55169 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55170
55171         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55172         detection to immediately after _FP_ROUND().
55173         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55174         bits are 0.
55175
55176 2012-11-11  David S. Miller  <davem@davemloft.net>
55177
55178         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55179         inttypes.h
55180         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55181         __close rather than their public counterparts.
55182
55183 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55184
55185         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55186         file.
55187         [UNIX98] (sem_timedwait): Do not expect.
55188         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55189         [XPG4 || UNIX98] (sockatmark): Do not expect.
55190         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55191         (clock_getcpuclockid): Do not expect.
55192         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55193         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55194         Do not expect.
55195         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55196         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55197         [UNIX98] (vwscanf): Likewise.
55198         [UNIX98] (vswscanf): Likewise.
55199
55200 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55201
55202         * timezone/version.h: Remove file.
55203         * timezone/README: Do not refer to version.h.
55204         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55205         $(objpfx)version.h.
55206         ($(objpfx)zdump.o): Likewise.
55207         ($(objpfx)version.h): New target.
55208
55209         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55210         2012i.
55211         * timezone/README: Don't mention modification to tzselect.ksh.
55212         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55213         work on unmodified tzselect.ksh.  Substitute version numbers in
55214         tzselect.ksh.
55215
55216         * Makefile (format-me): Remove.
55217         (INSTALL): Adjust indentation.  Use commands directly instead of
55218         using $(format-me).
55219
55220         * aclocal.m4 (ACX_PKGVERSION): New macro.
55221         (ACX_BUGURL): Likewise.
55222         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55223         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55224         (REPORT_BUGS_TO): Likewise.
55225         * configure: Regenerated.
55226         * config.h.in (PKGVERSION): New macro.
55227         (REPORT_BUGS_TO): Likewise.
55228         * config.make.in (PKGVERSION): New variable.
55229         (PKGVERSION_TEXI): Likewise.
55230         (REPORT_BUGS_TO): Likewise.
55231         (REPORT_BUGS_TEXI): Likewise.
55232         * Makefile (format-me): Use -I$(common-objpfx)manual.
55233         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55234         ($(common-objpfx)manual/%): New target.
55235         (manual/%): Remove target.
55236         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55237         (print_version): Use PKGVERSION.
55238         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55239         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55240         and REPORT_BUGS_TO.
55241         ($(objpfx)xtrace): Likewise.
55242         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55243         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55244         (print_version): Use PKGVERSION.
55245         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55246         (do_version): Use PKGVERSION.
55247         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55248         REPORT_BUGS_TO.
55249         (common-ldd-rewrite): Likewise.
55250         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55251         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55252         (print_version): Use PKGVERSION.
55253         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55254         * elf/pldd.c (argp_program_bug_address): Remove variable.
55255         (more_help): New function.
55256         (argp): Use more_help.
55257         (print_version): Use PKGVERSION.
55258         * elf/sln.c (main): Use PKGVERSION.
55259         (usage): Use REPORT_BUGS_TO.
55260         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55261         (top level): Use PKGVERSION.
55262         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55263         (print_version): Use PKGVERSION.
55264         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55265         (print_version): Use PKGVERSION.
55266         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55267         (print_version): Use PKGVERSION.
55268         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55269         (print_version): Use PKGVERSION.
55270         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55271         (print_version): Use PKGVERSION.
55272         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55273         (print_version): Use PKGVERSION.
55274         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55275         and BUGURL.
55276         ($(objpfx)memusage): Likewise.
55277         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55278         (do_version): Use PKGVERSION.
55279         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55280         (print_version): Use PKGVERSION.
55281         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55282         ($PKGVERSION): New variable.
55283         ($REPORT_BUGS_TO): Likewise.
55284         (usage): Use $REPORT_BUGS_TO.
55285         (top level): Use $PKGVERSION.
55286         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55287         ($(objpfx)pkgvers.texi): New rule.
55288         ($(objpfx)stamp-pkgvers): Likewise.
55289         * manual/install.texi: Include pkgvers.texi.
55290         (--with-pkgversion): Document new configure option.
55291         (--with-bugurl): Likewise.
55292         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55293         than necessarily for this particular distribution.  Use
55294         REPORT_BUGS_TO for where to report bugs.
55295         * INSTALL: Regenerated.
55296         * manual/libc.texinfo: Include pkgvers.texi.
55297         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55298         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55299         (print_version): Use PKGVERSION.
55300         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55301         (print_version): Use PKGVERSION.
55302         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55303         (print_version): Use PKGVERSION.
55304         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55305         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55306         macro.
55307         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55308         (print_version): Use PKGVERSION.
55309         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55310         (print_version): Use PKGVERSION.
55311         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55312         and PKGVERSION.
55313
55314         * timezone/checktab.awk: Update from tzcode 2012i.
55315         * timezone/ialloc.c: Likewise.
55316         * timezone/private.h: Likewise.
55317         * timezone/scheck.c: Likewise.
55318         * timezone/tzfile.h: Likewise.
55319         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55320         (TZVERSION): Hardcode tzcode version number.
55321         * timezone/zdump.c: Update from tzcode 2012i.
55322         * timezone/zic.c: Likewise.
55323         * timezone/version.h: New file.
55324         * timezone/README: Describe version.h.  Update upstream location.
55325
55326         [BZ #14824]
55327         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55328         (mktemp): Enable declaration.
55329         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55330         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55331         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55332         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55333         Likewise.
55334         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55335         Likewise.
55336         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55337         Likewise.
55338         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55339         Likewise.
55340         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55341         Likewise.
55342         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55343         Likewise.
55344
55345         [BZ #14821]
55346         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55347         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55348         for copies of such integer values.
55349         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55350         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55351
55352 2012-11-09  Andreas Jaeger  <aj@suse.de>
55353
55354         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55355         definitions and declarations that are provided by
55356         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55357
55358 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55359
55360         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55361         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55362         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55363         definition.
55364
55365 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55366
55367         * elf/elf.h: Update comment before AArch64 relocations.
55368
55369 2012-11-07  David S. Miller  <davem@davemloft.net>
55370
55371         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55372         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55373         (__start_context): Declare.
55374         (__makecontext_ret): Delete.
55375         (__makecontext): Hook up __start_context instead of
55376         __makecontext_ret.
55377         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55378         (sysdep_routines): Add __start_context when in stdlib.
55379
55380 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55381
55382         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55383         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55384         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55385         hardcoded "nm".
55386         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55387         (READELF): New variable.  Use it instead of hardcoded "readelf".
55388
55389 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55390
55391         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55392         * sysdeps/x86/Makefile: Here.
55393         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55394         * sysdeps/x86/tst-xmmymm.sh: This.
55395
55396 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55397
55398         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55399         expectations.
55400         [UNIX98] (pthread_barrier_t): Do not expect.
55401         [UNIX98] (pthread_barrierattr_t): Likewise.
55402         [UNIX98] (pthread_spinlock_t): Likewise.
55403         [UNIX98] (pthread_barrier_destroy): Likewise.
55404         [UNIX98] (pthread_barrier_init): Likewise.
55405         [UNIX98] (pthread_barrier_wait): Likewise.
55406         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55407         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55408         [UNIX98] (pthread_barrierattr_init): Likewise.
55409         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55410         [UNIX98] (pthread_getcpuclockid): Likewise.
55411         [UNIX98] (pthread_mutex_timedlock): Likewise.
55412         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55413         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55414         [UNIX98] (pthread_sigmask): Likewise.
55415         [UNIX98] (pthread_spin_destroy): Likewise.
55416         [UNIX98] (pthread_spin_init): Likewise.
55417         [UNIX98] (pthread_spin_lock): Likewise.
55418         [UNIX98] (pthread_spin_trylock): Likewise.
55419         [UNIX98] (pthread_spin_unlock): Likewise.
55420         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55421         Do not expect.
55422         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55423         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55424         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55425         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55426         [XPG3 || XPG4] (pthread_key_t): Likewise.
55427         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55428         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55429         [XPG3 || XPG4] (pthread_once_t): Likewise.
55430         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55431         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55432         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55433         [XPG3 || XPG4] (pthread_t): Likewise.
55434
55435         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55436         not expect.
55437         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55438
55439         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55440         Change function return type to int.
55441
55442         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55443         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55444         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55445         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55446         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55447         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55448         [!POSIX] (posix_madvise): Likewise.
55449         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55450         && !UNIX98].
55451         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55452         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55453         (mode_t): Likewise.
55454         (posix_mem_offset): Likewise.
55455         (posix_typed_mem_get_info): Likewise.
55456         (posix_typed_mem_open): Likewise.
55457
55458         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55459         Change condition to [XOPEN2K8].
55460
55461         * conform/conformtest.pl: Preprocess allow-header data with -x c
55462         instead of from stdin.
55463         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55464         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55465         [C99-based standards] (cerfc): Likewise.
55466         [C99-based standards] (cexp2): Likewise.
55467         [C99-based standards] (cexpm1): Likewise.
55468         [C99-based standards] (clog10): Likewise.
55469         [C99-based standards] (clog1p): Likewise.
55470         [C99-based standards] (clog2): Likewise.
55471         [C99-based standards] (clgamma): Likewise.
55472         [C99-based standards] (ctgamma): Likewise.
55473         [C99-based standards] (cerff): Likewise.
55474         [C99-based standards] (cerfcf): Likewise.
55475         [C99-based standards] (cexp2f): Likewise.
55476         [C99-based standards] (cexpm1f): Likewise.
55477         [C99-based standards] (clog10f): Likewise.
55478         [C99-based standards] (clog1pf): Likewise.
55479         [C99-based standards] (clog2f): Likewise.
55480         [C99-based standards] (clgammaf): Likewise.
55481         [C99-based standards] (ctgammaf): Likewise.
55482         [C99-based standards] (cerfl): Likewise.
55483         [C99-based standards] (cerfcl): Likewise.
55484         [C99-based standards] (cexp2l): Likewise.
55485         [C99-based standards] (cexpm1l): Likewise.
55486         [C99-based standards] (clog10l): Likewise.
55487         [C99-based standards] (clog1pl): Likewise.
55488         [C99-based standards] (clog2l): Likewise.
55489         [C99-based standards] (clgammal): Likewise.
55490         [C99-based standards] (ctgammal): Likewise.
55491         * conform/data/inttypes.h-data [C99-based standards]: Include
55492         stdint.h-data.  Remove all expectations for stdint.h contents.
55493         [C99-based standards] (PRI*): Do not allow.
55494         [C99-based standards] (SCN*): Likewise.
55495         [C99-based standards] (*_t): Likewise.
55496         [C99-based-standards] (PRId8): Expect macro.
55497         [C99-based-standards] (PRIi8): Likewise.
55498         [C99-based-standards] (PRIo8): Likewise.
55499         [C99-based-standards] (PRIu8): Likewise.
55500         [C99-based-standards] (PRIx8): Likewise.
55501         [C99-based-standards] (PRIX8): Likewise.
55502         [C99-based-standards] (SCNd8): Likewise.
55503         [C99-based-standards] (SCNi8): Likewise.
55504         [C99-based-standards] (SCNo8): Likewise.
55505         [C99-based-standards] (SCNu8): Likewise.
55506         [C99-based-standards] (SCNx8): Likewise.
55507         [C99-based-standards] (PRIdLEAST8): Likewise.
55508         [C99-based-standards] (PRIiLEAST8): Likewise.
55509         [C99-based-standards] (PRIoLEAST8): Likewise.
55510         [C99-based-standards] (PRIuLEAST8): Likewise.
55511         [C99-based-standards] (PRIxLEAST8): Likewise.
55512         [C99-based-standards] (PRIXLEAST8): Likewise.
55513         [C99-based-standards] (SCNdLEAST8): Likewise.
55514         [C99-based-standards] (SCNiLEAST8): Likewise.
55515         [C99-based-standards] (SCNoLEAST8): Likewise.
55516         [C99-based-standards] (SCNuLEAST8): Likewise.
55517         [C99-based-standards] (SCNxLEAST8): Likewise.
55518         [C99-based-standards] (PRIdFAST8): Likewise.
55519         [C99-based-standards] (PRIiFAST8): Likewise.
55520         [C99-based-standards] (PRIoFAST8): Likewise.
55521         [C99-based-standards] (PRIuFAST8): Likewise.
55522         [C99-based-standards] (PRIxFAST8): Likewise.
55523         [C99-based-standards] (PRIXFAST8): Likewise.
55524         [C99-based-standards] (SCNdFAST8): Likewise.
55525         [C99-based-standards] (SCNiFAST8): Likewise.
55526         [C99-based-standards] (SCNoFAST8): Likewise.
55527         [C99-based-standards] (SCNuFAST8): Likewise.
55528         [C99-based-standards] (SCNxFAST8): Likewise.
55529         [C99-based-standards] (PRId16): Likewise.
55530         [C99-based-standards] (PRIi16): Likewise.
55531         [C99-based-standards] (PRIo16): Likewise.
55532         [C99-based-standards] (PRIu16): Likewise.
55533         [C99-based-standards] (PRIx16): Likewise.
55534         [C99-based-standards] (PRIX16): Likewise.
55535         [C99-based-standards] (SCNd16): Likewise.
55536         [C99-based-standards] (SCNi16): Likewise.
55537         [C99-based-standards] (SCNo16): Likewise.
55538         [C99-based-standards] (SCNu16): Likewise.
55539         [C99-based-standards] (SCNx16): Likewise.
55540         [C99-based-standards] (PRIdLEAST16): Likewise.
55541         [C99-based-standards] (PRIiLEAST16): Likewise.
55542         [C99-based-standards] (PRIoLEAST16): Likewise.
55543         [C99-based-standards] (PRIuLEAST16): Likewise.
55544         [C99-based-standards] (PRIxLEAST16): Likewise.
55545         [C99-based-standards] (PRIXLEAST16): Likewise.
55546         [C99-based-standards] (SCNdLEAST16): Likewise.
55547         [C99-based-standards] (SCNiLEAST16): Likewise.
55548         [C99-based-standards] (SCNoLEAST16): Likewise.
55549         [C99-based-standards] (SCNuLEAST16): Likewise.
55550         [C99-based-standards] (SCNxLEAST16): Likewise.
55551         [C99-based-standards] (PRIdFAST16): Likewise.
55552         [C99-based-standards] (PRIiFAST16): Likewise.
55553         [C99-based-standards] (PRIoFAST16): Likewise.
55554         [C99-based-standards] (PRIuFAST16): Likewise.
55555         [C99-based-standards] (PRIxFAST16): Likewise.
55556         [C99-based-standards] (PRIXFAST16): Likewise.
55557         [C99-based-standards] (SCNdFAST16): Likewise.
55558         [C99-based-standards] (SCNiFAST16): Likewise.
55559         [C99-based-standards] (SCNoFAST16): Likewise.
55560         [C99-based-standards] (SCNuFAST16): Likewise.
55561         [C99-based-standards] (SCNxFAST16): Likewise.
55562         [C99-based-standards] (PRId32): Likewise.
55563         [C99-based-standards] (PRIi32): Likewise.
55564         [C99-based-standards] (PRIo32): Likewise.
55565         [C99-based-standards] (PRIu32): Likewise.
55566         [C99-based-standards] (PRIx32): Likewise.
55567         [C99-based-standards] (PRIX32): Likewise.
55568         [C99-based-standards] (SCNd32): Likewise.
55569         [C99-based-standards] (SCNi32): Likewise.
55570         [C99-based-standards] (SCNo32): Likewise.
55571         [C99-based-standards] (SCNu32): Likewise.
55572         [C99-based-standards] (SCNx32): Likewise.
55573         [C99-based-standards] (PRIdLEAST32): Likewise.
55574         [C99-based-standards] (PRIiLEAST32): Likewise.
55575         [C99-based-standards] (PRIoLEAST32): Likewise.
55576         [C99-based-standards] (PRIuLEAST32): Likewise.
55577         [C99-based-standards] (PRIxLEAST32): Likewise.
55578         [C99-based-standards] (PRIXLEAST32): Likewise.
55579         [C99-based-standards] (SCNdLEAST32): Likewise.
55580         [C99-based-standards] (SCNiLEAST32): Likewise.
55581         [C99-based-standards] (SCNoLEAST32): Likewise.
55582         [C99-based-standards] (SCNuLEAST32): Likewise.
55583         [C99-based-standards] (SCNxLEAST32): Likewise.
55584         [C99-based-standards] (PRIdFAST32): Likewise.
55585         [C99-based-standards] (PRIiFAST32): Likewise.
55586         [C99-based-standards] (PRIoFAST32): Likewise.
55587         [C99-based-standards] (PRIuFAST32): Likewise.
55588         [C99-based-standards] (PRIxFAST32): Likewise.
55589         [C99-based-standards] (PRIXFAST32): Likewise.
55590         [C99-based-standards] (SCNdFAST32): Likewise.
55591         [C99-based-standards] (SCNiFAST32): Likewise.
55592         [C99-based-standards] (SCNoFAST32): Likewise.
55593         [C99-based-standards] (SCNuFAST32): Likewise.
55594         [C99-based-standards] (SCNxFAST32): Likewise.
55595         [C99-based-standards] (PRId64): Likewise.
55596         [C99-based-standards] (PRIi64): Likewise.
55597         [C99-based-standards] (PRIo64): Likewise.
55598         [C99-based-standards] (PRIu64): Likewise.
55599         [C99-based-standards] (PRIx64): Likewise.
55600         [C99-based-standards] (PRIX64): Likewise.
55601         [C99-based-standards] (SCNd64): Likewise.
55602         [C99-based-standards] (SCNi64): Likewise.
55603         [C99-based-standards] (SCNo64): Likewise.
55604         [C99-based-standards] (SCNu64): Likewise.
55605         [C99-based-standards] (SCNx64): Likewise.
55606         [C99-based-standards] (PRIdLEAST64): Likewise.
55607         [C99-based-standards] (PRIiLEAST64): Likewise.
55608         [C99-based-standards] (PRIoLEAST64): Likewise.
55609         [C99-based-standards] (PRIuLEAST64): Likewise.
55610         [C99-based-standards] (PRIxLEAST64): Likewise.
55611         [C99-based-standards] (PRIXLEAST64): Likewise.
55612         [C99-based-standards] (SCNdLEAST64): Likewise.
55613         [C99-based-standards] (SCNiLEAST64): Likewise.
55614         [C99-based-standards] (SCNoLEAST64): Likewise.
55615         [C99-based-standards] (SCNuLEAST64): Likewise.
55616         [C99-based-standards] (SCNxLEAST64): Likewise.
55617         [C99-based-standards] (PRIdFAST64): Likewise.
55618         [C99-based-standards] (PRIiFAST64): Likewise.
55619         [C99-based-standards] (PRIoFAST64): Likewise.
55620         [C99-based-standards] (PRIuFAST64): Likewise.
55621         [C99-based-standards] (PRIxFAST64): Likewise.
55622         [C99-based-standards] (PRIXFAST64): Likewise.
55623         [C99-based-standards] (SCNdFAST64): Likewise.
55624         [C99-based-standards] (SCNiFAST64): Likewise.
55625         [C99-based-standards] (SCNoFAST64): Likewise.
55626         [C99-based-standards] (SCNuFAST64): Likewise.
55627         [C99-based-standards] (SCNxFAST64): Likewise.
55628         [C99-based-standards] (PRIdMAX): Likewise.
55629         [C99-based-standards] (PRIiMAX): Likewise.
55630         [C99-based-standards] (PRIoMAX): Likewise.
55631         [C99-based-standards] (PRIuMAX): Likewise.
55632         [C99-based-standards] (PRIxMAX): Likewise.
55633         [C99-based-standards] (PRIXMAX): Likewise.
55634         [C99-based-standards] (SCNdMAX): Likewise.
55635         [C99-based-standards] (SCNiMAX): Likewise.
55636         [C99-based-standards] (SCNoMAX): Likewise.
55637         [C99-based-standards] (SCNuMAX): Likewise.
55638         [C99-based-standards] (SCNxMAX): Likewise.
55639         [C99-based-standards] (PRIdPTR): Likewise.
55640         [C99-based-standards] (PRIiPTR): Likewise.
55641         [C99-based-standards] (PRIoPTR): Likewise.
55642         [C99-based-standards] (PRIuPTR): Likewise.
55643         [C99-based-standards] (PRIxPTR): Likewise.
55644         [C99-based-standards] (PRIXPTR): Likewise.
55645         [C99-based-standards] (SCNdPTR): Likewise.
55646         [C99-based-standards] (SCNiPTR): Likewise.
55647         [C99-based-standards] (SCNoPTR): Likewise.
55648         [C99-based-standards] (SCNuPTR): Likewise.
55649         [C99-based-standards] (SCNxPTR): Likewise.
55650         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55651         allow.
55652         * conform/data/stdint.h-data: Update comments to clarify
55653         requirements.
55654         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55655         type.
55656         [C99-based standards] (INT8_MAX): Likewise.
55657         [C99-based standards] (INT16_MIN): Likewise.
55658         [C99-based standards] (INT16_MAX): Likewise.
55659         [C99-based standards] (INT32_MIN): Likewise.
55660         [C99-based standards] (INT32_MAX): Likewise.
55661         [C99-based standards] (INT64_MIN): Likewise.
55662         [C99-based standards] (INT64_MAX): Likewise.
55663         [C99-based standards] (UINT8_MAX): Likewise.
55664         [C99-based standards] (UINT16_MAX): Likewise.
55665         [C99-based standards] (UINT32_MAX): Likewise.
55666         [C99-based standards] (UINT64_MAX): Likewise.
55667         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55668         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55669         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55670         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55671         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55672         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55673         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55674         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55675         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55676         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55677         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55678         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55679         [C99-based standards] (INT_FAST8_MIN): Likewise.
55680         [C99-based standards] (INT_FAST8_MAX): Likewise.
55681         [C99-based standards] (INT_FAST16_MIN): Likewise.
55682         [C99-based standards] (INT_FAST16_MAX): Likewise.
55683         [C99-based standards] (INT_FAST32_MIN): Likewise.
55684         [C99-based standards] (INT_FAST32_MAX): Likewise.
55685         [C99-based standards] (INT_FAST64_MIN): Likewise.
55686         [C99-based standards] (INT_FAST64_MAX): Likewise.
55687         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55688         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55689         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55690         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55691         [C99-based standards] (INTPTR_MIN): Likewise.
55692         [C99-based standards] (INTPTR_MAX): Likewise.
55693         [C99-based standards] (UINTPTR_MAX): Likewise.
55694         [C99-based standards] (INTMAX_MIN): Likewise.
55695         [C99-based standards] (INTMAX_MAX): Likewise.
55696         [C99-based standards] (UINTMAX_MAX): Likewise.
55697         [C99-based standards] (PTRDIFF_MIN): Likewise.
55698         [C99-based standards] (PTRDIFF_MAX): Likewise.
55699         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55700         [C99-based standards] (SIZE_MAX): Likewise.
55701         [C99-based standards] (WCHAR_MAX): Likewise.
55702         [C99-based standards] (WINT_MAX): Likewise.
55703         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55704         constraint on value.
55705         [C99-based standards] (WCHAR_MIN): Likewise.
55706         [C99-based standards] (WINT_MIN): Likewise.
55707         [C99-based standards] (*_t): Allow.
55708         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55709         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55710         Include math.h-data and complex.h-data.  Remove all expectations
55711         of math.h and complex.h contents.
55712         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55713         at end of line.
55714         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55715         (struct tm): Expect tag.
55716         [C99-based-standards] (wcstof): Expect function.
55717         [C99-based-standards] (wcstold): Likewise.
55718         [C99-based-standards] (wcstoll): Likewise.
55719         [C99-based-standards] (wcstoull): Likewise.
55720         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55721         macro-int-constant.  Specify type.
55722         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55723         constraint on value.
55724         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55725         Specify type.
55726         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55727         Specify value.
55728         [ISO C standards]: Do not allow headers.
55729         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55730         wcs[abcdefghijklmnopqrstuvwxyz]*.
55731         [ISO C standards] (*_t): Do not allow.
55732         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55733         Expect function.
55734         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55735         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55736         Specify type.
55737         [ISO C standards]: Do not allow headers.
55738         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55739         is[abcdefghijklmnopqrstuvwxyz]*.
55740         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55741         to[abcdefghijklmnopqrstuvwxyz]*.
55742         [ISO C standards] (*_t): Do not allow.
55743         * conform/data/stdalign.h-data: New file.
55744         * conform/data/stdbool.h-data: Likewise.
55745         * conform/data/stdnoreturn.h-data: Likewise.
55746
55747 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55748
55749         [BZ #14815]
55750         * manual/filesys.texi (Directory Entries): Typo fix.
55751         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55752
55753 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55754
55755         * elf/elf.h (EM_AARCH64): New macro.
55756         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55757         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55758         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55759         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55760         (R_AARCH64_TLSDESC): Likewise.
55761         (NT_ARM_TLS): Likewise.
55762         (NT_ARM_HW_BREAK): Likewise.
55763         (NT_ARM_HW_WATCH): Likewise.
55764
55765 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55766
55767         [BZ #14811]
55768         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55769         (__ieee754_powl): Saturate nonzero exponents with absolute value
55770         below 0x1p-79 to +/- 0x1p-79.
55771         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55772         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55773         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55774         nonzero exponents with absolute value below 0x1p-32 to +/-
55775         0x1p-32.
55776         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55777         (__ieee754_powl): Saturate nonzero exponents with absolute value
55778         below 0x1p-79 to +/- 0x1p-79.
55779         * math/libm-test.inc (pow_test): Add more tests.
55780
55781 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55782
55783         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55784         _dl_s390_cap_flags with kernel. Increase string length.
55785         (_dl_s390_platforms): Add z196 and zEC12.
55786
55787 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55788
55789         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55790         Change XOPEN21K to XOPEN2K.
55791
55792 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55793
55794         * string/memmove.c: Use memcpy when possible.
55795
55796 2012-11-06  Andreas Jaeger  <aj@suse.de>
55797
55798         * po/eo.po: Update from translation team.
55799
55800 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55801
55802         [BZ #14793]
55803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55804         exponent and small x and y exponents, scale x or y up.  Increase
55805         by 2 the exponent used in scaling up.
55806         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55807         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55808         * math/libm-test.inc (fma_test): Add more tests.
55809         (fma_test_towardzero): Likewise.
55810         (fma_test_downward): Likewise.
55811         (fma_test_upward): Likewise.
55812
55813 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55814
55815         [BZ #14805]
55816         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55817         fenv_t *.
55818
55819         [BZ #14801]
55820         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55821         namespace for names of struct fields.
55822         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55823         fenv_t fields.
55824         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55825         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55826
55827 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55828
55829         [BZ #3665]
55830         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55831
55832 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55833
55834         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55835         PTR_DEMANGLE.
55836
55837         [BZ #5246]
55838         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55839         PTR_DEMANGLE.
55840
55841 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55842
55843         [BZ #14797]
55844         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55845         definitely overflow as x * y not x * y + z.
55846         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55847         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55848         * math/libm-test.inc (fma_test): Add more tests.
55849         (fma_test_towardzero): Likewise.
55850         (fma_test_downward): Likewise.
55851         (fma_test_upward): Likewise.
55852
55853 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55854
55855         [BZ #157]
55856
55857         * include/stub-tag.h: Remove file.
55858         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55859         '#include' of it.
55860         * manual/maint.texi (Porting): Don't reference it.
55861         * Makerules ($(objpfx)stubs): Likewise.
55862         * dirent/closedir.c: Don't include <stub-tag.h>.
55863         * dirent/dirfd.c: Likewise.
55864         * dirent/fdopendir.c: Likewise.
55865         * dirent/getdents.c: Likewise.
55866         * dirent/getdents64.c: Likewise.
55867         * dirent/opendir.c: Likewise.
55868         * dirent/readdir.c: Likewise.
55869         * dirent/readdir64.c: Likewise.
55870         * dirent/readdir64_r.c: Likewise.
55871         * dirent/readdir_r.c: Likewise.
55872         * dirent/rewinddir.c: Likewise.
55873         * dirent/seekdir.c: Likewise.
55874         * dirent/telldir.c: Likewise.
55875         * gmon/profil.c: Likewise.
55876         * grp/setgroups.c: Likewise.
55877         * inet/if_index.c: Likewise.
55878         * io/access.c: Likewise.
55879         * io/chdir.c: Likewise.
55880         * io/chmod.c: Likewise.
55881         * io/chown.c: Likewise.
55882         * io/close.c: Likewise.
55883         * io/dup.c: Likewise.
55884         * io/dup2.c: Likewise.
55885         * io/dup3.c: Likewise.
55886         * io/euidaccess.c: Likewise.
55887         * io/faccessat.c: Likewise.
55888         * io/fchdir.c: Likewise.
55889         * io/fchmod.c: Likewise.
55890         * io/fchmodat.c: Likewise.
55891         * io/fchown.c: Likewise.
55892         * io/fchownat.c: Likewise.
55893         * io/fcntl.c: Likewise.
55894         * io/flock.c: Likewise.
55895         * io/fstatfs.c: Likewise.
55896         * io/fstatfs64.c: Likewise.
55897         * io/fstatvfs.c: Likewise.
55898         * io/fstatvfs64.c: Likewise.
55899         * io/futimens.c: Likewise.
55900         * io/fxstat.c: Likewise.
55901         * io/fxstat64.c: Likewise.
55902         * io/fxstatat.c: Likewise.
55903         * io/fxstatat64.c: Likewise.
55904         * io/getcwd.c: Likewise.
55905         * io/isatty.c: Likewise.
55906         * io/lchmod.c: Likewise.
55907         * io/lchown.c: Likewise.
55908         * io/link.c: Likewise.
55909         * io/linkat.c: Likewise.
55910         * io/lseek.c: Likewise.
55911         * io/lseek64.c: Likewise.
55912         * io/lxstat64.c: Likewise.
55913         * io/mkdir.c: Likewise.
55914         * io/mkdirat.c: Likewise.
55915         * io/mkfifo.c: Likewise.
55916         * io/mkfifoat.c: Likewise.
55917         * io/open.c: Likewise.
55918         * io/open64.c: Likewise.
55919         * io/openat.c: Likewise.
55920         * io/openat64.c: Likewise.
55921         * io/pipe.c: Likewise.
55922         * io/pipe2.c: Likewise.
55923         * io/poll.c: Likewise.
55924         * io/posix_fadvise.c: Likewise.
55925         * io/posix_fadvise64.c: Likewise.
55926         * io/posix_fallocate.c: Likewise.
55927         * io/posix_fallocate64.c: Likewise.
55928         * io/read.c: Likewise.
55929         * io/readlink.c: Likewise.
55930         * io/readlinkat.c: Likewise.
55931         * io/rmdir.c: Likewise.
55932         * io/sendfile.c: Likewise.
55933         * io/sendfile64.c: Likewise.
55934         * io/statfs.c: Likewise.
55935         * io/statfs64.c: Likewise.
55936         * io/statvfs.c: Likewise.
55937         * io/statvfs64.c: Likewise.
55938         * io/symlink.c: Likewise.
55939         * io/symlinkat.c: Likewise.
55940         * io/ttyname.c: Likewise.
55941         * io/ttyname_r.c: Likewise.
55942         * io/umask.c: Likewise.
55943         * io/unlink.c: Likewise.
55944         * io/unlinkat.c: Likewise.
55945         * io/utime.c: Likewise.
55946         * io/utimensat.c: Likewise.
55947         * io/write.c: Likewise.
55948         * io/xmknod.c: Likewise.
55949         * io/xmknodat.c: Likewise.
55950         * io/xstat.c: Likewise.
55951         * io/xstat64.c: Likewise.
55952         * login/getpt.c: Likewise.
55953         * login/grantpt.c: Likewise.
55954         * login/unlockpt.c: Likewise.
55955         * math/e_acoshl.c: Likewise.
55956         * math/e_acosl.c: Likewise.
55957         * math/e_asinl.c: Likewise.
55958         * math/e_atan2l.c: Likewise.
55959         * math/e_atanhl.c: Likewise.
55960         * math/e_coshl.c: Likewise.
55961         * math/e_expl.c: Likewise.
55962         * math/e_fmodl.c: Likewise.
55963         * math/e_gammal_r.c: Likewise.
55964         * math/e_hypotl.c: Likewise.
55965         * math/e_j0l.c: Likewise.
55966         * math/e_j1l.c: Likewise.
55967         * math/e_jnl.c: Likewise.
55968         * math/e_lgammal_r.c: Likewise.
55969         * math/e_log10l.c: Likewise.
55970         * math/e_log2l.c: Likewise.
55971         * math/e_logl.c: Likewise.
55972         * math/e_powl.c: Likewise.
55973         * math/e_rem_pio2l.c: Likewise.
55974         * math/e_sinhl.c: Likewise.
55975         * math/e_sqrtl.c: Likewise.
55976         * math/fclrexcpt.c: Likewise.
55977         * math/fedisblxcpt.c: Likewise.
55978         * math/feenablxcpt.c: Likewise.
55979         * math/fegetenv.c: Likewise.
55980         * math/fegetexcept.c: Likewise.
55981         * math/fegetround.c: Likewise.
55982         * math/feholdexcpt.c: Likewise.
55983         * math/fesetenv.c: Likewise.
55984         * math/fesetround.c: Likewise.
55985         * math/feupdateenv.c: Likewise.
55986         * math/fgetexcptflg.c: Likewise.
55987         * math/fraiseexcpt.c: Likewise.
55988         * math/fsetexcptflg.c: Likewise.
55989         * math/ftestexcept.c: Likewise.
55990         * math/k_cosl.c: Likewise.
55991         * math/k_rem_pio2l.c: Likewise.
55992         * math/k_sinl.c: Likewise.
55993         * math/k_tanl.c: Likewise.
55994         * math/s_asinhl.c: Likewise.
55995         * math/s_atanl.c: Likewise.
55996         * math/s_cbrtl.c: Likewise.
55997         * math/s_erfl.c: Likewise.
55998         * math/s_expm1l.c: Likewise.
55999         * math/s_log1pl.c: Likewise.
56000         * math/s_tanhl.c: Likewise.
56001         * misc/acct.c: Likewise.
56002         * misc/brk.c: Likewise.
56003         * misc/chflags.c: Likewise.
56004         * misc/chroot.c: Likewise.
56005         * misc/fchflags.c: Likewise.
56006         * misc/fgetxattr.c: Likewise.
56007         * misc/flistxattr.c: Likewise.
56008         * misc/fremovexattr.c: Likewise.
56009         * misc/fsetxattr.c: Likewise.
56010         * misc/fsync.c: Likewise.
56011         * misc/ftruncate.c: Likewise.
56012         * misc/futimes.c: Likewise.
56013         * misc/futimesat.c: Likewise.
56014         * misc/getdomain.c: Likewise.
56015         * misc/getdtsz.c: Likewise.
56016         * misc/gethostid.c: Likewise.
56017         * misc/gethostname.c: Likewise.
56018         * misc/getloadavg.c: Likewise.
56019         * misc/getpagesize.c: Likewise.
56020         * misc/getsysstats.c: Likewise.
56021         * misc/getxattr.c: Likewise.
56022         * misc/gtty.c: Likewise.
56023         * misc/ioctl.c: Likewise.
56024         * misc/lgetxattr.c: Likewise.
56025         * misc/listxattr.c: Likewise.
56026         * misc/llistxattr.c: Likewise.
56027         * misc/lremovexattr.c: Likewise.
56028         * misc/lsetxattr.c: Likewise.
56029         * misc/lutimes.c: Likewise.
56030         * misc/madvise.c: Likewise.
56031         * misc/mincore.c: Likewise.
56032         * misc/mlock.c: Likewise.
56033         * misc/mlockall.c: Likewise.
56034         * misc/mmap.c: Likewise.
56035         * misc/mprotect.c: Likewise.
56036         * misc/msync.c: Likewise.
56037         * misc/munlock.c: Likewise.
56038         * misc/munlockall.c: Likewise.
56039         * misc/munmap.c: Likewise.
56040         * misc/preadv.c: Likewise.
56041         * misc/preadv64.c: Likewise.
56042         * misc/ptrace.c: Likewise.
56043         * misc/pwritev.c: Likewise.
56044         * misc/pwritev64.c: Likewise.
56045         * misc/readv.c: Likewise.
56046         * misc/reboot.c: Likewise.
56047         * misc/remap_file_pages.c: Likewise.
56048         * misc/removexattr.c: Likewise.
56049         * misc/revoke.c: Likewise.
56050         * misc/select.c: Likewise.
56051         * misc/setdomain.c: Likewise.
56052         * misc/setegid.c: Likewise.
56053         * misc/seteuid.c: Likewise.
56054         * misc/sethostid.c: Likewise.
56055         * misc/sethostname.c: Likewise.
56056         * misc/setregid.c: Likewise.
56057         * misc/setreuid.c: Likewise.
56058         * misc/setxattr.c: Likewise.
56059         * misc/sstk.c: Likewise.
56060         * misc/stty.c: Likewise.
56061         * misc/swapoff.c: Likewise.
56062         * misc/swapon.c: Likewise.
56063         * misc/sync.c: Likewise.
56064         * misc/syncfs.c: Likewise.
56065         * misc/syscall.c: Likewise.
56066         * misc/truncate.c: Likewise.
56067         * misc/ualarm.c: Likewise.
56068         * misc/usleep.c: Likewise.
56069         * misc/ustat.c: Likewise.
56070         * misc/utimes.c: Likewise.
56071         * misc/vhangup.c: Likewise.
56072         * misc/writev.c: Likewise.
56073         * posix/_exit.c: Likewise.
56074         * posix/alarm.c: Likewise.
56075         * posix/execve.c: Likewise.
56076         * posix/fexecve.c: Likewise.
56077         * posix/fork.c: Likewise.
56078         * posix/fpathconf.c: Likewise.
56079         * posix/getaddrinfo.c: Likewise.
56080         * posix/getegid.c: Likewise.
56081         * posix/geteuid.c: Likewise.
56082         * posix/getgid.c: Likewise.
56083         * posix/getgroups.c: Likewise.
56084         * posix/getlogin.c: Likewise.
56085         * posix/getlogin_r.c: Likewise.
56086         * posix/getpgid.c: Likewise.
56087         * posix/getpid.c: Likewise.
56088         * posix/getppid.c: Likewise.
56089         * posix/getresgid.c: Likewise.
56090         * posix/getresuid.c: Likewise.
56091         * posix/getsid.c: Likewise.
56092         * posix/getuid.c: Likewise.
56093         * posix/glob64.c: Likewise.
56094         * posix/nanosleep.c: Likewise.
56095         * posix/pathconf.c: Likewise.
56096         * posix/pause.c: Likewise.
56097         * posix/posix_madvise.c: Likewise.
56098         * posix/pread.c: Likewise.
56099         * posix/pread64.c: Likewise.
56100         * posix/pwrite.c: Likewise.
56101         * posix/pwrite64.c: Likewise.
56102         * posix/sched_getaffinity.c: Likewise.
56103         * posix/sched_getp.c: Likewise.
56104         * posix/sched_gets.c: Likewise.
56105         * posix/sched_primax.c: Likewise.
56106         * posix/sched_primin.c: Likewise.
56107         * posix/sched_rr_gi.c: Likewise.
56108         * posix/sched_setaffinity.c: Likewise.
56109         * posix/sched_setp.c: Likewise.
56110         * posix/sched_sets.c: Likewise.
56111         * posix/sched_yield.c: Likewise.
56112         * posix/setgid.c: Likewise.
56113         * posix/setlogin.c: Likewise.
56114         * posix/setpgid.c: Likewise.
56115         * posix/setresgid.c: Likewise.
56116         * posix/setresuid.c: Likewise.
56117         * posix/setsid.c: Likewise.
56118         * posix/setuid.c: Likewise.
56119         * posix/sleep.c: Likewise.
56120         * posix/spawni.c: Likewise.
56121         * posix/sysconf.c: Likewise.
56122         * posix/times.c: Likewise.
56123         * posix/wait.c: Likewise.
56124         * posix/wait3.c: Likewise.
56125         * posix/wait4.c: Likewise.
56126         * posix/waitpid.c: Likewise.
56127         * resolv/gai_sigqueue.c: Likewise.
56128         * resource/getpriority.c: Likewise.
56129         * resource/getrlimit.c: Likewise.
56130         * resource/getrusage.c: Likewise.
56131         * resource/nice.c: Likewise.
56132         * resource/setpriority.c: Likewise.
56133         * resource/setrlimit.c: Likewise.
56134         * resource/ulimit.c: Likewise.
56135         * rt/aio_cancel.c: Likewise.
56136         * rt/aio_fsync.c: Likewise.
56137         * rt/aio_read.c: Likewise.
56138         * rt/aio_sigqueue.c: Likewise.
56139         * rt/aio_suspend.c: Likewise.
56140         * rt/aio_write.c: Likewise.
56141         * rt/clock_getres.c: Likewise.
56142         * rt/clock_gettime.c: Likewise.
56143         * rt/clock_nanosleep.c: Likewise.
56144         * rt/clock_settime.c: Likewise.
56145         * rt/lio_listio.c: Likewise.
56146         * rt/mq_close.c: Likewise.
56147         * rt/mq_getattr.c: Likewise.
56148         * rt/mq_notify.c: Likewise.
56149         * rt/mq_open.c: Likewise.
56150         * rt/mq_receive.c: Likewise.
56151         * rt/mq_send.c: Likewise.
56152         * rt/mq_setattr.c: Likewise.
56153         * rt/mq_timedreceive.c: Likewise.
56154         * rt/mq_timedsend.c: Likewise.
56155         * rt/mq_unlink.c: Likewise.
56156         * rt/shm_open.c: Likewise.
56157         * rt/shm_unlink.c: Likewise.
56158         * rt/timer_create.c: Likewise.
56159         * rt/timer_delete.c: Likewise.
56160         * rt/timer_getoverr.c: Likewise.
56161         * rt/timer_gettime.c: Likewise.
56162         * rt/timer_settime.c: Likewise.
56163         * setjmp/__longjmp.c: Likewise.
56164         * setjmp/setjmp.c: Likewise.
56165         * signal/kill.c: Likewise.
56166         * signal/killpg.c: Likewise.
56167         * signal/raise.c: Likewise.
56168         * signal/sigaction.c: Likewise.
56169         * signal/sigaltstack.c: Likewise.
56170         * signal/sigblock.c: Likewise.
56171         * signal/sigignore.c: Likewise.
56172         * signal/sigintr.c: Likewise.
56173         * signal/signal.c: Likewise.
56174         * signal/sigpause.c: Likewise.
56175         * signal/sigpending.c: Likewise.
56176         * signal/sigqueue.c: Likewise.
56177         * signal/sigreturn.c: Likewise.
56178         * signal/sigset.c: Likewise.
56179         * signal/sigsetmask.c: Likewise.
56180         * signal/sigstack.c: Likewise.
56181         * signal/sigsuspend.c: Likewise.
56182         * signal/sigtimedwait.c: Likewise.
56183         * signal/sigvec.c: Likewise.
56184         * signal/sigwait.c: Likewise.
56185         * signal/sigwaitinfo.c: Likewise.
56186         * signal/sysv_signal.c: Likewise.
56187         * socket/accept.c: Likewise.
56188         * socket/accept4.c: Likewise.
56189         * socket/bind.c: Likewise.
56190         * socket/connect.c: Likewise.
56191         * socket/getpeername.c: Likewise.
56192         * socket/getsockname.c: Likewise.
56193         * socket/getsockopt.c: Likewise.
56194         * socket/isfdtype.c: Likewise.
56195         * socket/listen.c: Likewise.
56196         * socket/recv.c: Likewise.
56197         * socket/recvfrom.c: Likewise.
56198         * socket/recvmsg.c: Likewise.
56199         * socket/send.c: Likewise.
56200         * socket/sendmsg.c: Likewise.
56201         * socket/sendto.c: Likewise.
56202         * socket/setsockopt.c: Likewise.
56203         * socket/shutdown.c: Likewise.
56204         * socket/sockatmark.c: Likewise.
56205         * socket/socket.c: Likewise.
56206         * socket/socketpair.c: Likewise.
56207         * stdio-common/ctermid.c: Likewise.
56208         * stdio-common/cuserid.c: Likewise.
56209         * stdio-common/remove.c: Likewise.
56210         * stdio-common/rename.c: Likewise.
56211         * stdio-common/renameat.c: Likewise.
56212         * stdio-common/tempname.c: Likewise.
56213         * stdlib/getcontext.c: Likewise.
56214         * stdlib/makecontext.c: Likewise.
56215         * stdlib/setcontext.c: Likewise.
56216         * stdlib/swapcontext.c: Likewise.
56217         * stdlib/system.c: Likewise.
56218         * streams/fattach.c: Likewise.
56219         * streams/fdetach.c: Likewise.
56220         * streams/getmsg.c: Likewise.
56221         * streams/getpmsg.c: Likewise.
56222         * streams/putmsg.c: Likewise.
56223         * streams/putpmsg.c: Likewise.
56224         * sysdeps/unix/bsd/getpt.c: Likewise.
56225         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56226         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56227         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56229         Likewise.
56230         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56231         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56232         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56233         * sysvipc/msgctl.c: Likewise.
56234         * sysvipc/msgget.c: Likewise.
56235         * sysvipc/msgrcv.c: Likewise.
56236         * sysvipc/msgsnd.c: Likewise.
56237         * sysvipc/semctl.c: Likewise.
56238         * sysvipc/semget.c: Likewise.
56239         * sysvipc/semop.c: Likewise.
56240         * sysvipc/semtimedop.c: Likewise.
56241         * sysvipc/shmat.c: Likewise.
56242         * sysvipc/shmctl.c: Likewise.
56243         * sysvipc/shmdt.c: Likewise.
56244         * sysvipc/shmget.c: Likewise.
56245         * termios/tcdrain.c: Likewise.
56246         * termios/tcflow.c: Likewise.
56247         * termios/tcflush.c: Likewise.
56248         * termios/tcgetattr.c: Likewise.
56249         * termios/tcgetpgrp.c: Likewise.
56250         * termios/tcsendbrk.c: Likewise.
56251         * termios/tcsetattr.c: Likewise.
56252         * termios/tcsetpgrp.c: Likewise.
56253         * time/adjtime.c: Likewise.
56254         * time/clock.c: Likewise.
56255         * time/getitimer.c: Likewise.
56256         * time/gettimeofday.c: Likewise.
56257         * time/setitimer.c: Likewise.
56258         * time/settimeofday.c: Likewise.
56259         * time/stime.c: Likewise.
56260         * time/time.c: Likewise.
56261
56262 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56263
56264         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56265         /usr/old/bin.
56266
56267         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56268         instead of spaces.
56269         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56270
56271 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56272
56273         [BZ #14796]
56274         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56275         FE_TONEAREST before applying Dekker multiplication and Knuth
56276         addition.  Clear inexact exceptions and check for exact zero
56277         results afterwards.
56278         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56279         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56280         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56281         * math/libm-test.inc (fma_test): Add more tests.
56282         (fma_test_towardzero): Likewise.
56283         (fma_test_downward): Likewise.
56284         (fma_test_upward): Likewise.
56285         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56286         function.
56287         (libc_fesetround): New macro.
56288         (libc_fesetroundf): Likewise.
56289         (libc_fesetroundl): Likewise.
56290         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56291         function.
56292         (libc_fesetround_387): Likewise.
56293         (libc_fesetroundf): New macro.
56294         (libc_fesetround): Likewise.
56295         (libc_fesetroundl): Likewise.
56296         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56297         function.
56298         (libc_fesetroundf): New macro.
56299         (libc_fesetround): Likewise.
56300         (libc_fesetroundl): Likewise.
56301         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56302         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56303         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56304         libm_hidden_ver.
56305         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56306         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56307         libm_hidden_def.
56308         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56309         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56310         libm_hidden_ver.
56311         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56312         libm_hidden_def.
56313
56314         [BZ #3439]
56315         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56316         integer constant usable in #if and use that to give value to enum
56317         constant.
56318         (FE_DIVBYZERO): Likewise.
56319         (FE_UNDERFLOW): Likewise.
56320         (FE_OVERFLOW): Likewise.
56321         (FE_INVALID): Likewise.
56322         (FE_INVALID_SNAN): Likewise.
56323         (FE_INVALID_ISI): Likewise.
56324         (FE_INVALID_IDI): Likewise.
56325         (FE_INVALID_ZDZ): Likewise.
56326         (FE_INVALID_IMZ): Likewise.
56327         (FE_INVALID_COMPARE): Likewise.
56328         (FE_INVALID_SOFTWARE): Likewise.
56329         (FE_INVALID_SQRT): Likewise.
56330         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56331         (FE_TONEAREST): Likewise.
56332         (FE_TOWARDZERO): Likewise.
56333         (FE_UPWARD): Likewise.
56334         (FE_DOWNWARD): Likewise.
56335         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56336         (FE_DIVBYZERO): Likewise.
56337         (FE_OVERFLOW): Likewise.
56338         (FE_UNDERFLOW): Likewise.
56339         (FE_INEXACT): Likewise.
56340         (FE_TONEAREST): Likewise.
56341         (FE_DOWNWARD): Likewise.
56342         (FE_UPWARD): Likewise.
56343         (FE_TOWARDZERO): Likewise.
56344         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56345         (FE_UNDERFLOW): Likewise.
56346         (FE_OVERFLOW): Likewise.
56347         (FE_DIVBYZERO): Likewise.
56348         (FE_INVALID): Likewise.
56349         (FE_TONEAREST): Likewise.
56350         (FE_TOWARDZERO): Likewise.
56351         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56352         (FE_OVERFLOW): Likewise.
56353         (FE_UNDERFLOW): Likewise.
56354         (FE_DIVBYZERO): Likewise.
56355         (FE_INEXACT): Likewise.
56356         (FE_TONEAREST): Likewise.
56357         (FE_TOWARDZERO): Likewise.
56358         (FE_UPWARD): Likewise.
56359         (FE_DOWNWARD): Likewise.
56360         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56361         (FE_DIVBYZERO): Likewise.
56362         (FE_OVERFLOW): Likewise.
56363         (FE_UNDERFLOW): Likewise.
56364         (FE_INEXACT): Likewise.
56365         (FE_TONEAREST): Likewise.
56366         (FE_DOWNWARD): Likewise.
56367         (FE_UPWARD): Likewise.
56368         (FE_TOWARDZERO): Likewise.
56369
56370 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56371
56372         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56373
56374 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56375
56376         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56377         commands.  Quote $PWD.
56378         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56379         -x" by "export".
56380         (remove_newlines): Remove.
56381
56382 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56383
56384         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56385         * stdlib/stdlib.h (atof): Moved to ...
56386         * include/bits/stdlib-float.h: Here.  New file.
56387         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56388         * stdlib/bits/stdlib-float.h: New file.
56389         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56390         -mno-sse -mno-mmx.
56391         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56392         <xmmintrin.h>.
56393
56394 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56395
56396         * conform/conformtest.pl (@headers): Add fenv.h.
56397         * conform/data/fenv.h-data: New file.
56398         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56399         include of <math/fenv.h>.
56400
56401         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56402         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56403         && !UNIX98].  Enables tests for XOPEN2K8.
56404         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56405         POSIX2008]: Likewise.
56406
56407         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56408         (struct rusage): Do not expect type or its members.
56409
56410         [BZ #3439]
56411         * math/math.h (FP_NAN): Define macro to integer constant usable in
56412         #if and use that to give value to enum constant.
56413         (FP_INFINITE): Likewise.
56414         (FP_ZERO): Likewise.
56415         (FP_SUBNORMAL): Likewise.
56416         (FP_NORMAL): Likewise.
56417
56418 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56419
56420         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56421         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56422         arguments.
56423
56424 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56425
56426         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56427         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56428         autoconf-time if not.
56429         * configure.in: Remove AC_PREREQ.
56430
56431 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56432
56433         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56434         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56435         of the internal implementation.
56436
56437 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56438
56439         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56440         except include of <misc/sys/syslog.h>.
56441
56442 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56443
56444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56445         function returns with a NULL context exit with zero.
56446
56447 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56448
56449         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56450
56451 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56452
56453         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56454         (run_program_cmd): This.
56455         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56456         (tst_langinfo): New variable.  Use it.
56457
56458 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56459
56460         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56461         floating point opcodes.
56462
56463 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56464
56465         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56466         variable.
56467
56468         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56469
56470         * sysdeps/mach/hurd/powerpc: Remove directory.
56471         * sysdeps/mach/powerpc: Likewise.
56472
56473 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56474
56475         * scripts/check-local-headers.sh: Ignore c++ headers.
56476
56477 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56478
56479         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56480         __libc_cleanup_region_start argument.
56481
56482 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56483
56484         [BZ #14784]
56485         [BZ #14785]
56486         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56487         x * y using scaling, not as x * y + z.
56488         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56489         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56490         * math/libm-test.inc (fma_test): Add more tests.
56491         (fma_test_towardzero): Likewise.
56492         (fma_test_downward): Likewise.
56493         (fma_test_upward): Likewise.
56494
56495 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56496
56497         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56498
56499 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56500
56501         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56502         New variable.
56503
56504 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56505
56506         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56507
56508 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56509
56510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56511         Fix sort order.
56512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56513         Likewise.
56514
56515 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56516
56517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56518         Fix the order of the list for glibc 2.17.
56519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56520         Likewise.
56521
56522 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56523
56524         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56525
56526 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56527
56528         [BZ #14610]
56529         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56530         for low part of x being zero before using __atanl (y).
56531         * math/libm-test.inc (atan2_test): Add another test.
56532
56533         * manual/install.texi (Configuring and compiling): Document
56534         general use of test-wrapper and test-wrapper-env.
56535         * INSTALL: Regenerated.
56536
56537         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56538         (__fma): Do not extract and scale down low bits on after-rounding
56539         systems when result rounded to normal precision would have normal
56540         exponent.
56541         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56542         (__fmal): Do not extract and scale down low bits on after-rounding
56543         systems when result rounded to normal precision would have normal
56544         exponent.
56545         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56546         (__fmal): Do not extract and scale down low bits on after-rounding
56547         systems when result rounded to normal precision would have normal
56548         exponent.
56549         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56550         macro.
56551         (fma_test): Add more tests.
56552         (fma_test_towardzero): Likewise.
56553         (fma_test_downward): Likewise.
56554         (fma_test_upward): Likewise.
56555
56556 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56557
56558         * sysdeps/i386/tininess.h: Renamed to ...
56559         * sysdeps/x86/tininess.h: This.
56560         * sysdeps/x86_64/tininess.h: Removed.
56561
56562 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56563
56564         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56565         input.  Use $(build-program-cmd).
56566         ($(objpfx)tst-array1-static.out): Likewise.
56567         ($(objpfx)tst-array2.out): Likewise.
56568         ($(objpfx)tst-array3.out): Likewise.
56569         ($(objpfx)tst-array4.out): Likewise.
56570         ($(objpfx)tst-array5.out): Likewise.
56571         ($(objpfx)tst-array5-static.out): Likewise.
56572
56573 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56574
56575         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56576         if defined.
56577
56578         * nss/nsswitch.h (nss_interface_function): Provide new
56579         macro for use with NSS functions.
56580         * grp/initgroups.c: Use new macro.
56581         * nss/getXXbyYY.c: Likewise.
56582         * nss/getXXbyYY_r.c: Likewise.
56583         * nss/getXXent.c: Likewise.
56584         * nss/getXXent_r.c: Likewise.
56585         * sysdeps/posix/getaddrinfo.c: Likewise.
56586
56587 2012-10-30  Andreas Jaeger  <aj@suse.de>
56588
56589         * po/ru.po: Update Russion translation from translation project.
56590
56591 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56592
56593         [BZ #14152]
56594         [BZ #14783]
56595         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56596         result and shift together with sticky bit instead of replicating
56597         round-to-nearest rounding.
56598         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56599         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56600         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56601         missing underflow exceptions.
56602         (fma_test_towardzero): Add more tests.
56603         (fma_test_downward): Likewise.
56604         (fma_test_upward): Likewise.
56605
56606         [BZ #14047]
56607         * sysdeps/generic/tininess.h: New file.
56608         * sysdeps/i386/tininess.h: Likewise.
56609         * sysdeps/sh/tininess.h: Likewise.
56610         * sysdeps/x86_64/tininess.h: Likewise.
56611         * stdlib/tst-strtod-underflow.c: Likewise.
56612         * stdlib/tst-tininess.c: Likewise.
56613         * stdlib/strtod_l.c: Include <tininess.h>.
56614         (round_and_return): Do not set errno for exact underflow cases.
56615         Force an underflow exception when setting errno for underflow.
56616         Determine underflow based on rounding to normal precision if
56617         TININESS_AFTER_ROUNDING.
56618         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56619         ERANGE for exact underflow cases.
56620         * stdlib/Makefile (tests): Add tst-tininess and
56621         tst-strtod-underflow.
56622         ($(objpfx)tst-tininess): Use $(link-libm).
56623         ($(objpfx)tst-strtod-underflow): Likewise.
56624
56625 2012-10-30  Andreas Jaeger  <aj@suse.de>
56626
56627         [BZ#14767]
56628         * elf/Makefile (tests): Remove conditional for have-initfini-array
56629         since this is now always required and the variable does not exist
56630         anymore.
56631         (tests-static): Likewise.
56632         (modules-names): Likewise.
56633
56634         * po/eo.po: Add Esperanto translation from translation project.
56635
56636         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56637         merged with constructor/destructor.
56638         (init_array): Likewise.
56639         * elf/tst-array2dep.c (fini_array): Likewise.
56640         (init_array): Likewise.
56641
56642 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56643
56644         * manual/message.texi: Delete @cartouche tags.
56645
56646 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56647
56648         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56649         EOPNOTSUPP.
56650         * sysdeps/mach/hurd/fsync.c: Likewise.
56651
56652         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56653         [_POSIX_REALTIME_SIGNALS]: Change condition to
56654         [_POSIX_REALTIME_SIGNALS > 0].
56655
56656 2012-10-27  Andreas Jaeger  <aj@suse.de>
56657
56658         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56659         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56660         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56661         [__WORDSIZE != 64]: Likewise.
56662
56663 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56664
56665         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56666         *  iconvdata/tst-tables.sh: Likewise.
56667
56668 2012-10-25  David S. Miller  <davem@davemloft.net>
56669
56670         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56671         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56672         of strtoull.
56673
56674         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56675         ifunc-impl-list.c
56676         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56677         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56678         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56679         file.
56680
56681 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56682
56683         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56684         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56685         __getdirentries.
56686
56687 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56688             Jim Blandy  <jimb@codesourcery.com>
56689
56690         * scripts/cross-test-ssh.sh: New file.
56691         * manual/install.texi (Configuring and compiling): Document use of
56692         cross-test-ssh.sh.
56693         * INSTALL: Regenerated.
56694
56695 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56696
56697         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56698         EOPNOTSUPP.
56699
56700 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56701
56702         * Makeconfig (run-program-prefix): Fix comment.
56703
56704 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56705             Jim Blandy  <jimb@codesourcery.com>
56706
56707         * Makeconfig (test-wrapper): New variable,
56708         (test-wrapper-env): Likewise.
56709         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56710         (run-built-tests): Define to yes.
56711         (run-program-prefix): Use $(test-wrapper).
56712         (built-program-cmd): Likewise.
56713         * Rules (make-test-out): Use $(test-wrapper-env) and
56714         $(host-built-program-cmd).
56715         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56716         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56717         tst-pathopt.sh.
56718         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56719         $(test-wrapper-env) to tst-rtld-load-self.sh.
56720         ($(objpfx)order2.out): Use $(test-wrapper).
56721         ($(objpfx)tst-initorder.out): Likewise.
56722         ($(objpfx)tst-initorder2.out): Likewise.
56723         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56724         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56725         (test_wrapper_env): New variable.  Use it to run ld.so.
56726         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56727         Use it to run ld.so.
56728         (test_wrapper_env): Likewise.
56729         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56730         $(test-wrapper) to run-iconv-test.sh.
56731         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56732         (ICONV): Use $test_wrapper.
56733         * posix/Makefile ($(objpfx)globtest.out): Pass
56734         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56735         globtest.sh, not $(run-program-prefix).
56736         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56737         (test_wrapper): Likewise.
56738         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56739         set together with run_via_rtld_prefix.
56740         (run_program_prefix): Define in terms of test_wrapper and
56741         run_via_rtld_prefix.
56742
56743 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56744
56745         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56746         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56747         Targets removed.
56748
56749         [BZ #14743]
56750         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56751         Declare __clock_getres, __clock_gettime, __clock_settime,
56752         __clock_nanosleep, and __clock_getcpuclockid.
56753         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56754         Remove librt_hidden_def (clock_gettime).
56755         * sysdeps/unix/clock_gettime.c: Likewise.
56756         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56757         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56758         * rt/clock_getres.c: Define __clock_getres as an alias.
56759         * sysdeps/posix/clock_getres.c: Likewise.
56760         * rt/clock_settime.c: Define __clock_settime as an alias.
56761         * sysdeps/unix/clock_settime.c: Likewise.
56762         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56763         * sysdeps/unix/clock_nanosleep.c: Likewise.
56764         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56765         * rt/clock-compat.c: New file.
56766         * rt/Makefile (librt-routines): Add clock-compat and move
56767         $(clock-routines) to ...
56768         (routines): ... here, new variable.
56769         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56770         Don't add get_clockfreq here.
56771         * rt/Versions (libc: GLIBC_2.17): New version set.
56772         Add clock_* symbols here.
56773         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56774         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56775         (GLIBC_2.17): Add clock_* symbols.
56776         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56777         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56778         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56780         Likewise.
56781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56782         Likewise.
56783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56784         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56785         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56787         * NEWS: Mention the move.
56788
56789         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56790         Use __open, __read, __close rather than their public counterparts.
56791         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56792         (__get_clockfreq_via_cpuinfo): Likewise.
56793         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56794         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56795
56796         * config.h.in (HAVE_IFUNC): New #undef.
56797         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56798         was successful.
56799         * configure: Regenerated.
56800
56801 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56802
56803         * configure.in: Move READELF check to start of file.
56804         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56805         libc_cv_asm_gnu_indirect_function in the process.
56806         * configure: Regenerated.
56807
56808 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56809
56810         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56811         send the output to /dev/null.
56812         (libc_cv_cc_with_libunwind): Likewise.
56813         (libc_cv_as_noexecstack): Likewise.
56814         * configure: Regenerate.
56815
56816 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56817
56818         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56819
56820         * posix/globtest.sh (TMPDIR): Do not set.
56821         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56822         (testout): Likewise.
56823
56824 2012-10-24  Andreas Jaeger  <aj@suse.de>
56825
56826         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56827         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56828         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56829         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56830         posix_fadvise64, posix_fallocate64.
56831
56832         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56833         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56834         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56835         Likewise.
56836         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56837         Likewise.
56838         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56839
56840         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56841         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56842         <bits/fcntl-linux.h>.
56843         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56844
56845         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56846         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56847         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56848         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56849         [__WORDSIZE != 64]: Likewise.
56850
56851 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56852
56853         * Makeconfig (run-built-tests): New variable.
56854         * Rules [$(cross-compiling) = yes]: Change condition to
56855         [$(run-built-tests) = no].
56856         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56857         to [$(run-built-tests) = yes].
56858         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56859         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56860         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56861         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56862         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56863         * io/Makefile [$(cross-compiling) = no]: Likewise.
56864         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56865         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56866         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56867         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56868         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56869         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56870         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56871         * string/Makefile [$(cross-compiling) = no]: Likewise.
56872
56873         * posix/Makefile ($(objpfx)globtest.out): Pass
56874         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56875         $(rtld-installed-name).
56876         * posix/globtest.sh (elf_objpfx): Remove variable.
56877         (rtld_installed_name): Likewise.
56878         (library_path): Likewise.
56879         (run_program_prefix): New variable.  Use for running globtest
56880         binary.
56881
56882 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56883             Joseph Myers  <joseph@codesourcery.com>
56884
56885         * Makeconfig (host-built-program-cmd): New variable.
56886         * elf/Makefile (tst-stackguard1-ARGS): Use
56887         $(host-built-program-cmd).
56888         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56889         (tst-spawn-ARGS): Likewise.
56890         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56891
56892 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56893             Jim Blandy  <jimb@codesourcery.com>
56894
56895         * Makeconfig (run-via-rtld-prefix): New variable.
56896         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56897         (built-program-cmd): Likewise.
56898
56899 2012-10-22  Andreas Jaeger  <aj@suse.de>
56900
56901         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56902         __O_RSYNC if it exists, otherwise to O_SYNC.
56903
56904 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56905             Joseph Myers  <joseph@codesourcery.com>
56906
56907         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56908         /dev/null.
56909         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56910         from /dev/null
56911         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56912         /dev/null.
56913
56914 2012-10-22  Andreas Jaeger  <aj@suse.de>
56915
56916         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56917         Define always.
56918         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56919
56920         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56921         bits/fcntl-linux.h.
56922
56923         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56924         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56925
56926         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56927         to __O_LARGEFILE.
56928         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56929         to __O_LARGEFILE.
56930
56931 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56932             Joseph Myers  <joseph@codesourcery.com>
56933
56934         * config.make.in (NM): New variable.
56935
56936 2012-10-21  Andreas Jaeger  <aj@suse.de>
56937
56938         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56939         definitions and declarations that are provided by
56940         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56941
56942 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56943
56944         [BZ #14683]
56945         * elf/Makefile (tests-static): Add tst-leaks1-static.
56946         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56947         ($(objpfx)tst-leaks1-static): New rule.
56948         ($(objpfx)tst-leaks1-static-mem): Likewise.
56949         (tst-leaks1-static-ENV): New macro.
56950         * elf/dl-open.c (dl_open_worker): Check the main application
56951         only if SHARED is defined.
56952         * elf/tst-leaks1-static.c: New file.
56953
56954 2012-10-20  Andreas Jaeger  <aj@suse.de>
56955
56956         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56957         generic values for Linux.
56958         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56959         and declarations that are provided by <bits/fcntl-linux.h> and
56960         include <bits/fcntl-linux.h>.
56961         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56962         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56963
56964 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56965
56966         * io/fcntl.h: Move include of <bits/types.h> to the top and
56967         include it unconditionally.
56968
56969 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56970
56971         * wcsmbs/Makefile (tests-ifunc): New variable.
56972         (tests): Add $(tests-ifunc).
56973         * wcsmbs/test-wcschr-ifunc.c: New file.
56974         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56975         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56976         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56977         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56978         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56979
56980         * string/Makefile (tests-ifunc): New variable.
56981         (tests): Add $(tests-ifunc).
56982         * string/test-memccpy.c (TEST_NAME): New macro.
56983         * string/test-memchr.c (TEST_NAME): Likewise.
56984         * string/test-memcmp.c (TEST_NAME): Likewise.
56985         * string/test-memcpy.c (TEST_NAME): Likewise.
56986         * string/test-memmem.c (TEST_NAME): Likewise.
56987         * string/test-memmove.c (TEST_NAME): Likewise.
56988         * string/test-memset.c (TEST_NAME): Likewise.
56989         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56990         * string/test-stpcpy.c (TEST_NAME): Likewise.
56991         * string/test-stpncpy.c (TEST_NAME): Likewise.
56992         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56993         * string/test-strcasestr.c (TEST_NAME): Likewise.
56994         * string/test-strcat.c (TEST_NAME): Likewise.
56995         * string/test-strchr.c (TEST_NAME): Likewise.
56996         * string/test-strcmp.c(TEST_NAME): Likewise.
56997         * string/test-strcpy.c (TEST_NAME): Likewise.
56998         * string/test-strcspn.c (TEST_NAME): Likewise.
56999         * string/test-strlen.c (TEST_NAME): Likewise.
57000         * string/test-strncasecmp.c (TEST_NAME): Likewise.
57001         * string/test-strncmp.c (TEST_NAME): Likewise.
57002         * string/test-strncpy.c (TEST_NAME): Likewise.
57003         * string/test-strnlen.c (TEST_NAME): Likewise.
57004         * string/test-strpbrk.c (TEST_NAME): Likewise.
57005         * string/test-strrchr.c (TEST_NAME): Likewise.
57006         * string/test-strspn.c (TEST_NAME): Likewise.
57007         * string/test-strstr.c (TEST_NAME): Likewise.
57008         * string/test-bcopy-ifunc.c: New file.
57009         * string/test-bzero-ifunc.c: Likewise.
57010         * string/test-memccpy-ifunc.c: Likewise.
57011         * string/test-memchr-ifunc.c: Likewise.
57012         * string/test-memcmp-ifunc.c: Likewise.
57013         * string/test-memcpy-ifunc.c: Likewise.
57014         * string/test-memmem-ifunc.c: Likewise.
57015         * string/test-memmove-ifunc.c: Likewise.
57016         * string/test-mempcpy-ifunc.c: Likewise.
57017         * string/test-memset-ifunc.c: Likewise.
57018         * string/test-rawmemchr-ifunc.c: Likewise.
57019         * string/test-stpcpy-ifunc.c: Likewise.
57020         * string/test-stpncpy-ifunc.c: Likewise.
57021         * string/test-strcasecmp-ifunc.c: Likewise.
57022         * string/test-strcasestr-ifunc.c: Likewise.
57023         * string/test-strcat-ifunc.c: Likewise.
57024         * string/test-strchr-ifunc.c: Likewise.
57025         * string/test-strchrnul-ifunc.c: Likewise.
57026         * string/test-strcmp-ifunc.c: Likewise.
57027         * string/test-strcpy-ifunc.c: Likewise.
57028         * string/test-strcspn-ifunc.c: Likewise.
57029         * string/test-strlen-ifunc.c: Likewise.
57030         * string/test-strncasecmp-ifunc.c: Likewise.
57031         * string/test-strncat-ifunc.c: Likewise.
57032         * string/test-strncmp-ifunc.c: Likewise.
57033         * string/test-strncpy-ifunc.c: Likewise.
57034         * string/test-strnlen-ifunc.c: Likewise.
57035         * string/test-strpbrk-ifunc.c: Likewise.
57036         * string/test-strrchr-ifunc.c: Likewise.
57037         * string/test-strspn-ifunc.c: Likewise.
57038         * string/test-strstr-ifunc.c: Likewise.
57039
57040         * debug/Makefile (tests-ifunc): New variable.
57041         (tests): Add $(tests-ifunc).
57042         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
57043         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
57044         * debug/test-stpcpy_chk-ifunc.c: New file.
57045         * debug/test-strcpy_chk-ifunc.c: Likewise.
57046
57047 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57048
57049         [BZ #13601]
57050         * elf/dl-load.c (open_verify): Retry read if the entire ELF
57051         header is not read in.
57052
57053 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
57054
57055         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
57056         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
57057         directly.  Pass built executable to script as
57058         $(built-program-cmd).
57059         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
57060         $testprogram without using LD_LIBRARY_PATH and $ldso.
57061
57062         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
57063         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
57064         $(rtld-installed-name).
57065         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
57066         (rtld_installed_name): Likewise.
57067         (library_path): Likewise.
57068         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
57069         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
57070         $(run-program-prefix) to tst-tables.sh.
57071         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
57072         it to run tst-table-from and tst-table-to.
57073         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
57074         Pass it to tst-table.sh.
57075         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
57076         $(run-program-prefix) to tst-gettext.sh.
57077         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
57078         tst-translit.sh.
57079         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
57080         tst-gettext2.sh.
57081         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
57082         to run tst-gettext.
57083         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
57084         to run tst-gettext2.
57085         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
57086         to run tst-translit.
57087         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
57088         $(run-program-prefix) to tst-mtrace.sh.
57089         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
57090         to run tst-mtrace.
57091         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
57092         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
57093         $(rtld-installed-name).
57094         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
57095         (rtld_installed_name): Likewise.
57096         (run_program_prefix): New variable.  Use it to run wordexp-test.
57097
57098         * Makeconfig (ARCH): Remove all definitions.
57099         (machine): Likewise.
57100         [ARCH]: Remove conditional code.
57101         [!objdir]: Give error.
57102         [!objdir] (objpfx): Remove.
57103         [!objdir] (common-objpfx): Likewise.
57104         [!objdir] (common-objdir): Likewise.
57105         * configure.in (config_makefile): Remove.  Hardcode Makefile in
57106         AC_CONFIG_FILES call.
57107         * configure: Regenerated.
57108
57109         [BZ #13888]
57110         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
57111         or TMPDIR.
57112         (testout): Likewise.
57113
57114         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
57115         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
57116         $(rtld-installed-name).
57117         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
57118         (rtld_installed_name): Likwise.
57119         (runit): Remove function.
57120         (run_getconf): New variable,  Use it for running getconf binary.
57121
57122 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
57123
57124         [BZ #14716]
57125         * string/test-memmem.c (check_result): New function.
57126         (do_one_test): Use it.
57127         (check1): New function.
57128         (test_main): Use it.
57129
57130 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57131
57132         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57133
57134 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57135
57136         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57137         (_G_LSEEK64): Likewise.
57138         (_G_MMAP64): Likewise.
57139         (_G_FSTAT64): Likewise.
57140         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57141         (_G_LSEEK64): Likewise.
57142         (_G_MMAP64): Likewise.
57143         (_G_FSTAT64): Likewise.
57144         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57145         unconditional.  Call __mmap64 directly.
57146         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57147         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57148         __lseek64 directly.
57149         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57150         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57151         __mmap64 directly.
57152         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57153         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57154         __lseek64 directly.
57155         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57156         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57157         __lseek64 directly.
57158         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57159         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57160         __lseek64 directly.
57161         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57162         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57163         __fxstat64 directly.
57164         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57165         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57166         unconditional.
57167         (freopen64) [!_G_OPEN64]: Remove conditional code.
57168         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57169         unconditional.
57170         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57171         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57172         unconditional.
57173         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57174         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57175         unconditional.
57176         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57177         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57178         unconditional.
57179         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57180         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57181         unconditional.
57182         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57183         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57184         unconditional.
57185         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57186         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57187         unconditional.
57188         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57189
57190 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57191
57192         [BZ #12140]
57193         * manual/memory.texi (Malloc Tunable Parameters): Add note
57194         about free list pointers overwriting some perturb bytes.
57195         Wording suggested by Roland McGrath.
57196
57197 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57198
57199         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57200         (lgamma_test): Likewise.
57201         (tgamma_test): Likewise.
57202
57203 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57204
57205         [BZ #14700]
57206         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57207         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57208
57209 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57210
57211         * NEWS: Mention BZ #14716.
57212         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57213         when removing AVAILABLE1_USES_J macro.
57214
57215 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57216
57217         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57218         (__bswap_64): __uint64_t for unsigned 64-bit int.
57219
57220 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57221
57222         * include/string.h (memmem): Declare libc hidden alias.
57223         * string/memmem.c (memmem): Define libc hidden alias.
57224         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57225         __read, __close instead of open, read, close.
57226
57227 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57228
57229         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57230         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57231         global and hidden.
57232         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57233         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57234         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57235         Likewise.
57236         (__rawmemchr_sse2): Likewise.
57237         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57238         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57239         (__strchr_sse2): Likewise.
57240         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57241         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57242         (__strcasecmp_sse2): Likewise.
57243         (__strncasecmp_sse2): Likewise.
57244         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57245         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57246         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57247         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57248         (__strrchr_sse2): Likewise.
57249         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57250         ifunc-impl-list.c.
57251         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57252         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57253         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57254         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57255         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57256         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57257         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57258         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57259         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57260         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57261         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57262         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57263         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57264         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57265         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57266         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57267         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57268         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57269         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57270         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57271         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57272         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57273         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57274         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57275         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57276         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57277         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57278         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57279         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57280         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57281
57282         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57283         global and hidden.
57284         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57285         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57286         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57287         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57288         Likewise.
57289         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57290         Likewise.
57291         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57292         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57293         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57294         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57295         ifunc-impl-list.c.
57296         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57297         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57298         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57299         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57300         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57301         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57302         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57303         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57304         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57305         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57306         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57307         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57308         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57309         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57310         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57311         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57312         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57313         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57314         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57315         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57316         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57317         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57318         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57319         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57320         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57321         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57322         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57323         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57324         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57325         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57326         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57327         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57328         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57329         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57330         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57331         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57332         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57333         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57334         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57335         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57336         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57337
57338         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57339         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57340         * include/ifunc-impl-list.h: New file.
57341         * misc/ifunc-impl-list.c: Likewise.
57342         * misc/Makefile (routines): Add ifunc-impl-list.
57343         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57344         * string/test-string.h: Include <ifunc-impl-list.h>.
57345         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57346         TEST_NAME]: New variables.
57347         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57348         are defined.
57349         (test_init): Call __libc_ifunc_impl_list to initialize
57350         func_list if TEST_IFUNC and TEST_NAME are defined.
57351
57352         * string/Makefile (strop-tests): Add bcopy and bzero.
57353         * string/test-bcopy.c: New file.
57354         * string/test-bzero.c: Likewise.
57355         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57356         defined.
57357         * string/test-memset.c: Support bzero test if TEST_BZERO is
57358         defined.
57359         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57360         __libc_memmove.
57361         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57362         __libc_memset.
57363         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57364         of memset.
57365
57366 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57367
57368         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57369         * configure: Regenerated.
57370
57371         * Makeconfig (+link-static-before-libc): Don't include
57372         $(link-static-libc).
57373
57374         * libio/libio.h (_IO_pos_t): Remove.
57375
57376 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57377
57378         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57379         McGrath.
57380
57381 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57382
57383         * crypt/crypt-entry.c: Include fips-private.h.
57384         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57385         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57386         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57387         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57388
57389 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57390
57391         * crypt/crypt-private.h: Include stdbool.h.
57392         (_ufc_setup_salt_r): Return bool.
57393         * crypt/crypt-entry.c: Include errno.h.
57394         (__crypt_r): Return NULL with EINVAL for bad salt.
57395         * crypt/crypt_util.c (bad_for_salt): New.
57396         (_ufc_setup_salt_r): Check that salt is long enough and within
57397         the specified alphabet.
57398         * crypt/badsalttest.c: New file.
57399         * crypt/Makefile (tests): Add it.
57400         ($(objpfx)badsalttest): New.
57401
57402 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57403
57404         * NEWS: Add entry for BZ #14602.
57405
57406 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57407
57408         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57409         type-generic.
57410         * math/libm-test.inc: Update comment listing what functions and
57411         macros are tested.
57412         (isgreater_test): New function.
57413         (isgreaterequal_test): Likewise.
57414         (isless_test): Likewise.
57415         (islessequal_test): Likewise.
57416         (islessgreater_test): Likewise.
57417         (isunordered_test): Likewise.
57418         (main): Call the new functions.
57419
57420 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57421
57422         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57423         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57424         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57425         * sysdeps/i386/configure: Regenerated.
57426         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57427         * sysdeps/mach/configure: Regenerated.
57428         * sysdeps/mach/hurd/configure: Regenerated.
57429         * sysdeps/powerpc/configure: Regenerated.
57430         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57431         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57432         * sysdeps/s390/s390-32/configure: Regenerated.
57433         * sysdeps/s390/s390-64/configure: Regenerated.
57434         * sysdeps/sh/configure: Regenerated.
57435         * sysdeps/sparc/configure: Regenerated.
57436         * sysdeps/unix/sysv/linux/configure: Regenerated.
57437         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57438         * sysdeps/x86_64/configure: Regenerated.
57439
57440         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57441         defined.  Don't check if MAP is NULL.
57442
57443 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57444
57445         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57446         (_G_stat64): Likewise.
57447         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57448         (_G_stat64): Likewise.
57449         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57450         instead of struct _G_stat64.
57451         * libio/fileops.c (mmap_remap_check): Likewise.
57452         (decide_maybe_mmap): Likewise.
57453         (_IO_new_file_seekoff): Likewise.
57454         (_IO_file_stat): Likewise.
57455         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57456         _G_off64_t.
57457         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57458         instead of struct _G_stat64.
57459         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57460
57461 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57462
57463         [BZ #14602]
57464         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57465         Replace with ...
57466         (CHECK_EOL): New macro.
57467         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57468         CHECK_EOL.
57469         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57470         Replace with CHECK_EOL.
57471         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57472         Replace with CHECK_EOL.
57473
57474 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57475
57476         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57477         type-generic.
57478         * math/libm-test.inc: Update comment listing what functions and
57479         macros are tested.
57480         (finite_test): New function.
57481         (isinf_test): Likewise.
57482         (isnan_test): Likewise.
57483         (fpclassify_test): Test subnormal input.
57484         (isfinite_test): Likewise.
57485         (isnormal_test): Likewise.
57486         (main): Call the new functions.
57487
57488 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57489
57490         [BZ #14660]
57491         * Makerules (%.dynsym): Force C locale when running
57492         $(OBJDUMP) --dynamic-syms.
57493
57494 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57495
57496         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57497         <stdint.h>.
57498
57499 2012-10-06  David S. Miller  <davem@davemloft.net>
57500
57501         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57502         upper 32-bits of the length value in %o2 since we use branch-on-register
57503         tests which consider the entire 64-bit register.
57504
57505 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57506
57507         * string/test-strstr.c (check2): Add a test for page boundary.
57508
57509 2012-10-05  David S. Miller  <davem@davemloft.net>
57510
57511         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57512         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57513         file.
57514         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57515         sysdep_routines.
57516         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57517         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57518         and bzero when HWCAP_SPARC_CRYPTO is present.
57519
57520 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57521
57522         [BZ #14602]
57523         * string/test-strstr.c (check2): New function.
57524         (test_main): Call check2.
57525
57526         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57527         and bug-strchr1.
57528         * string/bug-strcasestr1.c (do_test): Moved to ...
57529         * string/test-strcasestr.c (check1): Here.  New function.
57530         (do_one_test): Break out result checking code into ...
57531         (check_result): This.  New function.
57532         (do_one_test): Call check_result.
57533         (test_main): Call check1.
57534         * string/bug-strchr1.c (do_test): Moved to ...
57535         * string/test-strchr.c (check1): Here.  New function.
57536         (do_one_test): Break out result checking code into ...
57537         (check_result): This.  New function.
57538         (do_one_test): Call check_result.
57539         (test_main): Call check1.
57540         * string/bug-strstr1.c (main): Moved to ...
57541         * string/test-strstr.c (check1): Here.  New function.
57542         (do_one_test): Break out result checking code into ...
57543         (check_result): This.  New function.
57544         (do_one_test): Call check_result.
57545         (test_main): Call check1.
57546         * string/bug-strcasestr1.c: Removed.
57547         * string/bug-strchr1.c: Likewise.
57548         * string/bug-strstr1.c: Likewise.
57549
57550         * elf/Makefile (dl-routines): Add hwcaps.
57551         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57552         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57553         (_dl_important_hwcaps): Moved to ...
57554         * elf/dl-hwcaps.c: Here.  New file.
57555         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57556
57557         [BZ #14557]
57558         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57559         if IS_IN_rtld isn't defined.
57560
57561         * elf/dl-support.c (_dl_sysinfo_map): New.
57562         Include "get-dynamic-info.h" and "setup-vdso.h".
57563         (_dl_non_dynamic_init): Call setup_vdso.
57564         * elf/dynamic-link.h: Don't include <assert.h>.
57565         (elf_get_dynamic_info): Moved to ...
57566         * elf/get-dynamic-info.h: Here.  New file.
57567         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57568         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57569         * elf/setup-vdso.h: Here.  New file.
57570         * elf/rtld.c: Include "setup-vdso.h".
57571         (dl_main): Call setup_vdso.
57572
57573 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57574
57575         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57576         creal in comment listing functions tested.  List finite, isinf,
57577         isnan, isless, islessequal, isgreater, isgreaterequal,
57578         islessgreater, isunordered, lgamma_r and pow10 as functions and
57579         macros not tested.  Mention which functions not tested are aliases
57580         for other functions.  Fix typo.  Note that signs of NaNs are not
57581         tested.
57582
57583         * scripts/config.guess: Update from config.git.
57584         * scripts/config.sub: Likewise.
57585
57586 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57587
57588         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57589         * misc/madvise.c (madvise): Renamed to __madvise.
57590         Make madvise a weak alias.
57591         * include/sys/mman.h: Declare __madvise.
57592         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57593         * sysdeps/unix/syscalls.list
57594         (madvise): Make __madvise the strong name, and madvise a weak alias.
57595         * sysdeps/unix/sysv/linux/syscalls.list
57596         (madvise, mmap): Remove redundant entries.
57597         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57598         * malloc/malloc.c (mtrim): Likewise.
57599         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57600
57601 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57602
57603         * sysdeps/mach/hurd/dl-cache.c: File removed.
57604         * config.h.in (USE_LDCONFIG): New #undef.
57605         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57606         * configure: Regenerated.
57607         * elf/Makefile (dl-routines): Add dl-cache only under
57608         [$(use-ldconfig) = yes].
57609         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57610         cache on [USE_LDCONFIG].
57611         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57612         [USE_LDCONFIG].
57613         * elf/rtld.c (dl_main): Likewise.
57614
57615 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57616
57617         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57618         _SC_LEVEL4_CACHE_LINESIZE.
57619
57620 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57621
57622         * sysdeps/unix/bsd/confstr.h: File removed.
57623
57624 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57625
57626         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57627         sys/sdt-config.h.
57628
57629 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57630
57631         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57632         Make 'mapoff' field ElfW(Off) rather than off_t.
57633
57634 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57635
57636         * nscd/Makefile: Remove nscd-cflags and all its users.
57637         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57638         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57639
57640         [BZ #10631]
57641         * malloc.c (malloc_printerr): Clarify error message.
57642
57643 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57644
57645         [BZ #14648]
57646         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57647         Set bit_FMA_Usable if FMA is supported.
57648         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57649         macro.
57650         (bit_FMA4_Usable): Updated.
57651         (index_FMA_Usable): New macro.
57652         (CPUID_FMA): Likewise.
57653         (HAS_FMA): Defined with bit_FMA_Usable.
57654
57655 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57656
57657         * bits/types.h (__swblk_t): Type removed.
57658         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57659         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57660         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57661         (__SWBLK_T_TYPE): Likewise.
57662         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57663         (__SWBLK_T_TYPE): Likewise.
57664         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57665         (__SWBLK_T_TYPE): Likewise.
57666         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57667         (__SWBLK_T_TYPE): Likewise.
57668
57669 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57670             Honza Horak <hhorak@redhat.com>
57671
57672         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57673         (xdr_mapname): Use YPMAXMAP as maxsize.
57674         (xdr_peername): Use YPMAXPEER as maxsize.
57675         (xdr_keydat): Use YPAXRECORD as maxsize.
57676         (xdr_valdat): Use YPMAXRECORD as maxsize.
57677
57678 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57679
57680         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57681
57682         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57683         * csu/init-first.c: ... here.
57684         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57685         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57686         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57687         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57688         * sysdeps/i386/init-first.c: File removed.
57689         * sysdeps/sh/init-first.c: File removed.
57690
57691 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57692
57693         [BZ #14645]
57694         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57695         if x * y might underflow to zero and z is zero.
57696         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57697         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57698         * math/libm-test.inc (min_subnorm_value): New variable.
57699         (fma_test): Add more tests.
57700         (fma_test_towardzero): Likewise.
57701         (fma_test_downward): Likewise.
57702         (fma_test_upward): Likewise.
57703         (initialize): Set min_subnorm_value.
57704
57705 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57706
57707         [BZ #14638]
57708         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57709         0 + 0.
57710         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57711         mode for addition resulting in exact zero.
57712         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57713         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57714         exact 0 + 0.
57715         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57716         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57717         * math/libm-test.inc (fma_test): Add more tests.
57718         (fma_test_towardzero): New function.
57719         (fma_test_downward): Likewise.
57720         (fma_test_upward): Likewise.
57721         (main): Call the new functions.
57722
57723 2012-09-28  David S. Miller  <davem@davemloft.net>
57724
57725         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57726
57727 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57728
57729         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57730         instead of SIGALRM.
57731
57732         * sysdeps/gnu/_G_config.h: Moved to ...
57733         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57734         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57735         * sysdeps/generic/_G_config.h: ... here.
57736
57737         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57738
57739         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57740
57741         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57742         Conditionalize target on [libnss_test1.so-version].
57743
57744         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57745
57746         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57747         (elfobjdir): Move out of conditionals.
57748
57749         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57750         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57751         (__nss_lookup_function): Conditionalize label remove_from_tree on
57752         [!DO_STATIC_NSS || SHARED], matching its only use.
57753
57754 2012-09-28  David S. Miller  <davem@davemloft.net>
57755
57756         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57757         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57758         file.
57759         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57760         sysdep_routines.
57761         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57762         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57763         when HWCAP_SPARC_CRYPTO is present.
57764
57765 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57766
57767         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57768
57769 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57770
57771         [BZ #6530]
57772         * stdio-common/vfprintf.c (process_string_arg): Revert
57773         2000-07-22 change.
57774
57775 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57776
57777         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57778         for testcase.
57779         * stdio-common/tst-sprintf.c: Include <locale.h>
57780         (main): Test sprintf's handling of incomplete multibyte
57781         characters.
57782
57783 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57784
57785         * elf/dl-runtime.c (VERSYMIDX): Removed.
57786         * elf/dl-version.c (VERSYMIDX): Likewise.
57787         * elf/do-rel.h (VERSYMIDX): Likewise.
57788         (VALIDX): Likewise.
57789         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57790         * elf/rtld.c (VALIDX): Likewise.
57791         (ADDRIDX): Likewise.
57792         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57793         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57794         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57795         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57796         (VALIDX): Likewise.
57797         (ADDRIDX): Likewise.
57798
57799 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57800
57801         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57802
57803 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57804
57805         [BZ #11438]
57806         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57807         to global scope.
57808         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57809         addresses are in the same scope as 192.0.2/24.
57810         * posix/gai.conf: Document new scope table defaults.
57811
57812 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57813
57814         [BZ #5298]
57815         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57816         for ftell.  Compute offsets from write pointers instead.
57817         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57818
57819 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57820
57821         [BZ #14543]
57822         * libio/Makefile (tests): New test case tst-fseek.
57823         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57824         combination works in wide mode.
57825         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57826         state when the external buffer state changes.
57827
57828 2012-09-27  David S. Miller  <davem@davemloft.net>
57829
57830         [BZ #14376]
57831         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57832         pass reloc->r_addend in as the 'high' argument to
57833         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57834
57835         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57836
57837 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57838
57839         * rt/tst-aio2.c: Include <pthread.h>.
57840         * rt/tst-aio3.c: Likewise.
57841
57842 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57843
57844         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57845
57846 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57847
57848         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57849         contents on [SHARED].
57850
57851 2012-09-26  Marek Polacek  <polacek@redhat.com>
57852
57853         [BZ #14530]
57854         [BZ #13741]
57855         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57856         for C++ and GCC <4.3 as well as for non GCC compilers.
57857
57858 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57859
57860         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57861
57862 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57863
57864         * Makefile.in (all, install): Declare with .PHONY.
57865         Reported by Michael Hope <michael.hope@linaro.org>.
57866
57867 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57868
57869         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57870         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57871         system header.
57872         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57873         Likewise.
57874         (sydep_routines): Add the new and the internal functions.
57875         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57876         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57878         (GLIBC_2.17): Add the new function.
57879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57880         (GLIBC_2.17): Likewise.
57881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57882         (GLIBC_2.17): Likewise.
57883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57884         (GLIBC_2.17): Likewise.
57885         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57886
57887 2012-09-25  Alan Modra  <amodra@gmail.com>
57888
57889         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57890         Add release barrier before setting once_control to say
57891         initialisation is done.  Add hints on lwarx.  Use macro in
57892         place of isync.
57893         (clear_once_control): Add release barrier.
57894
57895 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57896
57897         [BZ #13629]
57898         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57899         specially.
57900         * math/s_clog10.c (__clog10): Likewise.
57901         * math/s_clog10f.c (__clog10f): Likewise.
57902         * math/s_clog10l.c (__clog10l): Likewise.
57903         * math/s_clogf.c (__clogf): Likewise.
57904         * math/s_clogl.c (__clogl): Likewise.
57905         * math/Makefile (libm-calls): Add x2y2m1.
57906         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57907         (__x2y2m1): Likewise.
57908         (__x2y2m1l): Likewise.
57909         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57910         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57911         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57912         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57913         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57914         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57915         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57916         * sysdeps/i386/fpu/libm-test-ulps: Update.
57917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57918
57919         [BZ #14621]
57920         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57921         int as type of variable DEPTH.
57922         (glob): Use size_t instead of int as type of variables NEWCOUNT
57923         and OLD_PATHC.
57924
57925 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57926
57927         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57928         Add s_sincosf-sse2.
57929         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57930         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57931         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57932         macros for using routine as __sincosf_ia32.
57933         Use macro for function declaration and weak_alias.
57934         * sysdeps/i386/fpu/libm-test-ulps: Update.
57935
57936         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57937         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57938
57939         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57940         subnormal argument.
57941         * math/s_cexpf.c (__cexpf): Likewise.
57942         * math/s_csinf.c (__csinf): Likewise.
57943         * math/s_csinhf.c (__csinhf): Likewise.
57944         * math/s_ctanf.c (__ctanf): Likewise.
57945         * math/s_ctanhf.c (__ctanhf): Likewise.
57946         * math/s_ccosh.c (__ccoshf): Likewise.
57947         * math/s_cexp.c (__cexpl): Likewise.
57948         * math/s_csin.c (__csin): Likewise.
57949         * math/s_csinh.c (__csinh): Likewise.
57950         * math/s_ctan.c (__ctan): Likewise.
57951         * math/s_ctanh.c (ctanh): Likewise.
57952         * math/s_ccoshl.c (__ccoshl): Likewise.
57953         * math/s_cexpl.c (__cexpl): Likewise.
57954         * math/s_csinl.c (__csinl): Likewise.
57955         * math/s_csinhl.c (__csinhl): Likewise.
57956         * math/s_ctanl.c (__ctanl): Likewise.
57957         * math/s_ctanhl.c (__ctanhl): Likewise.
57958
57959 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57960
57961         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57962         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57963         (_IO_off_t): Define to __off_t, not _G_off_t.
57964         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57965         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57966         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57967         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57968         type of __dummy and __dummy2 fields.
57969         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57970         (_G_ssize_t): Likewise.
57971         (_G_off_t): Likewise.
57972         (_G_pid_t): Likewise.
57973         (_G_uid_t): Likewise.
57974         (_G_wchar_t): Likewise.
57975         (_G_wint_t): Likewise.
57976         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57977         (_G_ssize_t): Likewise.
57978         (_G_off_t): Likewise.
57979         (_G_pid_t): Likewise.
57980         (_G_uid_t): Likewise.
57981         (_G_wchar_t): Likewise.
57982         (_G_wint_t): Likewise.
57983         * sysdeps/mach/hurd/_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
57991 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57992
57993         * malloc/arena.c: Include malloc-sysdep.h.
57994         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57995         is sufficient to shrink the heap or an unmap is needed.
57996         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57997         new function check_may_shrink_heap.
57998         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57999         new function check_may_shrink_heap.
58000
58001 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
58002
58003         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
58004         comments.
58005
58006 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
58007
58008         * catgets/test-gencat.sh: Add "set -e".
58009         * elf/tst-pathopt.sh: Likewise.
58010         * grp/tst_fgetgrent.sh: Likewise.
58011         * iconvdata/run-iconv-test.sh: Likewise.
58012         * intl/tst-gettext.sh: Likewise.
58013         * intl/tst-gettext2.sh: Likewise.
58014         * intl/tst-gettext4.sh: Likewise.
58015         * intl/tst-gettext6.sh: Likewise.
58016         * intl/tst-translit.sh: Likewise.
58017         * io/ftwtest-sh: Likewise.
58018         * libio/test-freopen.sh: Likewise.
58019         * malloc/tst-mtrace.sh: Likewise.
58020         * posix/globtest.sh: Likewise.
58021         * posix/tst-getconf.sh: Likewise.
58022         * posix/wordexp-tst.sh: Likewise.
58023         * stdio-common/tst-printf.sh: Likewise.
58024         * stdio-common/tst-unbputc.sh: Likewise.
58025         * stdlib/tst-fmtmsg.sh: Likewise.
58026         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58027         * catgets/Makefile: Do not specify -e option when running
58028         testsuite shell scripts.
58029         * elf/Makefile: Likewise.
58030         * grp/Makefile: Likewise.
58031         * iconvdata/Makefile: Likewise.
58032         * intl/Makefile: Likewise.
58033         * io/Makefile: Likewise.
58034         * libio/Makefile: Likewise.
58035         * malloc/Makefile: Likewise.
58036         * posix/Makefile: Likewise.
58037         * stdio-common/Makefile: Likewise.
58038         * stdlib/Makefile: Likewise.
58039         * sysdeps/x86_64/Makefile: Likewise.
58040
58041         * io/ftwtest-sh: Add copyright header.
58042         * posix/globtest.sh: Likewise.
58043         * posix/tst-getconf.sh: Likewise.
58044         * posix/wordexp-tst.sh: Likewise.
58045         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58046
58047 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
58048
58049         [BZ #13679]
58050         * Makeconfig (+link): Defined as $(+link-static) if
58051         $(build-shared) isn't yes.
58052         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
58053         isn't yes.
58054         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
58055
58056         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
58057
58058         [BZ #14562]
58059         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
58060         new chunk size with MALLOC_ALIGN_MASK.
58061
58062 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
58063
58064         [BZ #5044]
58065         * stdio-common/printf_fphex.c: Include <stdbool.h> and
58066         <rounding-mode.h>.
58067         (__printf_fphex): Determine rounding using get_rounding_mode and
58068         round_away.
58069         * stdio-common/tst-printf-round.c (struct hex_test): New
58070         structure.
58071         (hex_tests): New variable.
58072         (test_hex_in_one_mode): New function.
58073         (do_test): Also run tests for hex float output.
58074
58075 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
58076
58077         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58078         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58079         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
58080         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58081         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58082         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
58083         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58084         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58085
58086 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
58087
58088         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
58089         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
58090         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
58091         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
58092
58093 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
58094
58095         [BZ #14579]
58096         * elf/rtld.c (dl_main): Limit the check for self loading to normal
58097         mode only.
58098         * elf/tst-rtld-load-self.sh: New test.
58099         * elf/Makefile: Run it.
58100
58101 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
58102
58103         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
58104         (tst-writev-ENV): Remove.
58105         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
58106
58107 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
58108
58109         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
58110
58111 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58112
58113         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
58114         unconditional.
58115         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
58116         Likewise.
58117         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
58118         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
58119         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
58120         Likewise.
58121
58122 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
58123
58124         [BZ #14587]
58125         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58126         * config.make.in (have-cpp-asm-debuginfo): Removed.
58127         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58128         * configure: Regenerated.
58129
58130 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58131
58132         [BZ #5044]
58133         * stdio-common/printf_fp.c: Include <stdbool.h> and
58134         <rounding-mode.h>.
58135         (___printf_fp): Determine rounding using get_rounding_mode and
58136         round_away.
58137         * stdio-common/tst-printf-round.c: New file.
58138         * stdio-common/Makefile (tests): Add tst-printf-round.
58139         (link-libm): New variable.
58140         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58141
58142 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58143
58144         [BZ #14576]
58145         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58146         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58147         Likewise.
58148         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58149         Likewise.
58150
58151 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58152
58153         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58154         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58155         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58156         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58157
58158 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58159
58160         [BZ #14518]
58161         * include/rounding-mode.h: New file.
58162         * sysdeps/generic/get-rounding-mode.h: Likewise.
58163         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58164         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58165         (MAX_VALUE): New macro.
58166         (MIN_VALUE): Likewise.
58167         (overflow_value): New function.
58168         (underflow_value): Likewise.
58169         (round_and_return): Use overflow_value and underflow_value to
58170         determine return values in overflow and underflow cases.  Use
58171         round_away to determine rounding depending on rounding mode.
58172         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58173         determine return values in overflow and underflow cases.
58174         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58175         (struct test_results): New structure.
58176         (struct test): Use struct test_results to store expected results
58177         for all rounding modes.
58178         (TEST): Include expected results for all rounding modes.
58179         (test_in_one_mode): New function.
58180         (do_test): Use test_in_one_mode to compute and check results.
58181         Check results for all rounding modes.
58182         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58183         $(link-libm).
58184
58185 2012-12-09  Allan McRae  <allan@archlinux.org>
58186
58187         * sysdeps/i386/fpu/libm-test-ulps: Update
58188
58189 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58190
58191         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58192         (_G_int32_t): Likewise.
58193         (_G_uint16_t): Likewise.
58194         (_G_uint32_t): Likewise.
58195         (_G_HAVE_BOOL): Likewise.
58196         (_G_HAVE_ATEXIT): Likewise.
58197         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58198         (_G_HAVE_IO_FILE_OPEN): Likewise.
58199         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58200         (_G_int32_t): Likewise.
58201         (_G_uint16_t): Likewise.
58202         (_G_uint32_t): Likewise.
58203         (_G_HAVE_BOOL): Likewise.
58204         (_G_HAVE_ATEXIT): Likewise.
58205         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58206         (_G_HAVE_IO_FILE_OPEN): Likewise.
58207         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58208         (_G_int32_t): Likewise.
58209         (_G_uint16_t): Likewise.
58210         (_G_uint32_t): Likewise.
58211         (_G_HAVE_BOOL): Likewise.
58212         (_G_HAVE_ATEXIT): Likewise.
58213         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58214         (_G_HAVE_IO_FILE_OPEN): Likewise.
58215
58216 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58217
58218         * csu/libc-tls.c: Update copyright years.
58219
58220 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58221
58222         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58223         [!_G_USING_THUNKS]: Remove conditional code.
58224         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58225         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58226
58227         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58228         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58229         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58230         (_G_VTABLE_LABEL_PREFIX): Likewise.
58231         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58232         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58233         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58234         (_G_VTABLE_LABEL_PREFIX): Likewise.
58235         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58236         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58237         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58238         (_G_VTABLE_LABEL_PREFIX): Likewise.
58239         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58240
58241 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58242
58243         * libio/Makefile: Include ../Makeconfig before tests.
58244         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58245         only if $(build-shared) is yes.
58246
58247         * iconv/gconv_db.c: Update copyright years.
58248
58249 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58250
58251         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58252         unwind info if defined PIC. Fix special cases description.
58253         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58254
58255         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58256         DP_HI_MASK entry.
58257         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58258
58259 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58260
58261         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58262
58263         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58264         is NULL.
58265
58266         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58267         (LDLIBS-tst-chk4): This.
58268         (LDFLAGS-tst-chk5): Renamed to ...
58269         (LDLIBS-tst-chk5): This.
58270         (LDFLAGS-tst-chk6): Renamed to ...
58271         (LDLIBS-tst-chk6): This.
58272         (LDFLAGS-tst-lfschk4): Renamed to ...
58273         (LDLIBS-tst-lfschk4): This.
58274         (LDFLAGS-tst-lfschk5): Renamed to ...
58275         (LDLIBS-tst-lfschk5): This.
58276         (LDFLAGS-tst-lfschk6): Renamed to ...
58277         (LDLIBS-tst-lfschk6): This.
58278
58279         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58280         on $(common-objpfx)soversions.mk.
58281
58282 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58283
58284         [BZ #10014]
58285         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58286         example host name.
58287
58288 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58289
58290         * malloc/arena.c (arena_get_retry): New function that gets
58291         another arena for the caller to try its request on.
58292         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58293         current arena cannot fulfill the request.
58294         (__libc_memalign): Likewise.
58295         (__libc_memalign): Likewise.
58296         (__libc_pvalloc): Likewise.
58297         (__libc_calloc): Likewise.
58298
58299 2012-09-05  John Tobey  <john.tobey@gmail.com>
58300
58301         [BZ #13542]
58302         * manual/arith.texi (Operations on Complex): Fix description
58303         of carg branch cut.
58304
58305 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58306
58307         [BZ #10014]
58308         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58309         host name.
58310
58311         [BZ #10038]
58312         * manual/memory.texi (Memory): Make order of menu items match
58313         order of sections.
58314
58315 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58316
58317         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58318         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58319         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58320
58321 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58322
58323         * csu/libc-tls.c (static_dtv): Renamed to ...
58324         (_dl_static_dtv): This.  Make it global.
58325         (_dl_initial_dtv): Removed.
58326         (__libc_setup_tls): Updated.
58327         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58328         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58329         DL_INITIAL_DTV.
58330
58331 2012-09-06  Petr Machata  <pmachata@redhat.com>
58332
58333         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58334         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58335         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58336         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58337
58338 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58339
58340         [BZ #14545]
58341         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58342         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58343         freeing dtv[-1].
58344
58345 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58346
58347         [BZ #14544]
58348         * Makeconfig (link-static-before-libc): Replace $(+prector)
58349         with $(+prectorT).
58350         (link-static-after-libc): Replace $(+postctor) with
58351         $(+postctorT).
58352         (link-bounded): Replace $(+prector)/$(+postctor) with
58353         $(+prectorT)/$(+postctorT).
58354         (+prectorT): New macro.
58355         (+postctorT): Likewise.
58356
58357 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58358
58359         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58360         (round_str): Handle values above the maximum for IBM long double
58361         as inexact.
58362         * stdlib/tst-strtod-round.c (tests): Regenerated.
58363
58364 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58365
58366         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58367         assembler flag.
58368         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58369         zarch_nohighgprs around the zarch optimized routines.
58370         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58371         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58372         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58373         for zarch.
58374
58375 2012-09-05  David S. Miller  <davem@davemloft.net>
58376
58377         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58378
58379         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58380         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58381         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58382         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58383         entries.
58384
58385 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58386
58387         * malloc/arena.c: Fold copyright years.
58388         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58389
58390 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58391
58392         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58393
58394 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58395
58396         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58397
58398 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58399
58400         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58401         change internal state upon failure.
58402
58403 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58404
58405         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58406         * malloc/memusage.c (mmap): Likewise.
58407         (mmap64, mremap): Likewise.  Adjust name in comment.
58408
58409 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58410
58411         * libio/fileops.c: Fix typos in comments.
58412         * libio/oldfileops.c: Likewise.
58413         * libio/wfileops.c: Likewise.
58414
58415 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58416
58417         [BZ #1349]
58418         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58419         (tst-malloc-usable-ENV): Set environment for test case.
58420         * malloc/hooks.c (malloc_check_get_size): New function to get
58421         requested size.
58422         * malloc/malloc.c (musable): Use malloc_check_get_size.
58423         * malloc/tst-malloc-usable.c: New test case.
58424
58425 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58426
58427         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58428
58429 2012-09-05  Allan McRae  <allan@archlinux.org>
58430
58431         [BZ #13966]
58432         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58433         determine header location.
58434         * configure: Regenerated.
58435
58436 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58437
58438         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58439         float format.
58440         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58441         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58442         format.
58443         (test): Regenerate.
58444
58445 2012-09-04  David S. Miller  <davem@davemloft.net>
58446
58447         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58448         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58449         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58450
58451 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58452
58453         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58454         failures.
58455
58456         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58457
58458 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58459
58460         [BZ #9914]
58461         * libio/iogetdelim.c: Include <limits.h>.
58462         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58463         + len + 1 would overflow.
58464
58465 2012-09-03  Andreas Jaeger  <aj@suse.de>
58466
58467         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58468         * sysdeps/i386/fpu/libm-test-ulps: Update.
58469
58470 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58471
58472         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58473         Add s_sinf-sse2, s_conf-sse2.
58474
58475         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58476         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58477         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58478         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58479
58480         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58481         for using routine as __sinf_ia32.
58482         Use macro for function declaration and weak_alias.
58483         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58484         for using routine as __cosf_ia32.
58485         Use macro for function declaration and weak_alias.
58486
58487         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58488         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58489
58490         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58491         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58492         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58493
58494         * math/libm-test.inc (cos_test): Add more test cases.
58495         (sin_test): Likewise.
58496         (sincos_test): Likewise.
58497
58498 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58499
58500         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58501         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58502         hidden.
58503         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58504
58505 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58506
58507         [BZ #14538]
58508         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58509         first element of the GOT.
58510         (elf_machine_load_address): Return the difference between
58511         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58512
58513 2012-09-01  Allan McRae  <allan@archlinux.org>
58514
58515         [BZ #13412]
58516         * configure.in (AWK): Require gawk version 3.0 or later.
58517         * configure: Regenerated.
58518
58519 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58520
58521         * sysdeps/unix/sysv/linux/kernel-features.h
58522         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58523         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58524         [__NR_clock_getres]: Make code unconditional.
58525         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58526         (clock_getcpuclockid): Remove code left unreachable by removal of
58527         conditionals.
58528         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58529         code unconditional.
58530         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58531         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58532         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58533         Make code unconditional.
58534         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58535         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58536         * sysdeps/unix/sysv/linux/clock_settime.c
58537         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58538         conditional code.
58539         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58540         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58541
58542 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58543
58544         [BZ #14476]
58545         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58546         scripts/test-installation.pl.
58547
58548         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58549         and $ld_so_version if it is set.
58550
58551 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58552
58553         [BZ #14516]
58554         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58555         failure if reading from procfs failed.
58556         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58557
58558 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58559
58560         * sysdeps/unix/sysv/linux/kernel-features.h
58561         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58562         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58563         Remove conditional code.
58564         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58565         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58566         Remove conditional code.
58567         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58568         * sysdeps/unix/sysv/linux/i386/fxstat.c
58569         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58570         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58571         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58572         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58573         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58574         * sysdeps/unix/sysv/linux/i386/lxstat.c
58575         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58576         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58577         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58578         Remove conditional code.
58579         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58580         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58581         Remove conditional code.
58582         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58583         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58584         <kernel-features.h>.
58585         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58586         Remove.
58587         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58588         Remove conditional code.
58589         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58590         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58591         Remove conditional.
58592
58593 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58594
58595         [BZ #5400]
58596         * NEWS: Add fixed bug number.
58597
58598 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58599
58600         [BZ #14519]
58601         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58602         underflowing exponent in case of negative sign.
58603         * stdlib/tst-strtod-round-data: Add more tests.
58604         * stdlib/tst-strtod-round.c (tests): Regenerated.
58605
58606         [BZ #3479]
58607         * stdlib/strtod_l.c (NDIG): Remove.
58608         (HEXNDIG): Likewise.
58609         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58610         smallest representable value.
58611         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58612         lie within an exact representation of 1/2 ulp of the result.
58613         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58614         unconditionally.
58615         (TENS_P9_IDX): Define unconditionally.
58616         (TENS_P9_SIZE): Likewise.
58617         (TENS_P10_IDX): Likewise.
58618         (TENS_P10_SIZE): Likewise.
58619         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58620         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58621         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58622         entries for 10^2^13 and 10^2^14.
58623         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58624         (TENS_P13_IDX): Define.
58625         (TENS_P13_SIZE): Likewise.
58626         (TENS_P14_IDX): Likewise.
58627         (TENS_P14_SIZE): Likewise.
58628         (_fpioconst_pow10): Change array size to
58629         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58630         unconditional.
58631         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58632         1024]: Add entries for 10^2^13 and 10^2^14.
58633         [LAST_POW10 > _LAST_POW10]: Remove #error.
58634         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58635         (_fpioconst_pow10): Change array size to
58636         FPIOCONST_POW10_ARRAY_SIZE.
58637         * stdlib/gen-fpioconst.c: New file.
58638         * stdlib/gen-tst-strtod-round.c: Likewise.
58639         * stdlib/tst-strtod-round-data: Likewise.
58640         * stdlib/tst-strtod-round.c: Likewise.
58641         * stdlib/Makefile (tests): Add tst-strtod-round.
58642
58643         [BZ #14459]
58644         * stdlib/strtod_l.c: Include <stdint.h>.
58645         (NDEBUG): Do not define.
58646         (round_and_return): Change EXPONENT parameter to type intmax_t.
58647         Rearrange calculations to avoid internal overflow possibilities.
58648         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58649         Rearrange calculations to avoid internal overflow possibilities.
58650         Assert that number fits inside MPNSIZE limbs.
58651         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58652         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58653         calculations and add assertions to avoid internal overflow
58654         possibilities.  Add casts to avoid signed/unsigned operations.
58655         * stdlib/tst-strtod-overflow.c: New file.
58656         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58657
58658 2012-08-25  Marek Polacek  <polacek@redhat.com>
58659
58660         * time/time.h: Fix some typos in comments.
58661
58662 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58663
58664         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58665         * posix/tst-rfc3484-2.c: Likewise.
58666         * posix/tst-rfc3484-3.c: Likewise.
58667
58668 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58669
58670         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58671         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58672
58673 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58674
58675         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58676         #include of fxstatat64.c.
58677
58678 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58679
58680         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58681         * shadow/getspent_r.c: Likewise.
58682         * shadow/getspnam.c: Likewise.
58683         * shadow/getspnam_r.c: Likewise.
58684         * gshadow/getsgent.c: Likewise.
58685         * gshadow/getsgent_r.c: Likewise.
58686         * gshadow/getsgnam.c: Likewise.
58687         * gshadow/getsgnam_r.c: Likewise.
58688         * inet/getnetbyad.c: Likewise.
58689         * inet/getnetbyad_r.c: Likewise.
58690         * inet/getnetbynm.c: Likewise.
58691         * inet/getnetbynm_r.c: Likewise.
58692         * inet/getnetent.c: Likewise.
58693         * inet/getnetent_r.c: Likewise.
58694         * inet/getproto.c: Likewise.
58695         * inet/getproto_r.c: Likewise.
58696         * inet/getprtent.c: Likewise.
58697         * inet/getprtent_r.c: Likewise.
58698         * inet/getprtname.c: Likewise.
58699         * inet/getprtname_r.c: Likewise.
58700         * inet/getrpcbyname.c: Likewise.
58701         * inet/getrpcbyname_r.c: Likewise.
58702         * inet/getrpcbynumber.c: Likewise.
58703         * inet/getrpcbynumber_r.c: Likewise.
58704         * inet/getrpcent.c: Likewise.
58705         * inet/getrpcent_r.c: Likewise.
58706         * inet/getaliasent.c: Likewise.
58707         * inet/getaliasent_r.c: Likewise.
58708         * inet/getaliasname.c: Likewise.
58709         * inet/getaliasname_r.c: Likewise.
58710         * nscd/getgrgid_r.c: Likewise.
58711         * nscd/getgrnam_r.c: Likewise.
58712         * nscd/gethstbyad_r.c: Likewise.
58713         * nscd/gethstbynm3_r.c: Likewise.
58714         * nscd/getpwnam_r.c: Likewise.
58715         * nscd/getpwuid_r.c: Likewise.
58716         * nscd/getsrvbynm_r.c: Likewise.
58717         * nscd/getsrvbypt_r.c: Likewise.
58718         * nscd/gai.c: Likewise.
58719
58720         * configure.in (build_nscd): New substituted variable, set
58721         by --disable-build-nscd and defaults to $use_nscd.
58722         * configure: Regenerated.
58723         * config.make.in (build-nscd): New substituted variable.
58724         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58725         Change conditional to require [$(build-nscd) = yes] as well.
58726         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58727
58728         [BZ# 13696]
58729         * configure.in (use_nscd): New substituted variable, set by
58730         --disable-nscd.  If enabled, define USE_NSCD.
58731         * configure: Regenerated.
58732         * config.h.in: Add USE_NSCD.
58733         * config.make.in (use-nscd): New substituted variable.
58734         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58735         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58736         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58737         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58738         (CFLAGS-getgrnam_r.c): Likewise.
58739         (CFLAGS-initgroups.c): Likewise.
58740         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58741         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58742         Variables removed.
58743         * inet/getnetgrent_r.c
58744         (nscd_setnetgrent): New function, broken out of ...
58745         (setnetgrent): ... here.  Call it.
58746         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58747         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58748         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58749         * nscd/Makefile (routines, aux): Move definitions after include of
58750         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58751         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58752         Conditionalize on [USE_NSCD].
58753         (is_nscd, nscd_init_cb): Likewise.
58754         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58755         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58756         * nss/nss_db/db-init.c: Likewise.
58757         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58758         [USE_NSCD].
58759         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58760         (make_request): Use it.
58761         (cache_valid_p): New function.
58762         (__check_pf): Use it.
58763         * NEWS: Add item for --disable-nscd.
58764
58765 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58766
58767         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58768         to support sed >= 4.2.1-20-ga9bf076.
58769         * configure: Regenerated.
58770
58771 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58772
58773         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58774         Conditionalize whole body on [IREL].
58775
58776 2012-08-22  Jeff Law <law@redhat.com>
58777
58778         [BZ #14505]
58779         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58780         if the family is PF_UNSPEC.
58781
58782 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58783
58784         * Makerules (lib-version): Rename from V.
58785         (install-lib-nosubdir): Change V to lib-version.
58786
58787 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58788
58789         [BZ #14252]
58790         * powerpc32/power6/wcschr.c: New file.
58791         * powerpc32/power6/wcscpy.c: New file.
58792         * powerpc32/power6/wcsrchr.c: New file.
58793         * powerpc64/power6/wcschr.c: New file.
58794         * powerpc64/power6/wcscpy.c: New file.
58795         * powerpc64/power6/wcsrchr.c: New file.
58796
58797 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58798
58799         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58800         (two_way_short_needle): Use it.
58801         * string/strstr.c (AVAILABLE1_USES_J): Define.
58802         * string/strcasestr.c: Likewise.
58803
58804         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58805         array references.
58806         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58807
58808         [BZ #11607]
58809         * NEWS: Add an entry.
58810         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58811         define their defaults.
58812         (two_way_short_needle): Detect end-of-string on-the-fly.
58813         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58814         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58815         * string/bug-strcasestr1.c: New test.
58816         * string/Makefile: Run it.
58817
58818 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58819
58820         [BZ #11607]
58821         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58822         the first character.
58823
58824 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58825
58826         * csu/elf-init.c (__libc_csu_irel): Function removed.
58827         * csu/libc-start.c (apply_irel): New function.
58828         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58829
58830 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58831
58832         * sysdeps/unix/sysv/linux/kernel-features.h
58833         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58834         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58835         <kernel-features.h>.
58836         [__NR_fadvise64_64]: Make code unconditional.
58837         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58838         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58839         !__NR_fadvise64_64)]: Likewise.
58840         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58841         !__NR_fadvise64_64))]: Likewise.
58842         [__NR_fadvise64]: Make code unconditional.
58843         [!__NR_fadvise64]: Remove conditional code.
58844         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58845         <kernel-features.h>.
58846         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58847         unconditional.
58848         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58849         conditional code.
58850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58851         not include <kernel-features.h>.
58852         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58853         unconditional.
58854         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58855         conditional code.
58856         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58857         include <kernel-features.h>.
58858         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58859         unconditional.
58860         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58861         conditional code.
58862
58863 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58864
58865         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58866         slight instruction rearrangements per scrollpipe analysis.
58867         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58868
58869 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58870
58871         * manual/syslog.texi (syslog; vsyslog, closelog):
58872         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58873         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58874
58875         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58876         DSOCAPS to match condition on defining it.
58877
58878 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58879
58880         * sysdeps/unix/sysv/linux/kernel-features.h
58881         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58883         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58884         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58886         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58887         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58889         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58890         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58891
58892         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58893         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58894
58895         * sysdeps/unix/sysv/linux/kernel-features.h
58896         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58897         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58898         unconditional.
58899         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58900         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58901         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58902         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58903         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58904         Make code unconditional.
58905         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58906         (__mmap64) [!__NR_mmap2]: Likewise.
58907         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58908         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58909         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58910         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58911         [__NR_mmap2]: Make code unconditional.
58912         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58913         (__mmap64) [!__NR_mmap2]: Likewise.
58914
58915 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58916
58917         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58918
58919 2012-08-18  Andreas Jaeger  <aj@suse.de>
58920
58921         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58922
58923 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58924
58925         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58926         * include/unistd.h (__have_sock_cloexec): Likewise.
58927         (__have_pipe2): Likewise.
58928         (__have_dup3): Likewise.
58929
58930 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58931
58932         [BZ #9685]
58933         * include/unistd.h (__have_pipe2): Change define into an extern int.
58934         (__have_dup3): Likewise.
58935         * socket/have_sock_cloexec.c: Include fcntl.h.
58936         (__have_pipe2): New variable.
58937         (__have_dup3): Likewise.
58938
58939 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58940
58941         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58942
58943 2012-08-17  Marek Polacek  <polacek@redhat.com>
58944
58945         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58946         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58947
58948 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58949
58950         * configure.in: Add AC_SUBST for sysheaders.
58951         * configure: Regenerated.
58952         * config.make.in (sysheaders): New substituted variable.
58953
58954         * sysdeps/unix/mkfifo.c: Moved ...
58955         * sysdeps/posix/mkfifo.c: ... here.
58956         * sysdeps/unix/mkfifoat.c: Moved ...
58957         * sysdeps/posix/mkfifoat.c: ... here.
58958
58959         * sysdeps/unix/utime.c: Moved ...
58960         * sysdeps/posix/utime.c: ... here.
58961
58962         * sysdeps/unix/time.c: Moved ...
58963         * sysdeps/posix/time.c: ... here.
58964         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58965         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58966
58967         * sysdeps/unix/nice.c: Moved ...
58968         * sysdeps/posix/nice.c: ... here.
58969
58970         * sysdeps/unix/alarm.c: Moved ...
58971         * sysdeps/posix/alarm.c: ... here.
58972
58973         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58974
58975 2012-08-17  Jeff Law <law@redhat.com>
58976
58977         * intl/Makefile (codeset_mo): New variable.
58978         ($(codeset_mo)): New target.
58979         (tst-codeset.out): Depend on that.  Remove explicit rule.
58980         (tst-gettext3.out, tst-gettext5.out): Likewise.
58981         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58982         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58983         * intl/tst-codeset.sh: Remove.
58984         * intl/tst-gettext3.sh: Likewise.
58985         * intl/tst-gettext5.sh: Likewise.
58986
58987 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58988
58989         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58990         * sysdeps/unix/syscalls.list: ... here.
58991
58992         * sysdeps/posix/getaddrinfo.c
58993         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58994         (gaiconf_init, gaiconf_reload): Use them.
58995         [!_STATBUF_ST_NSEC]
58996         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58997         Define using time_t rather than struct timespec.
58998
58999         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
59000         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
59001         Macros removed.
59002         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
59003         [!NO_THREADS].
59004         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
59005         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
59006         Likewise.
59007
59008         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
59009         __libc_cleanup_push argument.
59010
59011         * bits/param.h: New file.
59012         * misc/sys/param.h: New file.
59013         * include/sys/param.h: New file.
59014         * misc/Makefile (headers): Add bits/param.h.
59015         * sysdeps/generic/sys/param.h: File removed.
59016         * sysdeps/unix/sysv/linux/bits/param.h: New file.
59017         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
59018         * sysdeps/mach/hurd/bits/param.h: New file.
59019         * sysdeps/mach/hurd/sys/param.h: File removed.
59020
59021         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
59022         last change.
59023
59024         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
59025         [_IO_MTSAFE_IO].
59026         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
59027         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
59028         New macros.
59029
59030         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
59031         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
59032         rather than -D_IO_MTSAFE_IO conditionally.
59033         * stdio-common/Makefile (CPPFLAGS): Likewise.
59034         * wcsmbs/Makefile (CPPFLAGS): Likewise.
59035         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
59036         Use $(libio-mtsafe).
59037         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
59038         of -D_IO_MTSAFE_IO.
59039         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
59040         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
59041         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
59042         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
59043         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
59044         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
59045         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
59046         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
59047         (CFLAGS-fread_u_chk.c): Likewise.
59048         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
59049         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
59050         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
59051         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
59052         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
59053         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
59054         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
59055         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
59056         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
59057
59058         * libio/Makefile: Test [$(libc-reentrant) = yes]
59059         instead of [$(filter %REENTRANT, $(defines)) nonempty].
59060
59061         * Makeconfig
59062         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
59063         * sysdeps/pthread/configure: File removed.
59064         * sysdeps/pthread/Makeconfig: New file.
59065         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
59066         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
59067
59068 2012-08-16  Gary Benson  <gbenson@redhat.com>
59069
59070         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
59071         unmapping the first object in a namespace.
59072
59073 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59074
59075         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
59076         (__internal_setnetgrent): ... this.  Add internal_function to
59077         definition.  Add libc_hidden_def.
59078         (setnetgrent): Update caller.
59079         (internal_endnetgrent): Renamed to ...
59080         (__internal_endnetgrent): ... this.  Add internal_function to
59081         definition.  Add libc_hidden_def.
59082         (endnetgrent): Update caller.
59083         (internal_getnetgrent_r): Renamed to ...
59084         (__internal_getnetgrent_r): ... this.  Add internal_function to
59085         definition.  Add libc_hidden_def.
59086         (__getnetgrent_r): Update caller.
59087         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
59088
59089 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59090
59091         * stdlib/longlong.h: Update from GCC.
59092
59093 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59094
59095         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
59096         on _QL, which is set by umul_ppmm but never used.
59097         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
59098         variables, which are set by GMP macros but never used.
59099         * stdio-common/_itowa.c (_itowa): Likewise.
59100         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
59101         * stdlib/mod_1.c (mpn_mod_1): Likewise.
59102
59103 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
59104
59105         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
59106         struct La_sh_regs is not constant.
59107         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
59108         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
59109         and struct La_sparc64_regs are not constant.
59110
59111 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59112
59113         * sysdeps/unix/sysv/linux/kernel-features.h
59114         (__ASSUME_POSIX_TIMERS): Remove.
59115         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59116         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59117         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
59118         Make code unconditional.
59119         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59120         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
59121         Make code unconditional.
59122         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59123         * sysdeps/unix/sysv/linux/clock_nanosleep.c
59124         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59125         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59126         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59127         Make code unconditional.
59128         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59129         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59130         (__libc_missing_posix_timers): Remove.
59131
59132 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59133
59134         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59135         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59136
59137         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59138
59139         * elf/dl-sym.c: Include <stdlib.h>.
59140
59141         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59142         constants, which avoids warnings in 32-bit builds.
59143
59144         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59145         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59146
59147         * misc/lseek.c: File moved to ...
59148         * io/lseek.c: ... here.
59149
59150         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59151
59152         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59153         shifting LEN more than 31 bits at once.
59154
59155 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59156
59157         [BZ #14195]
59158         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59159         segmentation fault for a case of two empty input strings.
59160         * string/test-strncasecmp.c (check1): Renamed to...
59161         (bz12205): ...this.
59162         (bz14195): Add new testcase for two empty input strings and N > 0.
59163         (test_main): Call new testcase, adapt for renamed function.
59164
59165 2012-08-15  Andreas Jaeger  <aj@suse.de>
59166
59167         [BZ #14090]
59168         * crypt/md5test2.c: New test, based on test supplied by Serge
59169         Belyshev <belyshev@depni.sinp.msu.ru>.
59170         * crypt/Makefile (xtests): Add md5test-giant..
59171         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59172
59173 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         [BZ #14090]
59176         * crypt/md5.c (md5_process_block): Don't assume the buffer
59177         length is less than 2**32.
59178         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59179         length is less than 2**64.
59180
59181 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59182
59183         * string/str-two-way.h: Include <sys/param.h>.
59184         (MAX): Macro removed.
59185
59186         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59187         Move #define and #undef of memmove to just before and after
59188         including <string.h>.
59189
59190         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59191         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59192         and after including <string.h>.  Move declarations of
59193         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59194         to before #include "string/memmove.c".
59195
59196         * include/dirent.h: Declare __getdirentries.
59197
59198         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59199         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59200
59201 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59202
59203         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59204         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59205         * sysdeps/i386/configure: Regenerated.
59206         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59207         STABS_CURRENT_FILE, and STABS_FUN.
59208         (END): Remove call to STABS_FUN_END.
59209         (STABS_CURRENT_FILE1): Delete.
59210         (STABS_CURRENT_FILE): Likewise.
59211         (STABS_FUN): Likewise.
59212         (STABS_FUN_END): Likewise.
59213         (STABS_FUN2): Likewise.
59214         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59215         * sysdeps/x86_64/configure: Regenerated.
59216
59217 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59218
59219         * elf/dl-open.c: Include <atomic.h>.
59220         * elf/dl-lookup.c: Likewise.
59221
59222 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59223
59224         * sysdeps/unix/sysv/linux/kernel-features.h
59225         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59226         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59227         unconditionally.
59228         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59229         unconditionally.
59230         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59231         condition on __ASSUME_CLONE_THREAD_FLAGS.
59232
59233 2012-08-14  Andreas Jaeger  <aj@suse.de>
59234
59235         * sysdeps/i386/fpu/libm-test-ulps: Update.
59236
59237 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59238
59239         * include/atomic.h (atomic_exchange_and_add): Split into ...
59240         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59241         New atomic macros.
59242
59243 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59244
59245         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59246
59247 2012-08-13  Jeff Law <law@redhat.com>
59248
59249         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59250         null byte in the output string.
59251
59252 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59253
59254         * sysdeps/unix/sysv/linux/kernel-features.h
59255         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59256         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59257         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59258         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59259         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59260         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59261         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59262
59263 2012-08-09  Jeff Law <law@redhat.com>
59264
59265         [BZ #13939]
59266         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59267         When avoid_arena is set, don't retry in the that arena.  Pick the
59268         next one, whatever it might be.
59269         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59270         (arena_lock): Pass in new parameter to arena_get2.
59271         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59272         arena_get2.
59273         (__libc_malloc): Unify retrying after main arena failure with
59274         __libc_memalign version.
59275         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59276
59277 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59278
59279         [BZ #14166]
59280         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59281         to __redirect_strstr.
59282         (__strstr_sse42): Use typeof __redirect_strstr.
59283         (__strstr_ia32): Likewise.
59284         (__libc_strstr): New prototype.
59285         (strstr): Renamed to ...
59286         (__libc_strstr): This.
59287         (strstr): New strong alias of __libc_strstr.
59288         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59289         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59290         __redirect_time.
59291         Include <time.h>.
59292         (__libc_time): New prototype.
59293         (time_ifunc): Replace time with __libc_time.
59294         (time): New strong alias and hidden definition of __libc_time.
59295         (__GI_time): Remove strong alias.
59296         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59297         Include <stddef.h>.
59298         (memmove): Redefined to __redirect_memmove.
59299         (__memmove_sse2): Use typeof __redirect_memmove.
59300         (__memmove_ssse3): Likewise.
59301         (__memmove_ssse3_back): Likewise.
59302         (__libc_memmove): New prototype.
59303         (memmove): Renamed to ...
59304         (__libc_memmove): This.
59305         (memmove): New strong alias of __libc_memmove.
59306
59307 2012-08-08  Mark Salter  <msalter@redhat.com>
59308
59309         * elf/elf.h
59310         (R_MN10300_TLS_GD): Define.
59311         (R_MN10300_TLS_LD): Likewise.
59312         (R_MN10300_TLS_LDO): Likewise.
59313         (R_MN10300_TLS_GOTIE): Likewise.
59314         (R_MN10300_TLS_IE): Likewise.
59315         (R_MN10300_TLS_LE): Likewise.
59316         (R_MN10300_TLS_DTPMOD): Likewise.
59317         (R_MN10300_TLS_DTPOFF): Likewise.
59318         (R_MN10300_TLS_TPOFF): Likewise.
59319         (R_MN10300_SYM_DIFF): Likewise.
59320         (R_MN10300_ALIGN): Likewise.
59321         (R_MN10300_NUM): Update.
59322
59323 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59324
59325         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59326         Remove.
59327
59328 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59329
59330         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59331
59332         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59333         sysdeps/unix -> sysdeps/posix move.
59334         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59335
59336 2012-08-07      Allan McRae     <allan@archlinux.org>
59337
59338         [BZ #14303]
59339         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59340         (SUNOS_CPP): Likewise.
59341         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59342         not found.
59343         (open_input): Call CPP using execvp.
59344
59345 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59346
59347         * sysdeps/unix/sysv/linux/kernel-features.h
59348         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59349         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59350         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59351         (__ASSUME_WAITID_SYSCALL): Likewise.
59352         * sysdeps/unix/sysv/linux/dl-execstack.c
59353         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59354         code unconditional.
59355         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59356         conditional code.
59357         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59358         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59359         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59360         code.
59361         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59362         unconditional.
59363         [__ASSUME_WAITID_SYSCALL]: Likewise.
59364         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59365
59366 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59367
59368         * sysdeps/unix/closedir.c: Renamed to ...
59369         * sysdeps/posix/closedir.c: ... here.
59370         * sysdeps/unix/dirfd.c: Renamed to ...
59371         * sysdeps/posix/dirfd.c: ... here.
59372         * sysdeps/unix/dirstream.h: Renamed to ...
59373         * sysdeps/posix/dirstream.h: ... here.
59374         * sysdeps/unix/fdopendir.c: Renamed to ...
59375         * sysdeps/posix/fdopendir.c: ... here.
59376         * sysdeps/unix/opendir.c: Renamed to ...
59377         * sysdeps/posix/opendir.c: ... here.
59378         * sysdeps/unix/readdir.c: Renamed to ...
59379         * sysdeps/posix/readdir.c: ... here.
59380         * sysdeps/unix/readdir_r.c: Renamed to ...
59381         * sysdeps/posix/readdir_r.c: ... here.
59382         * sysdeps/unix/rewinddir.c: Renamed to ...
59383         * sysdeps/posix/rewinddir.c: ... here.
59384         * sysdeps/unix/seekdir.c: Renamed to ...
59385         * sysdeps/posix/seekdir.c: ... here.
59386         * sysdeps/unix/telldir.c: Renamed to ...
59387         * sysdeps/posix/telldir.c: ... here.
59388         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59389         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59390         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59391         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59392
59393         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59394         * bits/fcntl.h: ... here.
59395
59396         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59397         not 0.
59398         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59399         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59400         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59401         (struct flock): Move l_start, l_len to the beginning.
59402         Use __pid_t for l_pid.
59403         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59404         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59405         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59406         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59407         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59408         [__USE_LARGEFILE64] (struct flock64): New type.
59409         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59410
59411         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59412         * bits/dirent.h: ... here.
59413
59414         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59415         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59416
59417 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59418
59419         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59420         Change from 2.6.0 to 2.6.16.
59421         * sysdeps/unix/sysv/linux/configure: Regenerated.
59422         * sysdeps/unix/sysv/linux/kernel-features.h
59423         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59424         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59425         version.
59426         (__ASSUME_UTIMES): Likewise.
59427         (__ASSUME_CLONE_STOPPED): Remove.
59428         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59429         architectures, not kernel version.
59430         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59431         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59432         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59433         (__ASSUME_WAITID_SYSCALL): Likewise.
59434         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59435         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59436         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59437         refer to older versions.
59438
59439 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59440
59441         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59442         Define alphasort64 as an alias.
59443         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59444         Define versionsort64 as an alias.
59445         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59446         Define scandir64 as an alias.
59447         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59448         Define scandirat64 as an alias.
59449         * dirent/alphasort64.c (alphasort64):
59450         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59451         * dirent/versionsort64.c: Likewise.
59452         * dirent/scandir64.c: Likewise.
59453         * dirent/scandirat64.c: Likewise.
59454         * sysdeps/wordsize-64/alphasort.c: File removed.
59455         * sysdeps/wordsize-64/alphasort64.c: File removed.
59456         * sysdeps/wordsize-64/scandir.c: File removed.
59457         * sysdeps/wordsize-64/scandir64.c: File removed.
59458         * sysdeps/wordsize-64/scandirat.c: File removed.
59459         * sysdeps/wordsize-64/scandirat64.c: File removed.
59460         * sysdeps/wordsize-64/versionsort.c: File removed.
59461         * sysdeps/wordsize-64/versionsort64.c: File removed.
59462         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59463         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59464         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59465         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59466         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59467         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59468         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59469         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59470
59471         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59472         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59473         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59474         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59475         [defined __arch64__ || defined __sparcv9]
59476         (__INO_T_MATCHES_INO64_T): New macro.
59477         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59478         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59479         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59480         * sysdeps/unix/sysv/linux/bits/dirent.h
59481         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59482         (_DIRENT_MATCHES_DIRENT64): New macro.
59483
59484         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59485         Define lockf64 as an alias.
59486         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59487         Define fseeko64 as an alias.
59488         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59489         Define ftello64 as an alias.
59490         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59491         Define _IO_fgetpos64 and fgetpos64 as aliases.
59492         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59493         Define _IO_fsetpos64 and fsetpos64 as aliases.
59494         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59495         Conditionalize body on this.
59496         * libio/fseeko64.c: Likewise.
59497         * libio/ftello64.c: Likewise.
59498         * libio/iofgetpos64.c: Likewise.
59499         * libio/iofsetpos64.c: Likewise.
59500         * sysdeps/wordsize-64/lockf.c: File removed.
59501         * sysdeps/wordsize-64/lockf64.c: File removed.
59502         * sysdeps/wordsize-64/fseeko.c: File removed.
59503         * sysdeps/wordsize-64/fseeko64.c: File removed.
59504         * sysdeps/wordsize-64/ftello.c: File removed.
59505         * sysdeps/wordsize-64/ftello64.c: File removed.
59506         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59507         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59508         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59509         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59510         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59511         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59512         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59513         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59514         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59515         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59516         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59517         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59518         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59519         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59520
59521         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59522         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59523         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59524         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59525         [defined __arch64__ || defined __sparcv9]
59526         (__OFF_T_MATCHES_OFF64_T): New macro.
59527         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59528         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59529         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59530         (__OFF_T_MATCHES_OFF64_T): New macro.
59531
59532 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59533
59534         * stdlib/secure-getenv.c (__secure_getenv): Replace
59535         GLIBC_2_16 with GLIBC_2_17.
59536
59537 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59538
59539         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59540         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59541
59542 2012-08-03  David S. Miller  <davem@davemloft.net>
59543
59544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59545
59546 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59547
59548         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59549         Remove.
59550         (__ASSUME_CORRECT_SI_PID): Likewise.
59551         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59552         (__ASSUME_TMPFS_NAME): Likewise.
59553         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59554         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59555         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59556         (HAVE_AUX_SECURE): Make definition unconditional.
59557         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59558         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59559
59560 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59561
59562         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59563         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59564         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59565         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59566         __eloop_threshold instead of SYMLOOP_MAX.
59567
59568         * sysdeps/generic/eloop-threshold.h: New file.
59569         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59570         of MAXSYMLINKS.
59571         * elf/chroot_canon.c (chroot_canon): Likewise.
59572
59573 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59574
59575         [BZ #13717]
59576         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59577         Change to 2.6.0 everywhere.
59578         * sysdeps/unix/sysv/linux/configure: Regenerated.
59579         * sysdeps/unix/sysv/linux/kernel-features.h
59580         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59581         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59582         kernel versions.
59583         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59584         (__ASSUME_FUTEX_REQUEUE): Remove.
59585         (__ASSUME_STATFS64): Define unconditionally.
59586         (__ASSUME_AT_SECURE): Likewise.
59587         (__ASSUME_CORRECT_SI_PID): Likewise.
59588         (__ASSUME_TGKILL): Define without depending on kernel version for
59589         i386.
59590         (__ASSUME_UTIMES): Likewise.
59591         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59592         kernel version.
59593         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59594         (__ASSUME_TMPFS_NAME): Likewise.
59595         * README: Update reference to Linux kernel versions.
59596
59597 2012-08-02  Marek Polacek  <polacek@redhat.com>
59598
59599         [BZ# 14150]
59600         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59601         libc_cv_asm_type_prefix with %.
59602         * configure: Regenerated.
59603         * include/libc-symbols.h: Remove comment about
59604         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59605         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59606         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59607         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59608         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59609         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59610         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59611         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59612         * elf/tst-unique2mod1.c: Likewise.
59613         * elf/tst-unique1mod2.c: Likewise.
59614         * elf/tst-unique1mod1.c: Likewise.
59615         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59616         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59617         Replace ASM_TYPE_DIRECTIVE with .type.
59618         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59619         * sysdeps/i386/sysdep.h: Likewise.
59620         * sysdeps/x86_64/sysdep.h: Likewise.
59621         * sysdeps/sh/sysdep.h: Likewise.
59622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59623         Do not define ASM_TYPE_DIRECTIVE.
59624         * sysdeps/powerpc/sysdep.h: Likewise.
59625         * sysdeps/powerpc/powerpc32/sysdep.h:
59626         Replace ASM_TYPE_DIRECTIVE with .type.
59627         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59628         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59629         * sysdeps/i386/fpu/e_powf.S: Likewise.
59630         * sysdeps/i386/fpu/e_expl.S: Likewise.
59631         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59632         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59633         * sysdeps/i386/fpu/e_pow.S: Likewise.
59634         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59635         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59636         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59637         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59638         * sysdeps/i386/fpu/e_log2.S: Likewise.
59639         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59640         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59641         * sysdeps/i386/fpu/e_powl.S: Likewise.
59642         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59643         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59644         * sysdeps/i386/fpu/e_logl.S: Likewise.
59645         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59646         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59647         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59648         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59649         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59650         * sysdeps/i386/fpu/e_log.S: Likewise.
59651         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59652         * sysdeps/i386/fpu/e_logf.S: Likewise.
59653         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59654         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59655         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59656         * sysdeps/i386/fpu/e_log10.S: Likewise.
59657         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59658         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59659         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59660         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59661         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59662         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59663         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59664         * sysdeps/i386/i686/strtok.S: Likewise.
59665         * sysdeps/i386/i386-mcount.S: Likewise.
59666         * sysdeps/i386/strtok.S: Likewise.
59667         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59668         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59669         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59670         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59671         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59672         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59673         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59674         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59675         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59676         * sysdeps/x86_64/_mcount.S: Likewise.
59677         * sysdeps/x86_64/strtok.S: Likewise.
59678         * sysdeps/sh/_mcount.S: Likewise.
59679
59680 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59681
59682         * libio/iofopen.c: Include <fcntl.h>.
59683         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59684         (_IO_fopen64, fopen64): Define as aliases.
59685         * libio/iofopen64.c: Include <fcntl.h>.
59686         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59687         Conditionalize body on this.
59688         * sysdeps/wordsize-64/iofopen.c: File removed.
59689         * sysdeps/wordsize-64/iofopen64.c: File removed.
59690
59691 2012-08-01  Marek Polacek  <polacek@redhat.com>
59692
59693         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59694         Use dlfcn directly instead of a variable.
59695         (binfmt-subdir): Do not define.
59696         (dlfcn): Likewise.
59697
59698 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59699
59700         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59701         Remove all definitions.
59702         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59703         <kernel-features.h>.
59704         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59705         (miss_F_GETOWN_EX): Remove all definitions.
59706         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59707         macro definition.
59708         [!__ASSUME_FCNTL64]: Remove conditional code.
59709         [__ASSUME_FCNTL64]: Make code unconditional.
59710         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59711         <kernel-features.h>.
59712         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59713         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59714         (lockf64) [__NR_fcntl64]: Make code unconditional.
59715         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59716
59717         * sysdeps/unix/sysv/linux/kernel-features.h
59718         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59719         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59720         Make code unconditional.
59721         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59722         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59724         [__NR_vfork]: Make code unconditional.
59725         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59726         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59728         [__NR_vfork]: Make code unconditional.
59729         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59730         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59731
59732 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59733
59734         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59735         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59736
59737         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59738         Define mkstemp64 as an alias.
59739         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59740         Define mkstemps64 as an alias.
59741         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59742         Define mkostemp64 as an alias.
59743         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59744         Define mkostemps64 as an alias.
59745         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59746         Conditionalize body on this.
59747         * misc/mkostemp64.c: Likewise.
59748         * misc/mkostemps64.c: Likewise.
59749         * misc/mkstemps64.c: Likewise.
59750         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59751         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59752         * sysdeps/wordsize-64/mkostemp.c: File removed.
59753         * sysdeps/wordsize-64/mkstemp.c: File removed.
59754         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59755         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59756         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59757         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59758
59759         [BZ #14138]
59760         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59761         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59762         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59763         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59764
59765         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59766         compat_symbol macros from <shlib-compat.h> rather than the underlying
59767         default_symbol_version and symbol_version macros, so that DEFAULT
59768         lines in shlib-versions are respected.
59769         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59770
59771 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59772
59773         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59774         Declare with warn_unused_result.
59775         (setgid, setregid, setegid, setresgid): Likewise.
59776         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59777         Likewise.
59778         * WUR-REPORT: Remove set*id functions.
59779
59780 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59781
59782         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59783
59784 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59785
59786         [BZ #10191]
59787         * include/sys/socket.h (__libc_accept, __libc_accept4):
59788         Add attribute_hidden.
59789         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59790
59791         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59792         use of PTR_MANGLE.
59793         * inet/getnetgrent_r.c (setup): Likewise.
59794
59795         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59796
59797 2012-07-31  David S. Miller  <davem@davemloft.net>
59798
59799         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59800
59801 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59802
59803         [BZ #13629]
59804         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59805         value between 1.0 and 2.0 and smaller part has absolute value less
59806         than 1.0.
59807         * math/s_clog10.c (__clog10): Likewise.
59808         * math/s_clog10f.c (__clog10f): Likewise.
59809         * math/s_clog10l.c (__clog10l): Likewise.
59810         * math/s_clogf.c (__clogf): Likewise.
59811         * math/s_clogl.c (__clogl): Likewise.
59812         * math/libm-test.inc (clog_test): Add more tests.
59813         (clog10_test): Likewise.
59814         * sysdeps/i386/fpu/libm-test-ulps: Update.
59815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59816
59817 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59818
59819         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59820         Exit with zero in case no suitable GID is found, and write a
59821         message to standard error.
59822
59823 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59824
59825         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59826         rather than to 1.
59827         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59828         (MAXPATHLEN): Removed.
59829         (NOGROUP, NODEV): New macros.
59830         (setbit, clrbit, isset, isclr): New macros.
59831         (howmany, roundup, powerof2): New macros.
59832         (DEV_BSIZE): New macro.
59833
59834         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59835         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59836
59837         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59838         definition on [!__NO_LONG_DOUBLE_MATH].
59839
59840         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59841         PTR_MANGLE and PTR_DEMANGLE.
59842
59843         * socket/accept4.c (accept4): Rename to __libc_accept4.
59844         Define accept4 as a weak alias.
59845
59846         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59847         on [_DIRENT_HAVE_D_TYPE].
59848         * io/ftw.c (ftw_dir): Likewise.
59849
59850         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59851
59852         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59853
59854         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59855         Use the BSD numbers rather than the arbitrary ones we had.
59856         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59857         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59858         (SIGXCPU, SIGXFSZ): New macros.
59859         (_NSIG): Now 32.
59860
59861         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59862         initializer on [_LIBC_REENTRANT].
59863
59864         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59865         definitions inside [_POSIX_MAPPED_FILES].
59866
59867         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59868
59869         * dirent/opendir.c: Include <fcntl.h>.
59870
59871         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59872         (__libc_getspecific): Likewise.
59873         (__libc_key_create): Likewise.
59874
59875         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59876         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59877         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59878         (tmpfile64): Define as alias.
59879         * sysdeps/wordsize-64/tmpfile.c: File removed.
59880         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59881         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59882         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59883
59884         * stdio-common/vfscanf.c: Include <stdbool.h>.
59885         * nss/makedb.c: Likewise.
59886         * stdio-common/_i18n_number.h: Likewise.
59887         * argp/argp-help.c: Likewise.
59888         * posix/wordexp.c: Likewise.
59889         * sysdeps/posix/spawni.c: Likewise.
59890         * nss/nss_files/files-initgroups.c: Likewise.
59891         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59892         * nss/nss_files/files-initgroups.c: Likewise.
59893         * nss/nss_db/db-netgrp.c: Likewise.
59894         * nss/nss_db/db-initgroups.c: Likewise.
59895         * io/fchmodat.c: Include <sys/stat.h>.
59896
59897         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59898         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59899
59900         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59901         [HAVE_MMAP].
59902
59903         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59904         Add multiple inclusion protection.
59905
59906 2012-07-27  David S. Miller  <davem@davemloft.net>
59907
59908         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59909
59910 2012-07-27  Gary Benson  <gbenson@redhat.com>
59911
59912         [BZ #14298]
59913         * elf/rtld.c: Include <stap-probe.h>.
59914         (dl_main): Added static probes "init_start" and "init_complete".
59915         * elf/dl-load.c: Include <stap-probe.h>.
59916         (lose): Take new parameter "nsid".
59917         Added static probe "map_failed".
59918         (_dl_map_object_from_fd): Pass namespace id to lose.
59919         Added static probe "map_start".
59920         (open_verify): Pass namespace id to lose.
59921         * elf/dl-open.c: Include <stap-probe.h>.
59922         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59923         and "reloc_complete".
59924         * elf/dl-close.c: Include <stap-probe.h>.
59925         (_dl_close_worker): Added static probes "unmap_start" and
59926         "unmap_complete".
59927         * elf/rtld-debugger-interface.txt: New file documenting the above.
59928
59929 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59930
59931         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59932         rather than a string variable.
59933         * sunrpc/rpc_main.c (h_output): Likewise.
59934         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59935
59936 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59937
59938         * inet/check_native.c: New file.
59939
59940 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59941
59942         [BZ #13629]
59943         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59944         if larger part has absolute value 1.0.
59945         * math/s_clog10.c (__clog10): Likewise.
59946         * math/s_clog10f.c (__clog10f): Likewise.
59947         * math/s_clog10l.c (__clog10l): Likewise.
59948         * math/s_clogf.c (__clogf): Likewise.
59949         * math/s_clogl.c (__clogl): Likewise.
59950         * math/libm-test.inc (clog_test): Add more tests.
59951         (clog10_test): Likewise.
59952         * sysdeps/i386/fpu/libm-test-ulps: Update.
59953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59954
59955         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59956         (pltexit): Likewise.
59957         (La_regs): Likewise.
59958         (La_retval): Likewise.
59959         (int_retval): Likewise.
59960         Update #error for removed macros to refer only to definitions in
59961         tst-audit.h.
59962         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59963         macro.
59964         (pltexit): Likewise.
59965         (La_regs): Likewise.
59966         (La_retval): Likewise.
59967         (int_retval): Likewise.
59968         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59969         macro.
59970         (pltexit): Likewise.
59971         (La_regs): Likewise.
59972         (La_retval): Likewise.
59973         (int_retval): Likewise.
59974         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59975         macro.
59976         (pltexit): Likewise.
59977         (La_regs): Likewise.
59978         (La_retval): Likewise.
59979         (int_retval): Likewise.
59980         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59981         macro.
59982         (pltexit): Likewise.
59983         (La_regs): Likewise.
59984         (La_retval): Likewise.
59985         (int_retval): Likewise.
59986         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59987         macro.
59988         (pltexit): Likewise.
59989         (La_regs): Likewise.
59990         (La_retval): Likewise.
59991         (int_retval): Likewise.
59992         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59993         macro.
59994         (pltexit): Likewise.
59995         (La_regs): Likewise.
59996         (La_retval): Likewise.
59997         (int_retval): Likewise.
59998         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59999         macro definitions in tst-audit.h.
60000         * sysdeps/i386/tst-audit.h: New file.
60001         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
60002         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
60003         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
60004         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
60005         * sysdeps/sh/tst-audit.h: Likewise.
60006         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
60007         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
60008         * sysdeps/x86_64/tst-audit.h: Likewise.
60009
60010 2012-07-26  Andreas Jaeger  <aj@suse.de>
60011
60012         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
60013         ptrace.
60014
60015         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
60016         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
60017         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
60018         PTRACE_O_MASK.
60019         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
60020         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
60021         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
60022
60023         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
60024         value.
60025
60026         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
60027         _sigsys.
60028         (si_call_addr, si_syscall, si_arch): Define new macro.
60029         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
60030         _sigsys.
60031         (si_call_addr, si_syscall, si_arch): Define new marcro.
60032         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
60033         _sigsys.
60034         (si_call_addr, si_syscall, si_arch): Define new macro.
60035         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
60036         _sigsys.
60037         (si_call_addr, si_syscall, si_arch): Define new macro.
60038
60039 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60040
60041         [BZ #13717]
60042         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60043         Change to 2.4.21 where previously 2.4.1.
60044         * sysdeps/unix/sysv/linux/configure: Regenerated.
60045         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
60046         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
60047         Linux kernel version.
60048         (__ASSUME_STD_AUXV): Remove.
60049         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
60050         kernel version.
60051         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
60052         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
60053         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
60054         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
60055         (__ASSUME_NETLINK_SUPPORT): Likewise.
60056         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
60057         (__no_netlink_support): Remove conditional definition.
60058         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
60059         Remove.
60060         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60061         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
60062         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
60063         (if_nameindex_ioctl): Remove.
60064         (if_nameindex_netlink): Do not handle __no_netlink_support.
60065         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60066         code.
60067         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
60068         Remove conditional code.
60069         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60070         code.
60071         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
60072         unconditional.
60073         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60074         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
60075         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
60076         Remove.
60077         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
60078         [!__ASSUME_STD_AUXV]: Remove conditional code.
60079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
60080         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
60081         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
60082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
60083         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
60084         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60085         code.
60086         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
60088         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
60089         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60090         conditional code.
60091         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
60093         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60094         code.
60095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
60096         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60097         conditional code.
60098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
60099         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60100         code unconditional.
60101         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60102         conditional code.
60103         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60104         unconditional.
60105         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60106         conditional code.
60107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
60108         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60109         unconditional.
60110         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60111         conditional code.
60112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
60113         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60114         code unconditional.
60115         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60116         conditional code.
60117         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60118         unconditional.
60119         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60120         conditional code.
60121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60122         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60123         code unconditional.
60124         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60125         conditional code.
60126         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60127         unconditional.
60128         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60129         conditional code.
60130
60131 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60132
60133         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60134         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60135         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60136         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60137         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60138         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60139         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60140         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60141         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60142         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60143         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60144         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60145         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60146         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60147         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60148         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60149         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60150         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60151         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60152         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60153         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60154         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60155         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60156
60157 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60158
60159         * Versions.def: Add GLIBC_2.17.
60160         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60161         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60162         Introduce __libc_secure_getenv.
60163         * stdlib/Versions (2.17): Add secure_getenv
60164         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60165         * stdlib/secure-getenv.c: Rename __secure_getenv to
60166         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60167         symbol __secure_getenv for GLIBC_2.0.
60168         * stdlib/tst-secure-getenv.c: New.
60169         * stdlib/Makefile (tests): Add testcase.
60170         * manual/startup.texi (Environment Access): Document
60171         secure_getenv.
60172         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60173         __libc_secure_getenv.
60174         * inet/ruserpass.c (ruserpass): Likewise.
60175         * malloc/mtrace.c (mtrace): Likewise.
60176         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60177         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60178         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60179         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60180         HAVE_SECURE_GETENV.
60181         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60182         __secure_getenv to __libc_secure_getenv.
60183         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60185         Likewise.
60186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60187         Likewise.
60188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60189         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60190         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60193         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60194         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60195
60196 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60197
60198         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60199         (struct La_i86_retval): Likewise.
60200         (struct La_x86_64_regs): Likewise.
60201         (struct La_x86_64_retval): Likewise.
60202         (struct La_x32_regs): Likewise.
60203         (struct La_x32_retval): Likewise.
60204         (struct La_ppc32_regs): Likewise.
60205         (struct La_ppc32_retval): Likewise.
60206         (struct La_ppc64_regs): Likewise.
60207         (struct La_ppc64_retval): Likewise.
60208         (struct La_sh_regs): Likewise.
60209         (struct La_sh_retval): Likewise.
60210         (struct La_s390_32_regs): Likewise.
60211         (struct La_s390_32_retval): Likewise.
60212         (struct La_s390_64_regs): Likewise.
60213         (struct La_s390_64_retval): Likewise.
60214         (struct La_sparc32_regs): Likewise.
60215         (struct La_sparc32_retval): Likewise.
60216         (struct La_sparc64_regs): Likewise.
60217         (struct La_sparc64_retval): Likewise.
60218         (struct audit_ifaces): Remove architecture-specific pltenter and
60219         pltexit members.
60220         * sysdeps/i386/ldsodefs.h: New file.
60221         * sysdeps/powerpc/ldsodefs.h: Likewise.
60222         * sysdeps/s390/ldsodefs.h: Likewise.
60223         * sysdeps/sh/ldsodefs.h: Likewise.
60224         * sysdeps/sparc/ldsodefs.h: Likewise.
60225         * sysdeps/x86_64/ldsodefs.h: Likewise.
60226
60227 2012-07-25  Marek Polacek  <polacek@redhat.com>
60228
60229         [BZ #6808]
60230         * math/libm-test.inc (yn_test): Add another test.
60231         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60232         to ERANGE when the result is +-Inf.
60233         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60234         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60235         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60236         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60237
60238 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60239
60240         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60241         equal to 0.
60242         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60243         clock_t.
60244         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60245
60246 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60247
60248         * configure.in <sysdeps resolving>: Correct printing
60249         Implies_before.
60250         * configure: Regenerate.
60251
60252 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60253
60254         * math/w_ilogb.c: Include <limits.h>.
60255         * math/w_ilogbl.c: Likewise.
60256
60257 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60258
60259         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60260         va_copy.  Document allowing for unavailable va_copy only as
60261         pre-C99 compatibility.
60262         * manual/string.texi (Copying and Concatenation): Use va_copy
60263         instead of __va_copy in concat example.
60264
60265 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60266
60267         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60268         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60269         it if not null.
60270
60271         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60272         with O_NOLINK passed to __file_name_lookup.
60273
60274         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60275         with O_NOLINK passed to __file_name_lookup.
60276
60277         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60278         negative N or less than NGIDS.
60279
60280         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60281         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60282         enough.  Use memcpy instead of strncpy.
60283
60284 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60285
60286         * elf/Makefile (check-data): Remove.
60287         (localplt.data): New vpath directive.
60288         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60289         instead of $(check-data).
60290         * scripts/data/localplt-generic.data: Move to ...
60291         * sysdeps/generic/localplt.data: ... here.
60292         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60293         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60294         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60296         ... here.
60297         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60299         ... here.
60300         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60302         ... here.
60303         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60305         ... here.
60306         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60307         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60308         ... here.
60309         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60310         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60311         ... here.
60312
60313 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60314
60315         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60316         PPC32 and PPC64 files.
60317         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60318         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60319
60320 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60321
60322         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60323         __makecontext_ret to ...
60324         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60325         ... here and call exit if uc_link is NULL.  New file.
60326         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60327         __makecontext_ret.S.
60328         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60329         __makecontext_ret to ...
60330         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60331         ... here and call exit if uc_link is NULL.  New file.
60332         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60333         __makecontext_ret.S.
60334
60335 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60336
60337         * elf/elf.h (R_390_IRELATIVE): New definition.
60338         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60339         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60340         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60341         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60342         (elf_machine_lazy_rel): Likewise.
60343         * sysdeps/s390/dl-irel.h: New file.
60344         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60345         * sysdeps/s390/s390-64/memset.S: New asm code.
60346         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60347         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60348         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60349         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60350         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60351         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60352         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60353         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60354         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60355         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60356         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60357         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60358         * sysdeps/s390/s390-32/memset.S: New asm code.
60359         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60360
60361 2012-07-17  Marek Polacek  <polacek@redhat.com>
60362
60363         [BZ #14349]
60364         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60365         * sysdeps/s390/s390-64/configure.in: Likewise.
60366         * sysdeps/sparc/configure.in: Likewise.
60367         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60368         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60369         * sysdeps/i386/configure.in: Likewise.
60370         * sysdeps/x86_64/configure.in: Likewise.
60371         * sysdeps/sh/configure.in: Likewise.
60372         * sysdeps/s390/s390-32/configure: Regenerated.
60373         * sysdeps/s390/s390-64/configure: Likewise.
60374         * sysdeps/x86_64/configure: Likewise.
60375         * sysdeps/sh/configure: Likewise.
60376         * sysdeps/powerpc/powerpc64/configure: Likewise.
60377         * sysdeps/powerpc/powerpc32/configure: Likewise.
60378         * sysdeps/sparc/configure: Likwise.
60379         * sysdeps/i386/configure: Likewise.
60380
60381         * elf/dl-open.c: Comment fixes.
60382
60383 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60384
60385         * Makefile [CXX] (check-data): Remove.
60386         [CXX] (c++-types.data): New vpath directive.
60387         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60388         vpath.  Do not allow for C++ type data being missing.
60389         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60390         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60391         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60392         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60393         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60394         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60395         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60397         ... here.
60398         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60400         ... here.
60401         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60402         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60403         ... here.
60404         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60405         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60406         ... here.
60407         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60408         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60409         ... here.
60410         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60411         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60412         ... here.
60413         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60414         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60415         ... here.
60416         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60417         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60418
60419         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60420         definitions to architecture-specific files.
60421         (TLS_IE): Likewise.
60422         (TLS_LD): Likewise.
60423         (TLS_GD): Likewise.
60424         * sysdeps/i386/tls-macros.h: New file.
60425         * sysdeps/powerpc/tls-macros.h: Likewise.
60426         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60427         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60428         * sysdeps/sh/tls-macros.h: Likewise.
60429         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60430         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60431         * sysdeps/x86_64/tls-macros.h: Likewise.
60432
60433 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60434
60435         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60436         zero value for regular exit case.
60437
60438         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60439         (__start_context): Preserve zero value for regular exit case.
60440
60441 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60442             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60443
60444         * manual/setjmp.texi (setcontext): Clarify normal process
60445         termination when uc_link is the null pointer.
60446         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60447         exit call.
60448
60449 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60450
60451         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60452         preprocessor.  Test for each exception mask separately.
60453
60454 2012-07-16  Andreas Jaeger  <aj@suse.de>
60455
60456         * po/ru.po: Update from translation team.
60457
60458 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60459
60460         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60461         equal to 0.
60462         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60463         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60464         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60465         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60466         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60467
60468 2012-07-13  Andreas Jaeger  <aj@suse.de>
60469
60470         * po/fr.po: Update from translation team.
60471
60472 2012-07-12  Marek Polacek  <polacek@redhat.com>
60473
60474         [BZ #14173]
60475         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60476         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60477         loop condition.
60478
60479 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60480
60481         [BZ #13717]
60482         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60483         Change to 2.4.1 where previously 2.4.0.
60484         * sysdeps/unix/sysv/linux/configure: Regenerated.
60485         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60486         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60487         version.
60488         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60489         (__ASSUME_AT_CLKTCK): Remove.
60490         (__ASSUME_AT_PAGESIZE): Likewise.
60491         (__ASSUME_AT_XID): Likewise.
60492         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60493         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60494         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60495         unconditionally.
60496         (HAVE_AUX_PAGESIZE): Likewise.
60497         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60498         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60499         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60500
60501 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60502
60503         [BZ #14307]
60504         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60505         the temporary buffer used to invoke __gethostbyname2_r,
60506         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60507         host_data / struct gaih_addrtuple.
60508         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60509         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60510         header file nss/nsswitch.h.
60511         * nss/nsswitch.h (global scope): Add definition of implementation
60512         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60513         resolv/nss_dns/dns-host.c).
60514
60515 2012-07-11  Andreas Jaeger  <aj@suse.de>
60516
60517         * po/fr.po: Update from translation team.
60518
60519         * po/sv.po: Update from translation team
60520         * po/fr.po: Another update from translation team.
60521
60522 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60523
60524         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60525         for subnormals or multiply small sinh result by itself.
60526         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60527         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60528
60529 2012-07-11  David S. Miller  <davem@davemloft.net>
60530
60531         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60532
60533 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60534
60535         [BZ #14347]
60536         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60537         (INTERNAL_MARK): Shift it here.
60538
60539 2012-07-10  Marek Polacek  <polacek@redhat.com>
60540
60541         [BZ #14151]
60542         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60543         libc_cv_asm_global_directive with .globl.
60544         * configure: Regenerated.
60545         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60546         with .globl.
60547         * sysdeps/i386/configure: Regenerated.
60548         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60549         with .globl.
60550         * sysdeps/x86_64/configure: Regenerated.
60551         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60552         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60553         * elf/tst-unique2mod2.c: Likewise.
60554         * elf/tst-unique2mod1.c: Likewise.
60555         * elf/tst-unique1mod2.c: Likewise.
60556         * elf/tst-unique1mod1.c: Likewise.
60557         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60558         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60559         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60560         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60561         * sysdeps/mach/sysdep.h: Likewise.
60562         * sysdeps/i386/sysdep.h: Likewise.
60563         * sysdeps/i386/i386-mcount.S: Likewise.
60564         * sysdeps/x86_64/_mcount.S: Likewise.
60565         * sysdeps/x86_64/sysdep.h: Likewise.
60566         * sysdeps/sh/_mcount.S: Likewise.
60567         * sysdeps/sh/sysdep.h: Likewise.
60568         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60569         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60570         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60571         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60572         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60573         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60574         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60575         * locale/localeinfo.h: Likewise.
60576         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60577         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60578
60579 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60580
60581         [BZ #14336]
60582         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60583         system".
60584         * manual/message.texi (The Uniforum approach): Likewise.
60585         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60586         (glibc iconv Implementation): Likewise.
60587
60588 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60589
60590         [BZ #14337]
60591         * math/s_clog.c (__clog): Avoid scaling a value down where that
60592         could result in underflow.
60593         * math/s_clog10.c (__clog10): Likewise.
60594         * math/s_clog10f.c (__clog10f): Likewise.
60595         * math/s_clog10l.c (__clog10l): Likewise.
60596         * math/s_clogf.c (__clogf): Likewise.
60597         * math/s_clogl.c (__clogl): Likewise.
60598         * math/libm-test.inc (clog_test): Add more tests.
60599         (clog10_test): Likewise.
60600         * sysdeps/i386/fpu/libm-test-ulps: Update.
60601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60602
60603 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60604
60605         [BZ #14283]
60606         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60607         by 7 not 8 to examine high bit of fractional part.
60608
60609         [BZ #14042]
60610         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60611         for call to __mcount_internal.
60612         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60613         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60614         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60615
60616 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60617
60618         [BZ #14154]
60619         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60620         approximation for values within 0x1p-13f of an odd multiple of
60621         pi/4.
60622         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60623         exception.  Add more tests.
60624         * sysdeps/i386/fpu/libm-test-ulps: Update.
60625
60626         [BZ #6778]
60627         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60628         inputs and return -1 for them.  Do not check for +Inf in case not
60629         reachable for +Inf.
60630         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60631         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60632         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60633         and return -1 for them.  Do not check for +Inf in case not
60634         reachable for +Inf.
60635         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60636         define.
60637         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60638         and return -1 for them.  Do not check for +Inf in case not
60639         reachable for +Inf.
60640         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60641         spurious underflow.
60642         * sysdeps/i386/fpu/libm-test-ulps: Update.
60643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60644
60645 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60646
60647         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60648
60649 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60650
60651         [BZ #14157]
60652         [BZ #14331]
60653         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60654         could result in spurious underflow.  Scale down values above
60655         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60656         * math/s_csqrtf.c (__csqrtf): Likewise.
60657         * math/s_csqrtl.c (__csqrtl): Likewise.
60658         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60659         spurious underflow.
60660         * sysdeps/i386/fpu/libm-test-ulps: Update.
60661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60662
60663 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60664
60665         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60666         xopen-msg.sed.
60667         * catgets/xopen-msg.awk: New file.
60668         * catgets/xopen-msg.sed: Removed.
60669
60670         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60671         po2text.sed.
60672         * intl/po2test.awk: New file.
60673         * intl/po2test.sed: Removed.
60674
60675 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60676
60677         [BZ #14328]
60678         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60679         or multiply small sinh result by itself.
60680         * math/s_ctanf.c (__ctanf): Likewise.
60681         * math/s_ctanh.c (__ctanh): Likewise.
60682         * math/s_ctanhf.c (__ctanhf): Likewise.
60683         * math/s_ctanhl.c (__ctanhl): Likewise.
60684         * math/s_ctanl.c (__ctanl): Likewise.
60685         * math/libm-test.inc (ctan_test_tonearest): New function.
60686         (ctan_test_towardzero): Likewise.
60687         (ctan_test_downward): Likewise.
60688         (ctan_test_upward): Likewise.
60689         (ctanh_test_tonearest): Likewise.
60690         (ctanh_test_towardzero): Likewise.
60691         (ctanh_test_downward): Likewise.
60692         (ctanh_test_upward): Likewise.
60693         (main): Call these new functions.
60694         * sysdeps/i386/fpu/libm-test-ulps: Update.
60695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60696
60697 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60698
60699         * .gitignore: Delete /ports entry.
60700
60701 2012-07-03  Andreas Jaeger  <aj@suse.de>
60702
60703         * po/bg.po: Update from translation team.
60704         * po/cs.po: Likewise.
60705         * po/de.po: Likewise.
60706         * po/hr.po: Likewise.
60707         * po/nl.pl: Likewise.
60708         * po/pl.po: Likewise.
60709         * po/vi.po: Likewise.
60710
60711 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60712
60713         * Makeconfig [!+link] (+link-before-libc): New variable.
60714         [!+link] (+link-after-libc): Likewise.
60715         [!+link] (+link-tests): Likewise.
60716         [!+link] (+link): Define in terms of $(+link-before-libc) and
60717         $(+link-after-libc).
60718         [!+link-static] (+link-static-before-libc): New variable.
60719         [!+link-static] (+link-static-after-libc): Likewise.
60720         [!+link-static] (+link-static-tests): Likewise.
60721         [!+link-static] (+link-static): Define in terms of
60722         $(+link-static-before-libc) and $(+link-static-after-libc).
60723         [build-shared] (link-libc-before-gnulib): New variable.
60724         [build-shared] (link-libc-tests): Likewise.
60725         [build-shared] (link-libc): Define in terms of
60726         $(link-libc-before-gnulib).
60727         [!build-shared] (link-libc-tests): New variable.
60728         (link-libc-static-tests): New variable.
60729         [!gnulib] (gnulib-arch): New variable.
60730         [!gnulib] (gnulib-tests): Likewise.
60731         [!gnulib] (static-gnulib-arch): Likewise.
60732         [!gnulib] (static-gnulib-tests): Likewise.
60733         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60734         Define with "=" instead of ":=".
60735         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60736         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60737         * Rules (binaries-all-notests): New variable.
60738         (binaries-all-tests): Likewise.
60739         (binaries-static-notests): Likewise.
60740         (binaries-static-tests): Likewise.
60741         (binaries-all): Define using $(binaries-all-notests) and
60742         $(binaries-all-tests).
60743         (binaries-static): Define using $(binaries-static-notests) and
60744         $(binaries-static-tests).
60745         (binaries-shared-tests): New variable.
60746         (binaries-shared-notests): Likewise.
60747         (binaries-shared): Remove variable.
60748         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60749         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60750         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60751         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60752         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60753         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60754         * elf/Makefile (sln-modules): New variable.
60755         (extra-objs): Add $(sln-modules:=.o).
60756         (ldconfig-modules): Add static-stubs.
60757         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60758         * elf/static-stubs.c: New file.
60759
60760         [BZ #14283]
60761         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60762         by 7 not 8 to examine high bit of fractional part.  Use volatile
60763         variables when splitting into final array of floats if
60764         __FLT_EVAL_METHOD__ != 0.
60765         * math/libm-test.inc (cos_test): Add another test.
60766         (sin_test): Likewise.
60767         * sysdeps/i386/fpu/libm-test-ulps: Update.
60768
60769         [BZ #14273]
60770         * math/libm-test.inc (cosh_test): Add more tests.
60771
60772         * version.h (RELEASE): Set to "development".
60773         (VERSION): Set to "2.16.90".
60774
60775 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60776
60777         * NEWS: Update copyright. Remove last-updated date.
60778         Mention math library bug fixes and timezone data changes.
60779         * README: Mention GNU/Hurd, x32, and HPPA support status.
60780
60781 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60782
60783         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60784
60785 2012-06-27  Andreas Jaeger  <aj@suse.de>
60786
60787         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60788
60789 2012-06-25  Andreas Jaeger  <aj@suse.de>
60790
60791         * sysdeps/s390/fpu/libm-test-ulps: Update.
60792
60793 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60794             Thomas Schwinge  <thomas@codesourcery.com>
60795
60796         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60797         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60798         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60799         fanotify_mark.
60800
60801 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60802
60803         * sysdeps/mach/start.c: Remove file.
60804         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60805         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60806         * sysdeps/sh/init-first.c: Likewise.
60807
60808         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60809         registers for frame unwinding purposes, add CFI directives.
60810         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60811         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60812         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60813         Likewise.
60814
60815         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60816         __fortify_fail returning.
60817         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60818
60819         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60820         sysdeps/sh/____longjmp_chk.S.
60821         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60822         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60823         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60824         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60825
60826         * sysdeps/sh/abort-instr.h: New file.
60827         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60828         process in case exit returns.
60829
60830         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60831         initialize the GOT register before use.
60832
60833         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60834         calculation of ARGC > 4.
60835
60836         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60837         meaningful names to some local labels.
60838
60839 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60840             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60841
60842         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60843         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60844         (__arch_compare_and_exchange_val_16_acq): Likewise.
60845         (__arch_compare_and_exchange_val_32_acq): Likewise.
60846         (atomic_exchange_and_add): Fix gUSA sequence.
60847         (atomic_add): Likewise.
60848         (atomic_add_negative): Likewise.
60849         (atomic_add_zero): Likewise.
60850         (atomic_bit_test_set): Likewise.
60851
60852 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60853
60854         [BZ #13579]
60855         * include/link.h (struct link_map): Add l_free_initfini.
60856         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60857         l_initfini.
60858         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60859         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60860         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60861         set.
60862
60863 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60864
60865         * configure.in: Use AC_LANG_SOURCE.
60866         * configure: Regenerate.
60867
60868 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60869
60870         * configure.in (libc_cv_localstatedir): New substituted variable.
60871         * configure: Regenerated.
60872         * config.make.in (localstatedir): New variable, substituted from
60873         libc_cv_localstatedir.
60874         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60875         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60876         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60877         * sysdeps/gnu/configure: Regenerated.
60878
60879 2012-06-21  Jeff Law  <law@redhat.com>
60880
60881         [BZ #14277]
60882         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60883         free.  Simplify list management for _LIBC case.
60884
60885 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60886
60887         [BZ #14273]
60888         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60889         Clear sign bit of 64-bit integer value before comparing against
60890         overflow value.
60891
60892         * sysdeps/mach/configure: Regenerated.
60893
60894 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60895
60896         [BZ #14278]
60897         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60898
60899 2012-06-21  Jeff Law  <law@redhat.com>
60900
60901         [BZ #13882]
60902         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60903         uint16_t for elements in the "seen" array to avoid char overflows.
60904         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60905         * elf/dl-open.c (dl_open_worker): Likewise.
60906
60907 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60908
60909         * scripts/list-sources.sh: Scan PORTS for translations.
60910         * po/libc.pot: Regenerated.
60911
60912 2012-06-21  Andreas Jaeger  <aj@suse.de>
60913
60914         [BZ #12194]
60915         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60916         warning.
60917         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60918         * bits/byteswap-16.h (__bswap_16): Likewise.
60919         * bits/byteswap.h (__bswap_constant_16): Likewise.
60920
60921 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60922
60923         [BZ #14117]
60924         * sysdeps/i386/fpu_control.h: Removed.
60925         * sysdeps/x86_64/fpu_control.h: Moved to ...
60926         * sysdeps/x86/fpu_control.h: Here.
60927
60928         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60929         (_FPU_SETCW): Likewise.
60930
60931 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60932
60933         [BZ #14117]
60934         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60935         * sysdeps/x86/fpu/bits/mathinline.h: This.
60936         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60937
60938         [BZ #14050]
60939         [BZ #14117]
60940         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60941         functions if __x86_64__ is defined.
60942
60943 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60944
60945         * string/endian.h: Add !__ASSEMBLER__ condition for including
60946         conversion interfaces.
60947
60948 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60949
60950         [BZ #14241]
60951         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60952         of ABS(x) in calculating zero to negative powers other than odd
60953         integers.
60954         * math/libm-test.inc (pow_test): Add more tests.
60955
60956 2012-06-15  Andreas Jaeger  <aj@suse.de>
60957
60958         * manual/contrib.texi (Contributors): Update entry of Liubov
60959         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60960         Machado Filho.
60961
60962 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60963
60964         * string/string.h: Add __wur to GNU version of strerror_r.
60965
60966 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60967
60968         [BZ #14229]
60969         * string/Makefile (tests): Add tst-strtok_r.
60970         * string/tst-strtok_r.c: New file.
60971         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60972         RAX_LP/RDX_LP on SAVE_PTR.
60973
60974 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60975
60976         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60977
60978 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60979
60980         * libm_test.inc (csqrt_test): Allow more spurious underflow
60981         exceptions.
60982         (j0_test): Likewise.
60983         (j1_test): Likewise.
60984         (y0_test): Likewise.
60985         (y1_test): Likewise.
60986
60987 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60988
60989         * po/Makefile (libc.pot): Use UTF-8 charset.
60990
60991 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60992
60993         [BZ #14210]
60994         Suppress sign-conversion warning from FD_SET.
60995         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60996         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60997         not unsigned long int.
60998         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60999
61000 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
61001
61002         [BZ #14050]
61003         [BZ #14117]
61004         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
61005         __extern_always_inline instead of __extern_inline.
61006         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
61007         (__signbit): Likewise.
61008         (__signbitl): Support C++ namespace.
61009         (lrintf): New inline function.
61010         (lrint): Likewise.
61011         (llrintf): Likewise.
61012         (llrint): Likewise.
61013         (fmaxf): Likewise.
61014         (fmax): Likewise.
61015         (fminf): Likewise.
61016         (fmin): Likewise.
61017         (rint): Likewise.
61018         (rintf): Likewise.
61019         (ceil): Likewise.
61020         (ceilf): Likewise.
61021         (floor): Likewise.
61022         (floorf): Likewise.
61023         (nearbyint): Likewise.
61024         (nearbyintf): Likewise.
61025
61026 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
61027
61028         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
61029         non-default versions.
61030
61031 2012-06-11  Roland McGrath  <roland@hack.frob.com>
61032
61033         [BZ #14218]
61034         * manual/argp.texi (Argp): Reword argp_parse description slightly.
61035
61036 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
61037
61038         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
61039         (FE_UPWARD, FE_DOWNWARD): Don't define.
61040         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
61041         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61042
61043         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
61044         reading it.
61045         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61046         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61047
61048 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61049
61050         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
61051         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
61052         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
61053         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
61054
61055 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
61056
61057         [BZ #14117]
61058         * sysdeps/i386/fpu/bits/fenv.h: Removed.
61059         * sysdeps/i386/fpu/Implies: New file.
61060         * sysdeps/x86_64/fpu/Implies: Likewise.
61061         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
61062         * sysdeps/x86/fpu/bits/fenv.h: This.
61063
61064         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
61065         __SSE_MATH__.
61066
61067 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61068
61069         [BZ #14134]
61070         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
61071         character 0xffff that matches the last element of the
61072         conversion table.
61073
61074 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61075
61076         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
61077         fmodl commit.
61078
61079 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61080
61081         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
61082         values higher than 25.6283.
61083
61084 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61085
61086         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
61087         subnormal exponent extraction and add some __builtin_expect.
61088         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
61089         Fix for subnormal mantissa calculation.
61090
61091 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
61092
61093         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
61094         cpu2 is -1 and errno is not ENOSYS.
61095
61096 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
61097
61098         [BZ #14117]
61099         * sysdeps/i386/i486/bits/string.h: Renamed to ...
61100         * sysdeps/x86/bits/string.h: This.
61101         * sysdeps/x86_64/bits/string.h: Removed.
61102
61103         * sysdeps/i386/i486/bits/string.h: Define inline functions only
61104         if not compiling for x86-64, but compiling for >= i486.
61105
61106         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
61107         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
61108
61109         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
61110         New macro from Linux kernel 3.4.0.
61111         (FP_XSTATE_MAGIC2): Likewise.
61112         (FP_XSTATE_MAGIC2_SIZE): Likewise.
61113         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
61114         (struct _fpx_sw_bytes): New struct.
61115         (struct _xsave_hdr): Likewise.
61116         (struct _ymmh_state): Likewise.
61117         (struct _xstate): Likewise.
61118
61119         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
61120         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
61121         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
61122         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
61123         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
61124         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61125
61126         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61127         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61128         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61129         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61130         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61131         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61132
61133 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61134
61135         [BZ #13743]
61136         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61137         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61138         (sysdep_headers): Include sys/platform/ppc.h.
61139         * sysdeps/powerpc/test-gettimebase.c: Test for
61140         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61141         * manual/Makefile (appendices): Include platform.texi.
61142         * manual/contrib.texi (Contributors): Update @node pointers.
61143         * manual/maint.texi (Maintenance): Likewise.
61144         (Platform): New node.
61145         * manual/platform.texi: New file.  Document the new features.
61146
61147 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61148             Jakub Jelinek  <jakub@redhat.com>
61149
61150         [BZ #14188]
61151         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61152         where __builtin_expect is unavailable.
61153
61154 2012-06-03  David S. Miller  <davem@davemloft.net>
61155
61156         * stdlib/longlong.h: Updated from GCC.
61157
61158 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61159
61160         [BZ #14042]
61161         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61162         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61163         __mcount_internal.
61164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61165         (GLIBC_2.16): Likewise.
61166
61167 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61168
61169         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61170
61171 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61172
61173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61174         (default-abi): New variable.
61175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61176         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61177         variable.
61178         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61179         Likewise.
61180         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61181         Likewise.
61182         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61183         Likewise.
61184
61185         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61186         definition.  Document in comment.
61187
61188 2012-06-01  David S. Miller  <davem@davemloft.net>
61189
61190         * stdlib/longlong.h: Updated from GCC.
61191
61192 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61193
61194         [BZ #14117]
61195         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61196         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61197         sys/debugreg.h sys/io.h here.
61198         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61199         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61200         sys/io.h.
61201         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61202         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61203         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61204         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61205         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61206         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61207
61208         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61209         Define only if __x86_64__ is defined.
61210
61211 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61212
61213         [BZ #14048]
61214         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61215         Use int64_t for variable i.
61216         * math/libm-test.inc (fmod_test): Add more tests.
61217
61218         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61219         z computation is not scheduled after fetestexcept.
61220         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61221         Use math_force_eval instead of asm to ensure calculation scheduled
61222         before exception test.
61223         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61224         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61225
61226 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61227
61228         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61229         computation is not scheduled after fetestexcept.
61230
61231 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61232
61233         [BZ #14117]
61234         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61235         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61236
61237 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61238
61239         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61240         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61241
61242 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61243
61244         [BZ #14117]
61245         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61246         <bits/wordsize.h>.
61247         (__WCHAR_MIN): Support __WORDSIZE == 64.
61248         (__WCHAR_MAX): Likewise.
61249
61250         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61251         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61252
61253         [BZ #14183]
61254         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61255         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61256
61257         [BZ #14117]
61258         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61259         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61260
61261         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61262         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61263
61264         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61265         Defined to 1 if __x86_64__ isn't defined.
61266         (_STAT_VER_LINUX_OLD): New.
61267         (st_atime): Remove duplicate.
61268         (st_mtime): Likewise.
61269         (st_ctime): Likewise.
61270
61271 2012-05-31  David S. Miller  <davem@davemloft.net>
61272
61273         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61274         entries.
61275
61276 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61277
61278         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61279         gen-libm-test.pl.
61280
61281         [BZ #14132]
61282         * elf/dl-reloc.c: Include <_itoa.h>.
61283         (_dl_reloc_bad_type): Remove use of INTUSE.
61284         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61285         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61286         * stdio-common/psiginfo.c (psiginfo): Likewise.
61287         * stdio-common/psignal.c (psignal): Likewise.
61288         * string/strsignal.c (strsignal): Likewise.
61289         * include/signal.h (_sys_siglist): Declare hidden proto.
61290         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61291         INTVARDEF with libc_hidden_data_def.
61292         * stdio-common/itoa-udigits.c: Likewise.
61293         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61294         (_itoa_lower_digits_internal): Remove declaration.
61295         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61296         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61297         (_sys_sigabbrev_internal): Remove aliases.
61298         (_sys_siglist): Define hidden alias.
61299
61300 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61301
61302         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61303         bits/sysctl.h.
61304
61305 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61306
61307         [BZ #14117]
61308         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61309         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61310
61311         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61312         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61313         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61314         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61315         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61316         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61317
61318         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61319         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61320         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61321
61322         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61323         with __addr.
61324         (insw): Likewise.
61325         (insl): Likewise.
61326         (outsb): Likewise.
61327         (outsw): Likewise.
61328         (outsl): Likewise.
61329
61330         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61331         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61332         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61333
61334         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61335         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61336         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61337         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61338         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61339         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61340
61341         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61342         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61343
61344         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61345         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61346
61347         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61348         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61349         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61350
61351         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61352         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61353         to ...
61354         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61355
61356         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61357         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61358         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61359
61360         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61361         for x86-64.
61362         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61363
61364 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61365
61366         * math/math.h (M_El): Use two more decimal places.
61367         (M_LOG2El): Likewise.
61368         (M_LOG10El): Likewise.
61369         (M_LN2l): Likewise.
61370         (M_LN10l): Likewise.
61371         (M_PIl): Likewise.
61372         (M_PI_2l): Likewise.
61373         (M_PI_4l): Likewise.
61374         (M_1_PIl): Likewise.
61375         (M_2_PIl): Likewise.
61376         (M_2_SQRTPIl): Likewise.
61377         (M_SQRT2l): Likewise.
61378         (M_SQRT1_2l): Likewise.
61379
61380 2012-05-31  David S. Miller  <davem@davemloft.net>
61381
61382         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61383         values between float registers.
61384         * sysdeps/sparc/sparc64/memset.S: Likewise.
61385         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61386
61387 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61388
61389         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61390         -D_FORTIFY_SOURCE=1.
61391         (CPPFLAGS-tst-longjmp_chk.c): Define.
61392         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61393         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61394         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61395         CFLAGS-tst-wchar-h.c.
61396
61397 2012-05-31  Marek Polacek  <polacek@redhat.com>
61398
61399         [BZ #14132]
61400         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61401         __endmntent_internal): Remove declaration.
61402         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61403         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61404         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61405
61406 2012-05-30  David S. Miller  <davem@davemloft.net>
61407
61408         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61409         (___Q_simulate_exceptions): Use real FP ops rather than writing
61410         into the %fsr.
61411         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61412         Likewise.
61413
61414 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61415
61416         [BZ #14117]
61417         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61418         * sysdeps/x86/bits/xtitypes.h: This.
61419
61420         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61421         * sysdeps/x86/bits/wordsize.h: This.
61422
61423         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61424         * sysdeps/x86/bits/huge_vall.h: This.
61425
61426         * sysdeps/i386/bits/select.h: Removed.
61427         * sysdeps/x86_64/bits/select.h: Renamed to ...
61428         * sysdeps/x86/bits/select.h: This.
61429
61430         * sysdeps/i386/bits/setjmp.h: Removed.
61431         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61432         * sysdeps/x86/bits/setjmp.h: This.
61433
61434         * sysdeps/i386/bits/mathdef.h: Removed.
61435         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61436         * sysdeps/x86/bits/mathdef.h: This.
61437
61438 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61439
61440         [BZ #14132]
61441         * include/sys/socket.h (__connect_internal)
61442         (__libc_sa_len_internal): Remove declaration.
61443         (__connect, __libc_sa_len): Declare hidden_proto.
61444         (SA_LEN): Remove use of INTUSE.
61445         * socket/connect.c: Add libc_hidden_def.
61446         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61447         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61448         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61449         alias.
61450         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61451         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61452         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61453         of adding _internal alias.
61454
61455 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61456
61457         [BZ #14117]
61458         * sysdeps/i386/bits/link.h: Removed.
61459         * sysdeps/i386/bits/linkmap.h: Likewise.
61460         * sysdeps/x86_64/bits/link.h: Renamed to ...
61461         * sysdeps/x86/bits/link.h: This.
61462         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61463         * sysdeps/x86/bits/linkmap.h: This.
61464
61465         * sysdeps/i386/bits/endian.h: Removed.
61466         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61467         * sysdeps/x86/bits/endian.h: This.
61468
61469         * sysdeps/i386/bits/byteswap.h: Removed.
61470         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61471         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61472         * sysdeps/x86/bits/byteswap.h: This.
61473         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61474         * sysdeps/x86/bits/byteswap-16.h: This.
61475         * sysdeps/i386/Implies: Add x86.
61476         * sysdeps/x86_64/Implies: Likewise.
61477
61478 2012-05-30  David S. Miller  <davem@davemloft.net>
61479
61480         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61481         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61482         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61483         (FP_TRAPPING_EXCEPTIONS): Define.
61484         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61485         (FP_TRAPPING_EXCEPTIONS): Define.
61486         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61487         subnormals only when inexact has been signalled or underflow
61488         exceptions are enabled.
61489         (_FP_PACK_CANONICAL): Likewise.
61490
61491 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61492
61493         [BZ #14183]
61494         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61495         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61496
61497 2012-05-30  Richard Henderson  <rth@twiddle.net>
61498
61499         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61500         with #ifndef NOT_IN_libc.
61501
61502         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61503         marked to avoid plt entry.
61504
61505 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61506
61507         [BZ #14112]
61508         * Makeconfig (default-abi): New macro.
61509         (abi-includes): Likewise.
61510         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61511         $(abi-$(default-abi)-lib-soname) for soname if defined.
61512         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61513         abi-variants.
61514         * Makefile (installed-stubs): Likewise.
61515         * include/stubs-biarch.h: Removed.
61516         * scripts/lib-names.awk: Only handle one library at a time.
61517         * scripts/soversions.awk: Remove WORDSIZE support.
61518         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61519         entries.
61520         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61521         Removed.
61522         (syscall-list-default-condition): Likewise.
61523         (syscall-list-default-condition): Likewise.
61524         (syscall-list-includes): Likewise.
61525         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61526         syscall-list-* with abi-*.  Handle undefined abi-variants.
61527         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61528         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61529         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61530         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61531         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61532         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61533         Removed.
61534         (syscall-list-32-options): Likewise.
61535         (syscall-list-32-condition): Likewise.
61536         (syscall-list-64-options): Likewise.
61537         (syscall-list-64-condition): Likewise.
61538         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61539         macro.
61540         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61541         Renamed to ...
61542         (abi-*): This.
61543         (abi-64-ld-soname): New macro.
61544         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61545         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61546         Renamed to ...
61547         (abi-*): This.
61548         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61549         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61550
61551 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61552
61553         * sysdeps/unix/sysv/linux/kernel-features.h
61554         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61555         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61556         include <kernel-features.h>.
61557         [!__NR_ftruncate64]: Remove conditional code.
61558         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61559         [__NR_ftruncate64]: Make code unconditional.
61560         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61561         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61562         include <kernel-features.h>.
61563         [!__NR_ftruncate64]: Remove conditional code.
61564         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61565         [__NR_ftruncate64]: Make code unconditional.
61566         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61568         include <kernel-features.h>.
61569         [!__NR_ftruncate64]: Remove conditional code.
61570         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61571         [__NR_ftruncate64]: Make code unconditional.
61572         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61574         include <kernel-features.h>.
61575         [!__NR_ftruncate64]: Remove conditional code.
61576         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61577         [__NR_ftruncate64]: Make code unconditional.
61578         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61579
61580         * configure.in (libc_cv_fpie): Weaken to a compile test using
61581         LIBC_TRY_CC_OPTION.
61582         * configure: Regenerated.
61583
61584 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61585
61586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61587         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61590         Refreshed.
61591         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61593         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61594         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61596         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61597         Refreshed.
61598
61599 2012-05-27  David S. Miller  <davem@davemloft.net>
61600
61601         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61602         (___Q_zero): New.
61603         (__Q_simulate_exceptions): Return void.  Change to simulate
61604         exceptions by writing into the %fsr.
61605         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61606         (__Qp_handle_exceptions): Likewise.
61607         (numbers): Delete.
61608         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61609         __Qp_handle_exceptions.
61610         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61611         __Qp_handle_exceptions.
61612         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61613         as unused and give dummy FP_RND_NEAREST initializer.
61614         (FP_INHIBIT_RESULTS): Define.
61615         (___Q_simulate_exceptions): Update declaration.
61616         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61617         formatting.
61618         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61619         as unused and give dummy FP_RND_NEAREST initializer.
61620         (__Qp_handle_exceptions): Update declaration.
61621         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61622         formatting.
61623
61624 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61625
61626         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61627         the temporary FPU control word.
61628         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61629         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61630         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61631         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61632         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61633         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61634         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61635         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61636         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61637         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61638         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61639
61640 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61641
61642         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61643         fields.
61644
61645 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61646
61647         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61648         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61649         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61650         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61651         Likewise.
61652         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61653         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61654         Likewise.
61655
61656 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61657
61658         * po/h.po: Update from translation team.
61659
61660 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61661
61662         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61663
61664         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61665         handling of denormals.
61666         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61667         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61668         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61669         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61670         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61671         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61672         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61673         Likewise.
61674
61675 2012-05-26  Marek Polacek  <polacek@redhat.com>
61676
61677         [BZ #14152]
61678         * math/libm-test.inc (fma_test): Don't always expect underflow
61679         exception.
61680
61681 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61682
61683         [BZ #12416]
61684         * elf/tst-execstack.c: Include stackinfo.h.
61685         (do_test): Adjust test case to ensure that pthread_getattr_np
61686         behaviour remains the same after marking stack executable.
61687
61688 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61689
61690         * sysdeps/unix/sysv/linux/kernel-features.h
61691         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61692         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61693         kernel-features.h.
61694         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61695         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61696         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61697         kernel-features.h.
61698         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61699         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61700
61701 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61702
61703         * configure.in: Define the default includes to being none.
61704         * configure: Regenerated.
61705
61706 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61707
61708         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61709         * sysdeps/x86_64/setjmp.S: Likewise.
61710         * sysdeps/i386/bsd-setjmp.S: Likewise.
61711         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61712         * sysdeps/i386/setjmp.S: Likewise.
61713         * sysdeps/i386/__longjmp.S: Likewise.
61714         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61715         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61716
61717         * include/stap-probe.h: New file.
61718         * configure.in: Handle --enable-systemtap.
61719         * configure: Regenerated.
61720         * config.h.in (USE_STAP_PROBE): New #undef.
61721         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61722         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61723         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61724
61725 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61726
61727         [BZ #13717]
61728         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61729         to 2.4.0 where earlier.
61730         * sysdeps/unix/sysv/linux/configure: Regenerated.
61731         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61732         <kernel-features.h>.
61733         [__ASSUME_32BITUIDS]: Make code unconditional.
61734         [!__ASSUME_32BITUIDS]: Remove conditional code.
61735         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61736         <kernel-features.h>.
61737         [__ASSUME_32BITUIDS]: Make code unconditional.
61738         [!__ASSUME_32BITUIDS]: Remove conditional code.
61739         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61740         [__ASSUME_32BITUIDS]: Make code unconditional.
61741         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61742         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61743         <kernel-features.h>.
61744         [__ASSUME_32BITUIDS]: Make code unconditional.
61745         [!__ASSUME_32BITUIDS]: Remove conditional code.
61746         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61747         <kernel-features.h>.
61748         [__ASSUME_32BITUIDS]: Make code unconditional.
61749         [!__ASSUME_32BITUIDS]: Remove conditional code.
61750         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61751         <kernel-features.h>.
61752         [__ASSUME_32BITUIDS]: Make code unconditional.
61753         [!__ASSUME_32BITUIDS]: Remove conditional code.
61754         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61755         <kernel-features.h>.
61756         [__ASSUME_32BITUIDS]: Make code unconditional.
61757         [!__ASSUME_32BITUIDS]: Remove conditional code.
61758         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61759         <kernel-features.h>.
61760         [__ASSUME_32BITUIDS]: Make code unconditional.
61761         [!__ASSUME_32BITUIDS]: Remove conditional code.
61762         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61763         <kernel-features.h>.
61764         [__ASSUME_32BITUIDS]: Make code unconditional.
61765         [!__ASSUME_32BITUIDS]: Remove conditional code.
61766         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61767         <kernel-features.h>.
61768         [__ASSUME_32BITUIDS]: Make code unconditional.
61769         [!__ASSUME_32BITUIDS]: Remove conditional code.
61770         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61771         <kernel-features.h>.
61772         [__ASSUME_32BITUIDS]: Make code unconditional.
61773         [!__ASSUME_32BITUIDS]: Remove conditional code.
61774         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61775         <kernel-features.h>.
61776         [__ASSUME_32BITUIDS]: Make code unconditional.
61777         [!__ASSUME_32BITUIDS]: Remove conditional code.
61778         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61779         <kernel-features.h>.
61780         [__ASSUME_32BITUIDS]: Make code unconditional.
61781         [!__ASSUME_32BITUIDS]: Remove conditional code.
61782         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61783         <kernel-features.h>.
61784         [__NR_setresgid] (__setresgid): Do not declare.
61785         [__ASSUME_32BITUIDS]: Make code unconditional.
61786         [!__ASSUME_32BITUIDS]: Remove conditional code.
61787         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61788         <kernel-features.h>.
61789         [__NR_setresuid] (__setresuid): Do not declare.
61790         [__ASSUME_32BITUIDS]: Make code unconditional.
61791         [!__ASSUME_32BITUIDS]: Remove conditional code.
61792         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.c: Do not include
61797         <kernel-features.h>.
61798         [__ASSUME_32BITUIDS]: Make code unconditional.
61799         [!__ASSUME_32BITUIDS]: Remove conditional code.
61800         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61801         <kernel-features.h>.
61802         [__ASSUME_32BITUIDS]: Make code unconditional.
61803         [!__ASSUME_32BITUIDS]: Remove conditional code.
61804         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61805         <kernel-features.h>.
61806         [__ASSUME_32BITUIDS]: Make code unconditional.
61807         [!__ASSUME_32BITUIDS]: Remove conditional code.
61808         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61809         <kernel-features.h>.
61810         [__ASSUME_32BITUIDS]: Make code unconditional.
61811         [!__ASSUME_32BITUIDS]: Remove conditional code.
61812         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61813         <kernel-features.h>.
61814         [__ASSUME_32BITUIDS]: Make code unconditional.
61815         [!__ASSUME_32BITUIDS]: Remove conditional code.
61816         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61817         <kernel-features.h>.
61818         [__ASSUME_32BITUIDS]: Make code unconditional.
61819         [!__ASSUME_32BITUIDS]: Remove conditional code.
61820         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61821         <kernel-features.h>.
61822         [__ASSUME_32BITUIDS]: Make code unconditional.
61823         [!__ASSUME_32BITUIDS]: Remove conditional code.
61824         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61825         <kernel-features.h>.
61826         [__ASSUME_32BITUIDS]: Make code unconditional.
61827         [!__ASSUME_32BITUIDS]: Remove conditional code.
61828         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61829         <kernel-features.h>.
61830         [__ASSUME_32BITUIDS]: Make code unconditional.
61831         [!__ASSUME_32BITUIDS]: Remove conditional code.
61832         * sysdeps/unix/sysv/linux/kernel-features.h
61833         (__ASSUME_SETRESUID_SYSCALL): Remove.
61834         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61835         (__ASSUME_32BITUIDS): Likewise.
61836         (__ASSUME_LDT_WORKS): Likewise.
61837         (__ASSUME_O_DIRECTORY): Likewise.
61838         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61839         architecture but not kernel version.
61840         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61841         (__ASSUME_MMAP2_SYSCALL): Likewise.
61842         (__ASSUME_STAT64_SYSCALL): Likewise.
61843         (__ASSUME_IPC64): Likewise.
61844         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61845         <kernel-features.h>.
61846         [__ASSUME_32BITUIDS]: Make code unconditional.
61847         [!__ASSUME_32BITUIDS]: Remove conditional code.
61848         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61849         <kernel-features.h>.
61850         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61851         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61852         132096]: Remove conditional code.
61853         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61854         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61855         <kernel-features.h>.
61856         [__ASSUME_32BITUIDS]: Make code unconditional.
61857         [!__ASSUME_32BITUIDS]: Remove conditional code.
61858         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61859         <kernel-features.h>.
61860         [__ASSUME_32BITUIDS]: Make code unconditional.
61861         [!__ASSUME_32BITUIDS]: Remove conditional code.
61862         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61863         <kernel-features.h>.
61864         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61865         unconditional.
61866         (__setresgid): Do not declare.
61867         [__ASSUME_32BITUIDS]: Make code unconditional.
61868         [!__ASSUME_32BITUIDS]: Remove conditional code.
61869         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61870         <kernel-features.h>.
61871         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61872         unconditional.
61873         (__setresuid): Do not declare.
61874         [__ASSUME_32BITUIDS]: Make code unconditional.
61875         [!__ASSUME_32BITUIDS]: Remove conditional code.
61876         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61877         <kernel-features.h>.
61878         [__ASSUME_32BITUIDS]: Make code unconditional.
61879         [!__ASSUME_32BITUIDS]: Remove conditional code.
61880         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61881         <kernel-features.h>.
61882         [__ASSUME_32BITUIDS]: Make code unconditional.
61883         [!__ASSUME_32BITUIDS]: Remove conditional code.
61884
61885 2012-05-25  Richard Henderson  <rth@twiddle.net>
61886
61887         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61888         dl_hwcap to ifunc resolver.
61889         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61890         elf_ifunc_invoke.
61891         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61892         dl_hwcap to ifunc resolver.
61893         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61894
61895 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61896
61897         [BZ #14153]
61898         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61899         for |x| <= 2**-26, not 2**-57.
61900         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61901         exception.
61902
61903 2012-05-24  Jeff Law  <law@redhat.com>
61904
61905         * stdio-common/Makefile (tests): Add bug25.
61906         * stdio-common/bug25.c: New test.
61907
61908 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61909
61910         [BZ #13576]
61911         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61912         multiple of MALLOC_ALIGNMENT in size.
61913         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61914
61915 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61916
61917         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61918         Require >= 256.
61919         (FILENAME_MAX): Use macro-int-constant.
61920         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61921         (_IOFBF): Use macro-int-constant.
61922         (_IOLBF): Likewise.
61923         (_IONBF): Likewise.
61924         (SEEK_CUR): Likewise.
61925         (SEEK_END): Likewise.
61926         (SEEK_SET): Likewise.
61927         (TMP_MAX): Likewise.
61928         (EOF): Use macro-int-constant.  Require < 0.
61929         (NULL): Use macro-constant.  Require == 0.
61930         (stdin): Require type to be FILE *.
61931         (stdout): Likewise.
61932         (stderr): Likewise.
61933         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61934         macro-int-constant.
61935         (EXIT_SUCCESS): Likewise.
61936         (NULL): Use macro-constant.  Require == 0.
61937         (RAND_MAX): Use macro-int-constant.
61938         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61939         [C99-based standards] (strtof): Require function.
61940         [C99-based standards] (strtold): Likewise.
61941         [C99-based standards] (strtoll): Likewise.
61942         [C99-based standards] (strtoull): Likewise.
61943         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61944         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61945         [ISO || ISO99 || ISO11] (math.h): Likewise.
61946         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61947         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61948         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61949
61950 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61951
61952         [BZ #14132]
61953         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61954         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61955         * intl/dgettext.c (DCGETTEXT): Likewise.
61956         * intl/gettext.c (DCGETTEXT): Likewise.
61957         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61958         * posix/regex_internal.h (gettext): Likewise.
61959         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61960         Remove declaration.
61961         * include/argz.h (__argz_count_internal)
61962         (__argz_stringify_internal): Remove declaration.
61963         (__argz_count, __argz_stringify): Declare hidden proto.
61964         * intl/dcgettext.c: Remove use of INTDEF.
61965         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61966         * string/argz-stringify.c: Likewise.
61967         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61968         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61969         Declare hidden proto.
61970         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61971         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61972         Declare hidden proto.
61973         * include/stdio.h (__asprintf_internal): Don't declare.
61974         (__asprintf): Don't define as macro.  Declare hidden proto.
61975         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61976         (__fsetlocking): Declare hidden proto.
61977         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61978         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61979         hidden proto.
61980         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61981         (_IO_setlinebuf): Remove use of INTUSE.
61982         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61983         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61984         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61985         Remove declaration.
61986         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61987         (_IO_do_flush): Remove use of INTUSE.
61988         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61989         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61990         (_IO_adjust_column, _IO_least_wmarker)
61991         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61992         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61993         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61994         (_IO_default_doallocate, _IO_wdefault_doallocate)
61995         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61996         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61997         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61998         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61999         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
62000         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
62001         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
62002         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
62003         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
62004         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
62005         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
62006         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
62007         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
62008         proto.
62009         (_IO_flush_all_internal, _IO_adjust_column_internal)
62010         (_IO_default_uflow_internal, _IO_default_finish_internal)
62011         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
62012         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
62013         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
62014         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
62015         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
62016         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
62017         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
62018         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
62019         (_IO_file_close_internal, _IO_file_close_it_internal)
62020         (_IO_file_underflow_internal, _IO_file_overflow_internal)
62021         (_IO_file_init_internal, _IO_file_attach_internal)
62022         (_IO_file_fopen_internal, _IO_file_read_internal)
62023         (_IO_file_sync_internal, _IO_file_seek_internal)
62024         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
62025         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
62026         (_IO_str_underflow_internal, _IO_str_overflow_internal)
62027         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
62028         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
62029         (_IO_list_all_internal, _IO_link_in_internal)
62030         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
62031         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
62032         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
62033         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
62034         (_IO_do_write_internal, _IO_padn_internal)
62035         (_IO_getline_info_internal, _IO_getline_internal)
62036         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
62037         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
62038         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
62039         (_IO_vfscanf_internal, _IO_vfprintf_internal)
62040         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
62041         (_IO_init_internal, _IO_un_link_internal): Don't declare.
62042         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
62043         with libc_hidden_ver, remove use of INTUSE.
62044         * libio/genops.c: Likewise.
62045         * libio/freopen.c: Likewise.
62046         * libio/freopen64.c: Likewise.
62047         * libio/iofclose.c: Likewise.
62048         * libio/iofdopen.c: Likewise.
62049         * libio/iofflush.c: Likewise.
62050         * libio/iofflush_u.c: Likewise.
62051         * libio/iofgets.c: Likewise.
62052         * libio/iofgets_u.c: Likewise.
62053         * libio/iofopen.c: Likewise.
62054         * libio/iofopncook.c: Likewise.
62055         * libio/iofread.c: Likewise.
62056         * libio/iofread_u.c: Likewise.
62057         * libio/ioftell.c: Likewise.
62058         * libio/iofwrite.c: Likewise.
62059         * libio/iogetline.c: Likewise.
62060         * libio/iogets.c: Likewise.
62061         * libio/iogetwline.c: Likewise.
62062         * libio/iopadn.c: Likewise.
62063         * libio/iopopen.c: Likewise.
62064         * libio/ioseekoff.c: Likewise.
62065         * libio/ioseekpos.c: Likewise.
62066         * libio/iosetbuffer.c: Likewise.
62067         * libio/iosetvbuf.c: Likewise.
62068         * libio/ioungetc.c: Likewise.
62069         * libio/ioungetwc.c: Likewise.
62070         * libio/iovdprintf.c: Likewise.
62071         * libio/iovsprintf.c: Likewise.
62072         * libio/iovsscanf.c: Likewise.
62073         * libio/memstream.c: Likewise.
62074         * libio/obprintf.c: Likewise.
62075         * libio/oldfileops.c: Likewise.
62076         * libio/oldiofclose.c: Likewise.
62077         * libio/oldiofdopen.c: Likewise.
62078         * libio/oldiofopen.c: Likewise.
62079         * libio/oldiopopen.c: Likewise.
62080         * libio/oldstdfiles.c: Likewise.
62081         * libio/putc.c: Likewise.
62082         * libio/setbuf.c: Likewise.
62083         * libio/setlinebuf.c: Likewise.
62084         * libio/stdfiles.c: Likewise.
62085         * libio/strops.c: Likewise.
62086         * libio/vasprintf.c: Likewise.
62087         * libio/vscanf.c: Likewise.
62088         * libio/vsnprintf.c: Likewise.
62089         * libio/vswprintf.c: Likewise.
62090         * libio/wfiledoalloc.c: Likewise.
62091         * libio/wfileops.c: Likewise.
62092         * libio/wgenops.c: Likewise.
62093         * libio/wmemstream.c: Likewise.
62094         * libio/wstrops.c: Likewise.
62095         * libio/__fpurge.c: Likewise.
62096         * libio/__fsetlocking.c: Likewise.
62097         * assert/assert.c: Likewise.
62098         * debug/fgets_chk.c: Likewise.
62099         * debug/fgets_u_chk.c: Likewise.
62100         * debug/fread_chk.c: Likewise.
62101         * debug/fread_u_chk.c: Likewise.
62102         * debug/gets_chk.c: Likewise.
62103         * debug/obprintf_chk.c: Likewise.
62104         * debug/vasprintf_chk.c: Likewise.
62105         * debug/vdprintf_chk.c: Likewise.
62106         * debug/vsnprintf_chk.c: Likewise.
62107         * debug/vsprintf_chk.c: Likewise.
62108         * malloc/mtrace.c: Likewise.
62109         * misc/error.c: Likewise.
62110         * misc/syslog.c: Likewise.
62111         * stdio-common/asprintf.c: Likewise.
62112         * stdio-common/fxprintf.c: Likewise.
62113         * stdio-common/getw.c: Likewise.
62114         * stdio-common/isoc99_fscanf.c: Likewise.
62115         * stdio-common/isoc99_scanf.c: Likewise.
62116         * stdio-common/isoc99_vfscanf.c: Likewise.
62117         * stdio-common/isoc99_vscanf.c: Likewise.
62118         * stdio-common/isoc99_vsscanf.c: Likewise.
62119         * stdio-common/printf-prs.c: Likewise.
62120         * stdio-common/printf_fp.c: Likewise.
62121         * stdio-common/printf_fphex.c: Likewise.
62122         * stdio-common/printf_size.c: Likewise.
62123         * stdio-common/putw.c: Likewise.
62124         * stdio-common/scanf.c: Likewise.
62125         * stdio-common/sprintf.c: Likewise.
62126         * stdio-common/tmpfile.c: Likewise.
62127         * stdio-common/vfprintf.c: Likewise.
62128         * stdio-common/vfscanf.c: Likewise.
62129         * stdlib/strfmon_l.c: Likewise.
62130         * sunrpc/openchild.c: Likewise.
62131         * sunrpc/xdr_stdio.c: Likewise.
62132         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62133         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62134
62135 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62136
62137         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62138
62139         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62140         in the third column, to generate for the shared library an IFUNC
62141         that uses _dl_vdso_vsym.
62142         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62143         * Makeconfig (object-suffixes-noshared): New variable.
62144
62145         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62146         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62147         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62148         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62149
62150         [BZ #14132]
62151         * include/sys/time.h (__gettimeofday): Remove macro.
62152         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62153         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62154         Remove INTDEF.
62155         (__gettimeofday): Add libc_hidden_def.
62156         (gettimeofday): Add libc_hidden_weak.
62157         * sysdeps/mach/gettimeofday.c: Likewise.
62158         * sysdeps/posix/gettimeofday.c: Likewise.
62159         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62160         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62162         (__gettimeofday_internal): Remove strong_alias.
62163         (__gettimeofday): Add libc_hidden_def.
62164         (gettimeofday): Add libc_hidden_weak.
62165         * sysdeps/unix/syscalls.list (gettimeofday):
62166         Remove __gettimeofday_internal alias.
62167
62168 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62169             H.J. Lu  <hongjiu.lu@intel.com>
62170
62171         [BZ #12495]
62172         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62173         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62174         (largebin_index_32_big): New.
62175         (largebin_index): Use it for 16-byte alignment.
62176         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62177         correction with front_misalign.
62178
62179 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62180
62181         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62182         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62183         Likewise.
62184         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62185         Likewise.
62186         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62187         Likewise.
62188         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62189         Likewise.
62190         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62191         Likewise.
62192         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62193         Likewise.
62194         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62195         Likewise.
62196         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62197         Likewise.
62198         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62199         Likewise.
62200         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62201         Likewise.
62202         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62203         Likewise.
62204         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62205         Likewise.
62206
62207         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62208         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62209
62210 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62211
62212         [BZ #10846]
62213         [BZ #14036]
62214         * math/libm-test.inc (exp_test): Add test from bug 14036.
62215         (pow_test): Add test from bug 10846.
62216
62217         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62218         and other flags.
62219         (special_function): Do not include flags in test name.
62220         (parse_args): Likewise.
62221         * sysdeps/i386/fpu/libm-test-ulps: Update.
62222         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62223         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62224         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62226
62227         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62228         exceptions.
62229         * math/libm-test.inc ("Philosophy"): Update comment about
62230         exception testing.
62231         (UNDERFLOW_EXCEPTION): New macro.
62232         (UNDERFLOW_EXCEPTION_OK): Likewise.
62233         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62234         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62235         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62236         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62237         (INVALID_EXCEPTION_OK): Update value.
62238         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62239         (OVERFLOW_EXCEPTION_OK): Likewise.
62240         (IGNORE_ZERO_INF_SIGN): Likewise.
62241         (test_exceptions): Handle underflow exceptions.
62242         (acos_test): Update for underflow exception expectations.
62243         (cexp_test): Likewise.
62244         (clog_test): Likewise.
62245         (clog10_test): Likewise.
62246         (csqrt_test): Likewise.
62247         (ctan_test): Likewise.
62248         (ctanh_test): Likewise.
62249         (exp_test): Likewise.
62250         (exp10_test): Likewise.
62251         (exp2_test): Likewise.
62252         (expm1_test): Likewise.
62253         (fma_test): Likewise.
62254         (j0_test): Likewise.
62255         (jn_test): Likewise.
62256         (nexttoward_test): Likewise.
62257         (pow_test): Likewise.
62258         (scalbn_test): Likewise.
62259         (scalbln_test): Likewise.
62260         (tan_test): Likewise.
62261         (y1_test): Likewise.
62262         * sysdeps/i386/fpu/libm-test-ulps: Update.
62263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62264
62265 2012-05-23  David S. Miller  <davem@davemloft.net>
62266
62267         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62268         (__libc_sigaction): Remove unused local variables.
62269
62270 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62271
62272         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62273
62274 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62275
62276         mktime: avoid signed integer overflow
62277         * time/mktime.c (__mktime_internal): Do not mishandle the case
62278         where diff == INT_MIN.
62279
62280         mktime: simplify computation of average
62281         * time/mktime.c (ranged_convert): Use new time_t_avg function
62282         instead of rolling our own (probably-slower) code.
62283
62284         mktime: do not assume signed right shift propagates sign bit
62285         * time/mktime.c (isdst_differ): New static function.
62286         (__mktime_internal): No need to normalize tm_isdst now.
62287         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62288         tm_isdst values.
62289
62290         mktime: merge another wrapv change from gnulib
62291         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62292         from some compilers.
62293
62294         mktime: remove incorrect attempt at unusual arithmetics
62295         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62296         The code didn't really work on such machines anyway.
62297         (TYPE_MINIMUM): Assume two's complement.
62298         (twos_complement_arithmetic): Verify that long_int and time_t
62299         are two's complement (or unsigned, in the latter case).
62300
62301         mktime: check signed shifts on long_int and time_t, too
62302         * time/mktime.c (SHR): Check that shifts work as desired
62303         on the types long_int and time_t too, as SHR is used on
62304         such types.
62305
62306         mktime: do not assume 'long' is wide enough
62307         * time/mktime.c (verify): Move decl up.
62308         (long_int): New type.
62309         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62310         to remove assumption in the code that 'long' is wide enough to
62311         store year values.  This assumption is not true on x32 and on
62312         some non-glibc platforms.
62313
62314         mktime: merge wrapv change from gnulib
62315         * time/mktime.c (WRAPV): New macro.
62316         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62317         (guess_time_tm, __mktime_internal): Do not assume that signed
62318         integer overflow wraps around; modern compilers generate code
62319         where this assumption is no longer valid.
62320
62321 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62322
62323         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62324         Replace "jmp L(pseudo_end)" with "ret".
62325         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62326         Likewise.
62327
62328 2012-05-23  Andreas Jaeger  <aj@suse.de>
62329
62330         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62331         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62332
62333 2012-05-23  Andreas Jaeger  <aj@suse.de>
62334             Maximilian Attems  <max@stro.at>
62335
62336         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62337         New macros.
62338
62339 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62340
62341         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62342         code so that pseudo_end is just ret and the stack pointer is
62343         correct also for static library in error case.
62344
62345 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62346
62347         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62348         move to syscalls.list.
62349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62353
62354         * manual/install.texi (Running make install): Do not mention Linux
62355         kernel version for which pt_chown is not needed.
62356         (Linux): Do not mention problems with nscd with 2.0 kernels.
62357         * INSTALL: Regenerated.
62358
62359 2012-05-23  Andreas Jaeger  <aj@suse.de>
62360
62361         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62362         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62363         macro.
62364         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62365         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62366         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62367         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62368         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62369         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62370         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62371         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62372         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62373         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62374         * sysdeps/unix/sysv/linux/bits/in.h
62375         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62376
62377 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62378
62379         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62380         (PREPARE_VERSION): Just use assert instead, it will be elided
62381         under [NDEBUG] anyway.
62382
62383 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62384
62385         * sysdeps/unix/sysv/linux/Makefile: Include
62386         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62387         (sysdep_routines): Remove sysctl.
62388         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62389         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62390         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62391         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62392         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62393
62394 2012-05-22  Andreas Jaeger  <aj@suse.de>
62395
62396         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62397         that pseudo_end is just ret and the stack pointer is correct also
62398         for static library in error case.
62399
62400 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62401
62402         [BZ #14122]
62403         * nss/nsswitch.c (defconfig_entries): New variable.
62404         (__nss_database_lookup): Don't leak defconfig entries.
62405         (nss_parse_service_list): Don't leak on error paths.
62406         (free_database_entries): New function.
62407         (free_defconfig): New function.
62408         (free_mem): Move common code to free_database_entries.
62409
62410 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62411
62412         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62413         Add arch_prctl.
62414         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62415
62416         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62417         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62418         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62419         New macro.
62420         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62421         (INTERNAL_SYSCALL_TYPES): Likewise.
62422         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62423         (LOAD_REGS_TYPES_[1-6]): Likewise.
62424         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62425         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62426
62427 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62428
62429         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62430         copysignl for GLIBC_2_0.
62431         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62432         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62433         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62434         logbl for GLIBC_2_0.
62435         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62436         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62437
62438 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62439
62440         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62441         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62442
62443         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62444         Use "neg %eax".
62445
62446         * time/mktime.c: Update copyright years.
62447
62448 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         mktime: merge comment-quoting-style change from gnulib
62451         * time/mktime.c: Quote 'like this' in comments.
62452         The GNU coding standards suggest that we no longer quote `like this',
62453         as "`" and "'" are typically rendered asymmetrically nowadays.
62454         The typical gnulib style is to quote 'like this' when quoting
62455         code, and "like this" when quoting English.
62456
62457         * time/mktime.c (compile-command): Add "-I.".
62458
62459         mktime: merge mktime-internal.h change from gnulib
62460         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62461
62462         mktime: merge time_r change from gnulib
62463         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62464
62465         mktime: merge DEBUG change from gnulib
62466         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62467         case system <time.h> has a #define.
62468
62469         mktime: merge <sys/types.h> change from gnulib
62470         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62471         since <time.t> is now guaranteed to define time_t.
62472
62473         mktime: merge HAVE_CONFIG_H change from gnulib
62474         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62475
62476 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62477
62478         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62479         Use "neg %eax".
62480
62481         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62482         __rlim_t cast.
62483         (struct rusage): Use anonymous union to pad each field to
62484         __syscall_slong_t.
62485
62486 2012-05-21  David S. Miller  <davem@davemloft.net>
62487
62488         * Makefules (o-iterator): Remove .s cases.
62489         (compile-command.s): Delete.
62490         (COMPILE.s): Delete.
62491         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62492
62493 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62494
62495         * configure.in (libc_cv_predef_stack_protector): Only consider
62496         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62497         * configure: Regenerated.
62498
62499 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62500
62501         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62502         New macro.  Use R*LP on int and pointer.
62503         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62504         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62505         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62506         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62507
62508         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62509         [__WORDSIZE_TIME64_COMPAT32] instead of
62510         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62511         (struct utmp): Likewise.
62512         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62513         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62514         Renamed to ...
62515         (__WORDSIZE_TIME64_COMPAT32): This.
62516         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62517         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62518         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62519         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62520         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62521         (__WORDSIZE_TIME64_COMPAT32): New macro.
62522
62523 2012-05-21  Andreas Jaeger  <aj@suse.de>
62524
62525         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62526         only if [SHARED]. Add prototype for __wcschr_ia32.
62527
62528 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62529
62530         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62531         of %rbp unmolested in the jmp_buf while mangling the low bits.
62532         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62533         unmolested high bits of %rbp while demangling the low bits.
62534         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62535
62536 2012-05-21  Andreas Jaeger  <aj@suse.de>
62537
62538         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62539         * sunrpc/svc_simple.c: Use it for registerrpc.
62540         * sunrpc/xcrypt.c: Use it for passwd2des.
62541
62542         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62543
62544 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62545
62546         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62547         Don't define if [__SYSCALL_WORDSIZE != 32].
62548         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62549         New macro.
62550
62551 2012-05-21  Bruno Haible  <bruno@clisp.org>
62552             Andreas Jaeger  <aj@suse.de>
62553
62554         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62555         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62556         inptr and inend for must_buffer_ch.
62557         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62558         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62559         * stdio-common/Makefile (tests): Remove bug15.
62560         (bug15-ENV): Remove macro.
62561         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62562         anymore.
62563
62564 2012-05-19  Andreas Jaeger  <aj@suse.de>
62565             Roland McGrath  <roland@hack.frob.com>
62566
62567         * manual/contrib.texi: Completely rewritten. It contains now an
62568         alphabetical list of contributors and their contributions.
62569
62570 2012-05-21  Richard Henderson  <rth@twiddle.net>
62571
62572         * misc/getauxval.c (__getauxval): Use unsigned long int.
62573         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62574         (getauxval): Use unsigned long int.
62575
62576 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62577
62578         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62579
62580 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62581
62582         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62583         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62584         __alignof__ (long double).
62585
62586 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62587
62588         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62589
62590 2012-05-20  Richard Henderson  <rth@twiddle.net>
62591
62592         * misc/getauxval.c: New file.
62593         * misc/sys/auxv.h: New file.
62594         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62595         (routines): Add getauxval.
62596         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62597         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62598         * elf/dl-sysdep.c (_dl_auxv): Remove.
62599         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62600         * elf/dl-support.c (_dl_auxv): New variable.
62601         (_dl_aux_init): Initialize it.
62602         * manual/startup.texi (Auxiliary Vector): New node.
62603         * sysdeps/generic/bits/hwcap.h: New file.
62604         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62605         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62606         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62607         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62608         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62609         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62611         Update.
62612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62613         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62614         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62615         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62617         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62618         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62619         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62620
62621 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62622
62623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62624
62625 2012-05-19  David S. Miller  <davem@davemloft.net>
62626
62627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62628
62629 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62630
62631         [BZ #14123]
62632         * math/s_ccosh.c: Include <float.h>
62633         (__ccosh): Avoid internal overflow calculating sinh and cosh
62634         values before multiplying by sin and cos values.
62635         * math/s_ccoshf.c: Likewise.
62636         * math/s_ccoshl.c: Likewise.
62637         * math/s_csin.c: Likewise.
62638         * math/s_csinf.c: Likewise.
62639         * math/s_csinl.c: Likewise.
62640         * math/s_csinh.c: Likewise.
62641         * math/s_csinhf.c: Likewise.
62642         * math/s_csinhl.c: Likewise.
62643         * math/libm-test.inc (ccos_test): Add more tests.
62644         (ccosh_test): Likewise.
62645         (csin_test): Likewise.
62646         (csinh_test): Likewise.
62647         * sysdeps/i386/fpu/libm-test-ulps: Update.
62648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62649
62650 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62651
62652         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62653         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62654
62655         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62656
62657 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62658
62659         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62660         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62661         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62662         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62663         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62664         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62665         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62666         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62667         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62668         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62669         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62670         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62671         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62672         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62673         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62674         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62675         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62676         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62677         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62678         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62679         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62680         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62681         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62682         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62683         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62684         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62685         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62686         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62687         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62688         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62689         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62690
62691 2012-05-18  Andreas Jaeger  <aj@suse.de>
62692
62693         * csu/.gitignore: Delete.
62694
62695 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62696
62697         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62698         (timex): Use __syscall_slong_t.
62699
62700 2012-05-18  Andreas Jaeger  <aj@suse.de>
62701             Carlos O'Donell  <carlos_odonell@mentor.com>
62702
62703         * manual/install.texi (Configuring and compiling): Update
62704         description about files modified in the source directory.
62705         * INSTALL: Regenerated.
62706
62707 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62708
62709         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62710         value.  Use "or" to set return value to -1.
62711         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62712         negate return value.
62713
62714 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62715
62716         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62717         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62718         failure if the compiler has Graphite support disabled.
62719         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62720         Likewise.
62721         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62722         (CFLAGS-memmove.c): Likewise.
62723         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62724         Likewise.
62725
62726 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62727
62728         * sysdeps/x86_64/x32/_itoa.h: New file.
62729
62730         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62731         getdents system call only if kernel and user dirents have the
62732         same d_ino and d_off.
62733
62734         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62735         LLONG_MAX != LONG_MAX.
62736         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62737         (_fitoa_word): Likewise.
62738
62739         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62740         years.
62741         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62742         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62743         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62744
62745         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62746         include <bits/wordsize.h>.  Check __x86_64__ instead of
62747         __WORDSIZE.
62748         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62749         if __x86_64__ is defined.  Use anonymous union on fpstate.
62750
62751         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62752         anonymous union.
62753
62754 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62755
62756         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62757         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62758         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62759         Refer to _rtld_local_ro instead of _rtld_global_ro.
62760         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62761         Likewise.
62762         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62763         Likewise.
62764         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62765         Likewise.
62766         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62767         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62768         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62769
62770         [BZ #10882]
62771         * sysdeps/powerpc/powerpc32/dl-machine.c
62772         (__elf_machine_runtime_setup) [PROF]: Don't reference
62773         _dl_prof_resolve.
62774
62775 2012-05-18  Andreas Jaeger  <aj@suse.de>
62776
62777         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62778         function only available for GCCs before 3.4 since GCC 3.4
62779         introduced a builtin.
62780         (lrint): Likewise.
62781         (llrintf): Likewise.
62782         (llrint): Likewise.
62783         (fmaxf): Likewise.
62784         (fmax): Likewise.
62785         (fminf): Likewise.
62786         (fmin): Likewise.
62787         (rint): Likewise.
62788         (rintf): Likewise.
62789         (nearbyint): Likewise.
62790         (nearbyintf): Likewise.
62791         (ceil): Likewise.
62792         (ceilf): Likewise.
62793         (floor): Likewise.
62794         (floorf): Likewise.
62795
62796 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62797
62798         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62799         on both fields and cast pointer to __syscall_ulong_t.
62800
62801         * bits/types.h (__fsword_t): New type.
62802         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62803         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62804         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62805         (__FSWORD_T_TYPE): Likewise.
62806         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62807         (__FSWORD_T_TYPE): Likewise.
62808         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62809         (__FSWORD_T_TYPE): Likewise.
62810         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62811         (__FSWORD_T_TYPE): Likewise.
62812         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62813         __SWORD_TYPE with __fsword_t.
62814         (statfs64): Likewise.
62815
62816 2012-05-17  David S. Miller  <davem@davemloft.net>
62817
62818         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62819
62820 2012-05-17  Andreas Jaeger  <aj@suse.de>
62821
62822         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62823         warning.
62824
62825 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62826
62827         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62828
62829 2012-05-17  Andreas Jaeger  <aj@suse.de>
62830
62831         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62832         when it is used.
62833
62834 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62835
62836         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62837
62838 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62839
62840         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62841         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62842
62843 2012-05-17  Andreas Jaeger  <aj@suse.de>
62844             Carlos O'Donell  <carlos_odonell@mentor.com>
62845
62846         [BZ #14059]
62847         * sysdeps/x86_64/multiarch/init-arch.h
62848         (bit_YMM_Usable): Rename to...
62849         (bit_AVX_Usable): ... this.
62850         (bit_FMA4_Usable): New macro.
62851         (bit_XMM_state): New macro.
62852         (bit_YMM_state): New macro.
62853         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62854         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62855         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62856         (CPUID_OSXSAVE): New macro.
62857         (CPUID_AVX): New macro.
62858         (CPUID_FMA4): New macro.
62859         (index_YMM_Usable): Rename to...
62860         (index_AVX_Usable): ... this.
62861         (HAS_AVX): Use HAS_ARCH_FEATURE.
62862         (HAS_FMA4): Likewise.
62863         (HAS_YMM_USABLE): Remove.
62864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62865         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62866         are present.
62867         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62868         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62869         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62870         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62871         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62872
62873 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62874
62875         * math/libm-test.c: Support platforms without multiple rounding modes.
62876         * math/bug-nextafter.c: Support platforms without FP exceptions.
62877         * math/bug-nexttoward.c: Likewise.
62878         * math/test-fenv.c: Likewise.
62879         * math/test-misc.c: Likewise.
62880         * stdlib/bug-getcontext.c: Likewise.
62881
62882 2012-05-17  Andreas Jaeger  <aj@suse.de>
62883
62884         * manual/examples/search.c (critter_cmp): Change signature to
62885         avoid warnings.
62886         * manual/string.texi (Collation Functions): Likewise.
62887
62888 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62889
62890         * bits/types.h: Fold copyright years.
62891         * bits/typesizes.h: Likewise.
62892         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62893         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62894         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62895         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62896         * time/time.h: Likewise.
62897
62898 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62899
62900         [BZ #208]
62901         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62902         in instead of returning them.  Return void.
62903         (__libc_mallinfo): Accumulate over all arenas.
62904         (__malloc_stats): Adjust for change in int_mallinfo interface.
62905
62906 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62907
62908         [BZ #10375]
62909         * configure.in (NM): Add AC_CHECK_TOOL for it.
62910         (libc_extra_cflags): New substituted variable.
62911         Check for -fstack-protector being used implicitly.
62912         * configure: Regenerated.
62913         * config.make.in (config-extra-cflags): New variable,
62914         gets @libc_extra_cflags@.
62915         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62916
62917         [BZ #10375]
62918         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62919         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62920         * configure: Regenerated.
62921         * config.make.in (CPPUNDEFS): New substituted variable.
62922         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62923         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62924         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62925
62926 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62927
62928         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62929         (mq_attr): Use __syscall_slong_t.
62930
62931 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62932
62933         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62934         Check __x86_64__ instead of __WORDSIZE.
62935         (_STAT_VER_LINUX): Likewise.
62936         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62937         __syscall_ulong_t and __syscall_slong_t.
62938         (stat64): Likewise.
62939
62940 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62941
62942         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62943
62944 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62945
62946         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62947
62948 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62949
62950         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62951         __syscall_ulong_t.
62952
62953         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62954         include <bits/wordsize.h>.  Check __x86_64__ instead of
62955         __WORDSIZE.
62956         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62957         defined.
62958         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62959
62960         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62961         include <bits/wordsize.h>.  Check __x86_64__ instead of
62962         __WORDSIZE.
62963         (user_regs_struct): Use "__extension__ unsigned long long"
62964         instead of "unsigned long" if __x86_64__ is defined.
62965         (user): Likewise.  Pad after pointer field if __ILP32__ is
62966         defined.
62967
62968 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62969
62970         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62971         versions 5 to 9.
62972         * configure: Regenerated.
62973         * manual/install.texi (texinfo): Increase version requirement to
62974         4.5 or later.
62975         * INSTALL: Regenerated.
62976
62977         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62978
62979 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62980
62981         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62982
62983         * sysdeps/x86_64/x32/ffs.c: New file.
62984
62985         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62986         __syscall_ulong_t.
62987         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62988         defined.  Use __syscall_ulong_t.
62989         (shminfo): Use __syscall_ulong_t.
62990         (shm_info): Likewise.
62991
62992         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62993         __syscall_ulong_t.
62994
62995         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62996         <bits/wordsize.h>.
62997         (msgqnum_t): Use __syscall_ulong_t.
62998         (msglen_t): Likewise.
62999         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
63000         __syscall_ulong_t.
63001
63002         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
63003         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63004
63005         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
63006
63007         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
63008         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
63009
63010         * sysvipc/sys/msg.h (msgbuf): Replace long int with
63011         __syscall_slong_t.
63012
63013         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
63014         include <bits/wordsize.h>.  Check __x86_64__ instead of
63015         __WORDSIZE.
63016
63017         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
63018         "unsigned long long int" if __x86_64__ is defined.
63019         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
63020
63021         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
63022         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63023         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
63024
63025         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
63026         <stdint.h>.
63027         (GET_PC): Cast to uintptr_t first.
63028         (GET_FRAME): Likewise.
63029         (GET_STACK): Likewise.
63030
63031         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
63032         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
63033         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
63034         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
63035         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
63036         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
63037         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
63038         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
63039         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
63040         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
63041         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
63042         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
63043         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
63044         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
63045         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
63046         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
63047         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
63048         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
63049         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
63050         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
63051         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
63052         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
63053         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
63054         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
63055         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
63056         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
63057         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
63058         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
63059         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
63060
63061 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
63062
63063         * Makerules (+depfiles): Also collect depfiles from .oS in
63064         $(extra-objs).
63065         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
63066         .oS, $(libnldbl-routines)).
63067
63068         * Makerules (native-compile-mkdep-flags): Define.
63069         * sunrpc/Makefile (extra-objs): Add $(addprefix
63070         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
63071         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
63072         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
63073         calling $(make-target-directory).
63074
63075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63076
63077         * bits/types.h (__snseconds_t): Removed.
63078         * time/time.h (struct timespec): Replace __snseconds_t with
63079         __syscall_slong_t.
63080         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
63081         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
63082         Likewise.
63083         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63084         (__SNSECONDS_T_TYPE): Likewise.
63085         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63086         (__SNSECONDS_T_TYPE): Likewise.
63087         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63088         (__SNSECONDS_T_TYPE): Likewise.
63089
63090 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63091
63092         * sysdeps/mach/hurd/bits/typesizes.h
63093         (__SYSCALL_SLONG_TYPE): New macro.
63094         (__SYSCALL_ULONG_TYPE): Likewise.
63095
63096 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63097
63098         * bits/types.h (__syscall_slong_t): New type.
63099         (__syscall_ulong_t): Likewise.
63100
63101         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
63102         (__SYSCALL_ULONG_TYPE): Likewise.
63103         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63104         (__SYSCALL_SLONG_TYPE): Likewise.
63105         (__SYSCALL_ULONG_TYPE): Likewise.
63106         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63107         (__SYSCALL_SLONG_TYPE): Likewise.
63108         (__SYSCALL_ULONG_TYPE): Likewise.
63109         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63110         (__SYSCALL_SLONG_TYPE): Likewise.
63111         (__SYSCALL_ULONG_TYPE): Likewise.
63112
63113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63114
63115         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
63116         Add sigaltstack-offsets.sym.
63117         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
63118         <sigaltstack-offsets.h>.
63119         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
63120         longjmp_msg pointer.
63121         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
63122         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
63123         signal stack.
63124         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63125
63126 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63127
63128         * elf/stackguard-macros.h: Remove file.
63129         * sysdeps/generic/stackguard-macros.h: New file.
63130         * sysdeps/i386/stackguard-macros.h: Likewise.
63131         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63132         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63133         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63134         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63135         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63136         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63137         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63138         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63139         <elf/stackguard-macros.h>.
63140
63141         [BZ #14109]
63142         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63143         __aligned__ in attribute.
63144         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63145         (gregset_t): Likewise.
63146
63147 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63148
63149         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63150         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63151         * sysdeps/x86_64/x32/Implies-after: New file.
63152
63153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63154
63155         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63156         and access return value for _dl_profile_fixup.  Use R10_LP to
63157         load frame size.
63158
63159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63160
63161         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63162
63163 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63164
63165         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63166         * sysdeps/x86_64/x32/sysdep.h: New file.
63167
63168 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63169
63170         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63171         * sysdeps/x86_64/setjmp.S: Likewise.
63172
63173 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63174
63175         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63176         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63177         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63178         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63179         remove unused global constant.
63180
63181 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63182
63183         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63184         include of <not-cancel.h>.
63185
63186 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63187
63188         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63189
63190 2012-05-15  Jeff Law  <law@redhat.com>
63191             Andreas Jaeger  <aj@suse.de>
63192
63193         [BZ #13594]
63194         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63195         out from...
63196         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63197         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63198         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63199         code changing __hst_map_handle.map.
63200
63201 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63202
63203         * configure.in (sysnames): Look for Implies-before and Implies-after
63204         files.
63205         * configure: Regenerated.
63206
63207 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63208
63209         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63210         8-byte data alignment with LP_SIZE alignment.
63211
63212 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63213
63214         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63215         into R10_LP.
63216
63217 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63218
63219         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63220
63221 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63222
63223         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63224         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63225         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63226         Likewise.
63227         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63228
63229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63230
63231         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63232         (stackinfo_sub_sp): Likewise.
63233
63234 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63235
63236         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63237         RAX_LP.
63238
63239 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63240
63241         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63242         into R*_LP.
63243
63244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63245
63246         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63247         sizes into R*_LP.
63248
63249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63250
63251         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63252
63253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63254
63255         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63256         into R11_LP and load __x86_64_shared_cache_size_half into
63257         R8_LP.
63258
63259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63260
63261         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63262         R8_LP.
63263
63264 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63265
63266         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63267         logb for POWER7.
63268         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63269         logbf for POWER7.
63270         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63271         logbl for POWER7.
63272         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63273         powerpc32/power7/fpu/s_logb.c via #include.
63274         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63275         powerpc32/power7/fpu/s_logbf.c via #include.
63276         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63277         powerpc32/power7/fpu/s_logbl.c via #include.
63278
63279 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63280
63281         * README.libm: Remove file.
63282
63283 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63284
63285         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63286         count for x32.  Use R*_LP and omit operand-size suffix.
63287
63288 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63289
63290         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63291         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63292         * sysdeps/x86_64/x32/shlib-versions: New file.
63293
63294 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63295
63296         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63297         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63298         Use _dl_fatal_printf instead.
63299
63300 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63301
63302         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63303         set if not set by the user.  Do not allow for being unset.
63304         * sysdeps/unix/sysv/linux/configure: Regenerated.
63305
63306 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63307
63308         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63309         the `q' suffix from lea and replace .quad with ASM_ADDR.
63310
63311 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63312
63313         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63314         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63315         instead of $17.
63316         (PTR_DEMANGLE): Likewise.
63317
63318 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63319
63320         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63321         (LP_OP): Likewise.
63322         (ASM_ADDR): Likewise.
63323         (RAX_LP): Likewise.
63324         (RBP_LP): Likewise.
63325         (RBX_LP): Likewise.
63326         (RCX_LP): Likewise.
63327         (RDI_LP): Likewise.
63328         (RSI_LP): Likewise.
63329         (RSP_LP): Likewise.
63330         (R8_LP): Likewise.
63331         (R9_LP): Likewise.
63332         (R10_LP): Likewise.
63333         (R10_LP): Likewise.
63334         (R11_LP): Likewise.
63335         (R12_LP): Likewise.
63336         (R13_LP): Likewise.
63337         (R14_LP): Likewise.
63338         (R15_LP): Likewise.
63339
63340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63341
63342         * sysdeps/x86_64/x32/dl-machine.h: New file.
63343
63344 2012-05-14  Andreas Jaeger  <aj@suse.de>
63345
63346         * manual/Makefile (subdir): Remove export of subdir.
63347         (all): Remove target.
63348         (.PHONY): Remove all from list.
63349         (mkinstalldirs): Remove.
63350         (.PHONY): Remove installdirs from list.
63351         ($(inst_infodir)/libc.info): Use make-target-directory.
63352         (installdirs): Remove.
63353         (subdir_%): Remove.
63354         (glibc-targets): Remove.
63355         (lib): Remove.
63356         (stubs): Remove.
63357         ($(objpfx)stubs ../po/manual.pot): Remove.
63358         ($(objpfx)stamp%): Remove.
63359         (make-target-directory): Remove.
63360         (subdir_install): Remove.
63361         (routines): Remove.
63362         (aux): Remove.
63363         (sources): Remove.
63364         (objects): Remove.
63365         (headers): Remove.
63366
63367         [BZ #13750]
63368         * manual/.gitignore: Remove, it's not needed anymore.
63369         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63370         all files in it.
63371         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63372         directory.
63373         (texis): Renamed to $(objpfx)texis.
63374         (texis-path): New, contains path to generated files.
63375         (chapters.%): Use texis-path for complete path, add extra argument
63376         libc-texinfo.sh.
63377         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63378         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63379         (summary,texi, stamp-summary): Use complete path of
63380         files. Generate files in build dir.
63381         (dir-add.texi): Build in build dir.
63382         (libm-err.texi,stamp-libm-err): Likewise.
63383         (version.texi, stamp-version): Likewise.
63384         (.%c.texi): Likewise.
63385         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63386         (mostlyclean): Remove target.
63387         (realclean): Remove target.
63388         (generated): Add new variable with contents from mostlyclean and
63389         realclean, remove entries duplicated in common-mostlyclean, add
63390         stamp-libm-err and stamp-version.
63391         (generated-dirs): Add libc directory.
63392         ($(inst_infodir)/libc.info): Install files from build dir.
63393
63394         * manual/install.texi (Configuring and compiling): Adjust since
63395         the info files are not part of the tar ball anymore.
63396
63397 2012-05-14  Andreas Jaeger  <aj@suse.de>
63398
63399         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63400         variable.
63401
63402 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63403
63404         [BZ #13717]
63405         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63406         to 2.2.0 where earlier.
63407         * sysdeps/unix/sysv/linux/configure: Regenerated.
63408         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63409         Remove conditional code.
63410         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63411         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63412         Remove conditional code.
63413         [!__NR_lchown]: Likewise.
63414         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63415         [__NR_lchown]: Likewise.
63416         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63417         comment referencing __ASSUME_LCHOWN_SYSCALL.
63418         * sysdeps/unix/sysv/linux/i386/sigaction.c
63419         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63420         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63421         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63422         Remove conditional code.
63423         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63424         (__protocol_available): Remove #if 0 code.
63425         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63426         conditional code.
63427         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63428         * sysdeps/unix/sysv/linux/kernel-features.h
63429         (__ASSUME_GETCWD_SYSCALL): Don't define.
63430         (__ASSUME_REALTIME_SIGNALS): Likewise.
63431         (__ASSUME_PREAD_SYSCALL): Likewise.
63432         (__ASSUME_PWRITE_SYSCALL): Likewise.
63433         (__ASSUME_POLL_SYSCALL): Likewise.
63434         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63435         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63436         non-SPARC.
63437         (__ASSUME_SIOCGIFNAME): Don't define.
63438         (__ASSUME_MSG_NOSIGNAL): Likewise.
63439         (__ASSUME_SENDFILE): Define unconditionally.
63440         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63441         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63442         conditional code.
63443         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63444         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63445         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63446         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63447         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63448         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63449         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63451         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63452         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63454         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63455         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63457         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63458         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63460         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63461         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63463         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63464         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63466         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63467         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63469         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63470         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63472         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63473         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63474         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63475         Remove conditional code.
63476         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63477         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63478         Remove conditional code.
63479         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63480         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63481         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63482         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63483         Remove conditional code.
63484         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63485         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63486         Remove conditional code.
63487         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63488         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63489         Remove conditional code.
63490         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63491         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63492         Remove conditional code.
63493         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63494         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63495         Remove conditional code.
63496         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63497         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63498         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63499         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63500         * sysdeps/unix/sysv/linux/sigaction.c
63501         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63502         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63503         * sysdeps/unix/sysv/linux/sigpending.c
63504         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63505         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63506         * sysdeps/unix/sysv/linux/sigprocmask.c
63507         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63508         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63509         * sysdeps/unix/sysv/linux/sigsuspend.c
63510         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63511         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63512         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63513         (__libc_missing_rt_sigs): Remove.
63514         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63515         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63516         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63517         Remove conditional code.
63518         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63519         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63520         return 1.
63521         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63522         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63523         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63524         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63525
63526 2012-05-14  Andreas Jaeger  <aj@suse.de>
63527
63528         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63529         it's not used in glibc.
63530         (__coshm1): Likewise.
63531         (__acosh1p): Likewise.
63532         (__sgn): Likewise.
63533
63534         * manual/string.texi (Copying and Concatenation): Add missing
63535         variable in concat example.
63536         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63537
63538 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63539
63540         [BZ #14103]
63541         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63542         __builtin_clzl with __builtin_clzll.
63543
63544 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63545
63546         [BZ #14104]
63547         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63548         libc_freeres_ptr.
63549
63550 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63551
63552         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63553         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63554         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63555         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63556
63557 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63558
63559         * NEWS: Update ia64 info.
63560
63561 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63562
63563         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63564         used as bcopy.
63565
63566 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63567
63568         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63569         * sysdeps/unix/syscalls.list (dup3): Likewise.
63570         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63571         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63572
63573 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63574
63575         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63576         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63577
63578 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63579
63580         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63581         thread pointer.
63582         (TLS_IE): Use mov/add instead of movq/addq to load thread
63583         pointer.
63584         (TLS_GD_PREFIX): New.
63585         (TLS_GD): Use it.
63586
63587 2012-05-11  David S. Miller  <davem@davemloft.net>
63588
63589         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63590         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63591         (_FPU_SETCW): Likewise.
63592
63593 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63594
63595         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63596         is 32-byte aligned.
63597
63598 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63599
63600         [BZ #11837]
63601         * iconvdata/gb18030.c: Update tables.
63602         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63603         characters specially.
63604         (BODY for TO_LOOP): Add encoding of missing ranges.
63605
63606 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63607
63608         [BZ #13673]
63609         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63610         * sysdeps/mach/hurd/dup3.c: Likewise.
63611         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63612         * sysdeps/powerpc/memmove.c:: Likewise.
63613
63614 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63615
63616         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63617         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63618
63619 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63620
63621         * elf/elf.h (R_X86_64_RELATIVE64): New.
63622         (R_X86_64_NUM): Updated.
63623         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63624         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63625         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63626         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63627         tst-quad1pie tst-quad2pie
63628         (modules-names): Add tst-quadmod1 tst-quadmod2.
63629         ($(objpfx)tst-quad1): New dependency.
63630         ($(objpfx)tst-quad2): Likewise.
63631         ($(objpfx)tst-quad1pie): Likewise.
63632         ($(objpfx)tst-quad2pie): Likewise.
63633         * sysdeps/x86_64/tst-quad1.c: New file.
63634         * sysdeps/x86_64/tst-quad1pie.c: New file.
63635         * sysdeps/x86_64/tst-quad2.c: Likewise.
63636         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63637         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63638         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63639         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63640         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63641
63642 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63643
63644         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63645         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63646         * streams/stropts.h (t_scalar_t): Define type.
63647
63648         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63649         (_PATH_PRESERVE): Set to "/var/lib".
63650         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63651
63652         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63653         instead of int.
63654
63655         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63656         if __dir_mkfile succeeded.
63657
63658         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63659         checking for _hurd_dtablesize.  Unlock it right after having
63660         finished _hurd_dtable allocation.
63661
63662 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63663
63664         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63665         * sysdeps/mach/hurd/configure: Regenerated.
63666         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63667         special-casing to...
63668         * sysdeps/gnu/configure.in: ... this new file.
63669         * sysdeps/unix/sysv/linux/configure: Regenerated.
63670         * sysdeps/gnu/configure: New generated file.
63671
63672         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63673         for Linux: use nsec instead of usec, as well as:
63674         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63675         members of type struct timespec.
63676         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63677         New macros.
63678         (struct stat64): Likewise.
63679         (_STATBUF_ST_NSEC): New macro.
63680         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63681
63682         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63683         __strtoul_internal rather than strtoul.
63684
63685 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63686
63687         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63688         and reject them.
63689
63690 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63691
63692         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63693         which preserves existing values.
63694         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63695
63696 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63697
63698         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63699         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63700         greater than FD_SETSIZE.
63701
63702 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63703
63704         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63705         allocated, call __vm_protect to finish enabling the existing space, and
63706         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63707         allocate the remainder.
63708
63709 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63710
63711         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63712         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63713
63714 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63715
63716         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63717         sysdeps/mach/hurd/readlink.c.
63718
63719         * posix/tst-sysconf.c (posix_options): Only use
63720         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63721         _POSIX_SYNCHRONIZED_IO when they are defined
63722         * sysdeps/mach/hurd/bits/posix_opt.h:
63723         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63724         (_XOPEN_REALTIME): Undefine macro.
63725         (_XOPEN_REALTIME_THREADS): Undefine macro.
63726         (_XOPEN_SHM): Undefine macro.
63727         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63728         macro to -1.
63729         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63730         macro to -1.
63731         (_POSIX_ASYNC_IO): Undefine macro.
63732         (_POSIX_PRIORITIZED_IO): Undefine macro.
63733         (_POSIX_SPIN_LOCKS): Define macro to -1.
63734
63735         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63736         SA_NODEFER, SA_RESETHAND.
63737         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63738         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63739         F_DUPFD_CLOEXEC.
63740
63741 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63742
63743         * elf/Makefile (pldd-modules): Define unconditionally.
63744
63745 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63746
63747         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63748
63749 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63750
63751         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63752         Return ENOENT when name is empty.
63753         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63754
63755 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63756
63757         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63758
63759         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63760
63761 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63762
63763         Fix mlock in all cases except non-readable pages.
63764         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63765         instead of VM_PROT_ALL as parameter to __vm_wire function.
63766
63767         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63768         (__mkdir): When path is `/', just fail with EEXIST.
63769         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63770
63771 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63772
63773         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63774         <sys/uio.h> (for writev).
63775         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63776         and <sys/param.h> (for MIN).
63777
63778 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63779
63780         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63781         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63782         if interrupted.
63783
63784 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63785
63786         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63787         Depend on against $(link-rpcuserlibs).
63788
63789 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63790
63791         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63792         (__libc_stack_end): Do not use attribute_relro.
63793         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63794         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63795         to libthread-provided value.
63796         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63797         attribute_relro.
63798
63799 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63800
63801         [BZ #3748]
63802         * bits/libc-lock.h (__libc_once_get): New macro.
63803         * sysdeps/mach/bits/libc-lock.h: Likewise.
63804         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63805         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63806         instead of using implementation details.
63807
63808         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63809         * libio/freopen.c: Likewise.
63810         * libio/freopen64.c: Likewise.
63811         * misc/syslog.c: Likewise.
63812         * nscd/connections.c: Likewise.
63813         * nscd/netgroupcache.c: Likewise.
63814         * sysdeps/posix/getcwd.c: Likewise.
63815
63816 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63817
63818         * math/w_ilogbf.c: Add #include <limits.h>.
63819
63820 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63821
63822         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63823         path instead of returning without unlocking.
63824
63825         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63826         immediate-write ioctls.
63827         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63828
63829 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63830
63831         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63832         __builtin_frame_address instead of making assumptions about the
63833         location of the return address relative to DATA.  Force early load of
63834         the return address.
63835         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63836         __builtin_frame_address.
63837
63838         dup3 for GNU Hurd.
63839         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63840         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63841         implement dup3 and do some further code clean-ups.
63842         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63843         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63844
63845 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63846
63847         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63848
63849         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63850         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63851         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63852         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63853         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63854         d->port.lock.
63855
63856         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63857         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63858         when handler == SIG_ERR, not when handler != SIG_ERR.
63859
63860 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63861
63862         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63863         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63864         definitions.
63865
63866         accept4 for GNU Hurd.
63867         * include/sys/socket.h (__libc_accept4): New prototype.
63868         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63869         to implement __libc_accept4.
63870         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63871         __libc_accept4.
63872         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63873
63874         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63875         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63876         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63877         signal-defines.sym.
63878
63879 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63880
63881         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63882
63883 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63884
63885         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63886         assertion on O_CLOEXEC flag.
63887         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63888         * hurd/intern-fd.c: Likewise.
63889         * hurd/port2fd.c: Likewise.
63890
63891 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63892
63893         [BZ #3906]
63894         * bits/in.h (IPV6_PKTINFO): Define new macro.
63895         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63896
63897 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63898
63899         [BZ #13954]
63900         [BZ #13955]
63901         [BZ #13956]
63902         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63903         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63904         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63905         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63906         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63907         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63908         * math/libm-test.inc (logb_test) : Additional logb tests.
63909
63910 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63911             Andreas Jaeger  <aj@suse.de>
63912
63913         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63914         * configure: Regenerated.
63915         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63916         * config.make.in (link-obsolete-rpc): New substituted variable.
63917         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63918         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63919         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63920         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63921         so that libc.a contains the symbols.
63922         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63923         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63924         * sunrpc/auth_none.c: Likewise.
63925         * sunrpc/auth_unix.c: Likewise.
63926         * sunrpc/authdes_prot.c: Likewise.
63927         * sunrpc/authuxprot.c: Likewise.
63928         * sunrpc/clnt_gen.c: Likewise.
63929         * sunrpc/clnt_perr.c: Likewise.
63930         * sunrpc/clnt_raw.c: Likewise.
63931         * sunrpc/clnt_simp.c: Likewise.
63932         * sunrpc/clnt_tcp.c: Likewise.
63933         * sunrpc/clnt_udp.c: Likewise.
63934         * sunrpc/clnt_unix.c: Likewise.
63935         * sunrpc/des_crypt.c: Likewise.
63936         * sunrpc/des_soft.c: Likewise.
63937         * sunrpc/get_myaddr.c: Likewise.
63938         * sunrpc/key_call.c: Likewise.
63939         * sunrpc/key_prot.c: Likewise.
63940         * sunrpc/netname.c: Likewise.
63941         * sunrpc/pm_getmaps.c: Likewise.
63942         * sunrpc/pm_getport.c: Likewise.
63943         * sunrpc/pmap_clnt.c: Likewise.
63944         * sunrpc/pmap_prot.c: Likewise.
63945         * sunrpc/pmap_prot2.c: Likewise.
63946         * sunrpc/pmap_rmt.c: Likewise.
63947         * sunrpc/publickey.c: Likewise.
63948         * sunrpc/rpc_cmsg.c: Likewise.
63949         * sunrpc/rpc_common.c: Likewise.
63950         * sunrpc/rpc_dtable.c: Likewise.
63951         * sunrpc/rpc_prot.c: Likewise.
63952         * sunrpc/rpc_thread.c: Likewise.
63953         * sunrpc/rtime.c: Likewise.
63954         * sunrpc/svc.c: Likewise.
63955         * sunrpc/svc_auth.c: Likewise.
63956         * sunrpc/svc_raw.c: Likewise.
63957         * sunrpc/svc_run.c: Likewise.
63958         * sunrpc/svc_tcp.c: Likewise.
63959         * sunrpc/svc_udp.c: Likewise.
63960         * sunrpc/svc_unix.c: Likewise.
63961         * sunrpc/svcauth_des.c: Likewise.
63962         * sunrpc/xcrypt.c: Likewise.
63963         * sunrpc/xdr.c: Likewise.
63964         * sunrpc/xdr_array.c: Likewise.
63965         * sunrpc/xdr_float.c: Likewise.
63966         * sunrpc/xdr_intXX_t.c: Likewise.
63967         * sunrpc/xdr_mem.c: Likewise.
63968         * sunrpc/xdr_rec.c: Likewise.
63969         * sunrpc/xdr_ref.c: Likewise.
63970         * sunrpc/xdr_sizeof.c: Likewise.
63971         * sunrpc/xdr_stdio.c: Likewise.
63972
63973 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63974
63975         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63976         change.  Update copyright years.
63977
63978 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63979
63980         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63981
63982 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63983             Joseph Myers  <joseph@codesourcery.com>
63984             Paul Pluzhnikov  <ppluzhnikov@google.com>
63985
63986         [BZ #14012]
63987         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63988         requiring rpcgen.
63989         [cross-compiling] (extra-libs): Likewise.
63990         [cross-compiling] (extra-libs-others): Likewise.
63991         [cross-compiling] (librpcsvc-routines): Likewise.
63992         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63993         [cross-compiling] (omit-deps): Likewise.
63994         (sunrpc-CPPFLAGS): New variable.
63995         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63996         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63997         (cross-rpcgen-objs): New variable.
63998         (extra-objs): Append $(cross-rpcgen-objs).
63999         ($(cross-rpcgen-objs)): New rule.
64000         ($(objpfx)cross-rpcgen): Likewise.
64001         (rpcgen-cmd): Define to use $(built-program-file).  Expand
64002         comment.
64003         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
64004         ($(objpfx)x%.stmp): Likewise.
64005         * sunrpc/proto.h [IS_IN_build] (_): Define.
64006         [IS_IN_build] (_libc_intl_domainname): Likewise.
64007
64008 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
64009
64010         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
64011         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
64012         and R_X86_64_TPOFF64.
64013
64014 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
64015
64016         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
64017         sysdeps/unix/sysv/syscalls.list.
64018         (stime): Likewise.
64019         (utime): Likewise.
64020         * sysdeps/unix/sysv/syscalls.list: Remove file.
64021
64022 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         [BZ #3440]
64025         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
64026         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
64027         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
64028         (__LC_IDENTIFICATION): Make these macros useful in #if
64029         expressions, as required by C99.
64030
64031 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
64032
64033         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
64034         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
64035         after this.
64036
64037 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
64038
64039         * stdlib/longlong.h: Updated from GCC.
64040
64041 2012-05-09  Andreas Jaeger  <aj@suse.de>
64042
64043         * nscd/nscd.c (run_modes): Make named enum, reorder so that
64044         default is first entry.
64045         (run_mode): Set type.
64046         (main): Remove informal message about syslog.
64047         (options): Fix typo.
64048
64049         [BZ #14053]
64050         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
64051         to asm.
64052         (lrint): Likewise.
64053         (llrintf): Likewise.
64054         (llrint): Likewise.
64055         (rint): Likewise.
64056         (rintf): Likewise.
64057         (nearbyint): Likewise.
64058         (nearbyintf): Likewise.
64059
64060 2012-05-09  Andreas Jaeger  <aj@suse.de>
64061             Pedro Alves  <palves@redhat.com>
64062
64063         * nscd/nscd.c (run_mode): Use enum.
64064         (main): Cleanup coding style issue.
64065
64066 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
64067             Andreas Jaeger  <aj@suse.de>
64068
64069         * nscd/nscd.c (go_background): Replaced with...
64070         (run_mode): ... this.
64071         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
64072         (options): Add -F --foreground.
64073         (main): Implement it.
64074         (parse_opt): Parse it.
64075
64076 2012-05-09  Andreas Jaeger  <aj@suse.de>
64077
64078         [BZ #14083]
64079         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
64080         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
64081         -Wconversion warning.
64082         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
64083         Likewise.
64084
64085 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
64086
64087         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
64088         == 0.
64089         (LC_ALL): Use macro-int-constant.
64090         (LC_COLLATE): Likewise.
64091         (LC_CTYPE): Likewise.
64092         (LC_MESSAGES): Likewise.
64093         (LC_MONETARY): Likewise.
64094         (LC_NUMERIC): Likewise.
64095         (LC_TIME): Likewise.
64096         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
64097         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64098         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64099         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
64100         Specify type.
64101         [C99-based standards] (float_t): Expect type.
64102         [C99-based standards] (double_t): Expect type.
64103         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
64104         type.
64105         [C99-based standards] (HUGE_VALL): Likewise.
64106         [C99-based standards] (INFINITY): Likewise.
64107         [C99-based standards] (NAN): Likewise.
64108         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
64109         [C99-based standards] (FP_NAN): Likewise.
64110         [C99-based standards] (FP_NORMAL): Likewise.
64111         [C99-based standards] (FP_SUBNORMAL): Likewise.
64112         [C99-based standards] (FP_ZERO): Likewise.
64113         [C99-based standards] (FP_FAST_FMA): Use
64114         optional-macro-int-constant.  Specify type.  Require == 1.
64115         [C99-based standards] (FP_FAST_FMAF): Likewise.
64116         [C99-based standards] (FP_FAST_FMAL): Likewise.
64117         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
64118         [C99-based standards] (FP_ILOGBNAN): Likewise.
64119         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
64120         Specify type.
64121         [C99-based standards] (MATH_ERREXCEPT): Likewise.
64122         [C99-based standards] (math_errhandling): Specify type.
64123         [ISO99 || ISO11] (signgam): Do not allow.
64124         [non-C99-based standards] (copysignf): Do not allow.
64125         [non-C99-based standards] (exp2f): Likewise.
64126         [non-C99-based standards] (log2f): Likewise.
64127         [non-C99-based standards] (modff): Allow.
64128         [non-C99-based standards] (erff): Do not allow.
64129         [non-C99-based standards] (erfcf): Likewise.
64130         [non-C99-based standards] (gammaf): Likewise.
64131         [non-C99-based standards] (hypotf): Likewise.
64132         [non-C99-based standards] (j0f): Likewise.
64133         [non-C99-based standards] (j1f): Likewise.
64134         [non-C99-based standards] (jnf): Likewise.
64135         [non-C99-based standards] (lgammaf): Likewise.
64136         [non-C99-based standards] (tgammaf): Likewise.
64137         [non-C99-based standards] (y0f): Likewise.
64138         [non-C99-based standards] (y1f): Likewise.
64139         [non-C99-based standards] (ynf): Likewise.
64140         [non-C99-based standards] (isnanf): Likewise.
64141         [non-C99-based standards] (acoshf): Likewise.
64142         [non-C99-based standards] (asinhf): Likewise.
64143         [non-C99-based standards] (atanhf): Likewise.
64144         [non-C99-based standards] (cbrtf): Likewise.
64145         [non-C99-based standards] (expm1f): Likewise.
64146         [non-C99-based standards] (ilogbf): Likewise.
64147         [non-C99-based standards] (log1pf): Likewise.
64148         [non-C99-based standards] (logbf): Likewise.
64149         [non-C99-based standards] (nextafterf): Likewise.
64150         [non-C99-based standards] (remainderf): Likewise.
64151         [non-C99-based standards] (rintf): Likewise.
64152         [non-C99-based standards] (scalbf): Likewise.
64153         [non-C99-based standards] (copysignl): Likewise.
64154         [non-C99-based standards] (exp2l): Likewise.
64155         [non-C99-based standards] (log2l): Likewise.
64156         [non-C99-based standards] (modfl): Allow.
64157         [non-C99-based standards] (erfl): Do not allow.
64158         [non-C99-based standards] (erfcl): Likewise.
64159         [non-C99-based standards] (gammal): Likewise.
64160         [non-C99-based standards] (hypotl): Likewise.
64161         [non-C99-based standards] (j0l): Likewise.
64162         [non-C99-based standards] (j1l): Likewise.
64163         [non-C99-based standards] (jnl): Likewise.
64164         [non-C99-based standards] (lgammal): Likewise.
64165         [non-C99-based standards] (tgammal): Likewise.
64166         [non-C99-based standards] (y0l): Likewise.
64167         [non-C99-based standards] (y1l): Likewise.
64168         [non-C99-based standards] (ynl): Likewise.
64169         [non-C99-based standards] (isnanl): Likewise.
64170         [non-C99-based standards] (acoshl): Likewise.
64171         [non-C99-based standards] (asinhl): Likewise.
64172         [non-C99-based standards] (atanhl): Likewise.
64173         [non-C99-based standards] (cbrtl): Likewise.
64174         [non-C99-based standards] (expm1l): Likewise.
64175         [non-C99-based standards] (ilogbl): Likewise.
64176         [non-C99-based standards] (log1pl): Likewise.
64177         [non-C99-based standards] (logbl): Likewise.
64178         [non-C99-based standards] (nextafterl): Likewise.
64179         [non-C99-based standards] (remainderl): Likewise.
64180         [non-C99-based standards] (rintl): Likewise.
64181         [non-C99-based standards] (scalbl): Likewise.
64182         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64183         [non-C99-based standards] (FP_*): Do not allow.
64184         [C99-based standards] (FP_*): Change to
64185         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64186         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64187         allow.
64188         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64189         (SIG_ERR): Likewise.
64190         [X/Open-based standards] (SIG_HOLD): Likewise.
64191         (SIG_IGN): Likewise.
64192         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64193         positive value.
64194         (SIGFPE): Likewise.
64195         (SIGILL): Likewise.
64196         (SIGINT): Likewise.
64197         (SIGSEGV): Likewise.
64198         (SIGTER): Likewise.
64199         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64200         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64201         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64202         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64203         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64204         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64205         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64206         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64207         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64208         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64209         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64210         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64211         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64212         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64213         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64214         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64215         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64216         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64217         [X/Open-based standards] (SIGTRAP): Likewise.
64218         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64219         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64220         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64221         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64222         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64223         allow.
64224
64225 2012-05-08  Ian Wienand  <ianw@vmware.com>
64226
64227         [BZ #14080]
64228         * time/tzset.c (__tzset_parse_tz): Update default rules for
64229         daylight time changes in the Energy Policy Act of 2005.
64230
64231 2012-05-09  Andreas Jaeger  <aj@suse.de>
64232
64233         [BZ #13983]
64234         * elf/ldconfig.c (parse_conf): Change string to make clear that
64235         ldconfig only issued a warning if ld.so.conf does not exist.
64236
64237 2012-05-08  David S. Miller  <davem@davemloft.net>
64238
64239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64240         movxtod instead of popping the value on the stack.
64241
64242         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64243
64244 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64245
64246         * config.h.in: Add HAVE_ARM_PCS_VFP.
64247
64248 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64249
64250         [BZ #13979]
64251         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64252         checking but the checks are disabled for any reason.
64253
64254 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64255
64256         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64257         and ELF64_R_TYPE with ELFW(R_TYPE).
64258
64259 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64260
64261         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64262         (ulimit): Likewise.
64263
64264         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64265         (settimeofday): Likewise.
64266
64267 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64268
64269         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64270         a struct th_u2 inside the union, and move tu_block/tu_code into
64271         a new th_u3 union of tu_block/tu_code inside of that.  Move
64272         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64273         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64274         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64275         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64276         (th_stuff): Change to th_u1.tu_stuff.
64277         (th_data): Define.
64278         (th_msg): Change to th_u1.th_u2.tu_data.
64279
64280 2012-05-07  David S. Miller  <davem@davemloft.net>
64281
64282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64283
64284         [BZ #14074]
64285         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64286         (SETUP_PIC_REG): Use it.
64287         (SETUP_PIC_REG_LEAF): Use it.
64288
64289 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64290
64291         [BZ #13885]
64292         [BZ #13923]
64293         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64294         USE_AS_EXPM1L.
64295         (EXPL_FINITE): Likewise.
64296         (FLDLOG): Likewise.
64297         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64298         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64299         e_expl.S.
64300         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64301         USE_AS_EXPM1L.
64302         (EXPL_FINITE): Likewise.
64303         (FLDLOG): Likewise.
64304         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64305         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64306         e_expl.S.
64307         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64308         test of -max_value argument for long double.
64309         * sysdeps/i386/fpu/libm-test-ulps: Update.
64310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64311
64312 2012-05-06  David S. Miller  <davem@davemloft.net>
64313
64314         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64315         quad soft-float symbols whose references which are compiler
64316         generated.
64317         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64318
64319 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64320
64321         [BZ #13884]
64322         [BZ #13914]
64323         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64324         USE_AS_EXP10L.
64325         (EXPL_FINITE): Likewise.
64326         (FLDLOG): Likewise.
64327         (c0): Likewise.
64328         (c1): Likewise.
64329         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64330         Adjust comments for base varying.
64331         (__expl_finite): Change alias to EXPL_FINITE.
64332         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64333         e_expl.S.
64334         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64335         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64336         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64337         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64338         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64339         USE_AS_EXP10L.
64340         (EXPL_FINITE): Likewise.
64341         (FLDLOG): Likewise.
64342         (c0): Likewise.
64343         (c1): Likewise.
64344         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64345         Adjust comments for base varying.
64346         (__expl_finite): Change alias to EXPL_FINITE.
64347         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64348         tests for bugs.
64349         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64350
64351         [BZ #14064]
64352         * math/libm-test.inc (check_float_internal): Correct ulp
64353         calculation for subnormal expected results.
64354
64355 2012-05-06  Andreas Jaeger  <aj@suse.de>
64356
64357         * Makeconfig (+math-flags): New, set to -frounding-math.
64358         (+cflags): Add +math-flags so that all of glibc gets compiled with
64359         it.
64360
64361         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64362
64363 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64364
64365         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64366         Disable one test.
64367
64368         [BZ #13787]
64369         [BZ #13922]
64370         [BZ #14036]
64371         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64372         (__ieee754_expl): Allow for and saturate large arguments.
64373         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64374         (u_threshold): Likewise.
64375         (__exp): Call __ieee754_exp before checking for overflow and
64376         underflow.
64377         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64378         (u_threshold): Likewise.
64379         (__expf): Call __ieee754_expf before checking for overflow and
64380         underflow.
64381         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64382         (u_threshold): Likewise.
64383         (__expl): Call __ieee754_expl before checking for overflow and
64384         underflow.
64385         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64386         (__ieee754_expl): Allow for and saturate large arguments.
64387         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64388         missing overflow exception on overflow.
64389         (expm1_test): Do not allow missing overflow exception on overflow.
64390
64391         * sysdeps/i386/fpu/e_expl.c: Move to ...
64392         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64393         rather than using inline asm.
64394         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64395         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64396         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64397
64398         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64399         (nice): Likewise.
64400         (poll): Likewise.
64401         (signal): Likewise.
64402         (time): Likewise.
64403         (times): Likewise.
64404
64405 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64406
64407         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64408         sysdeps/unix/common/syscalls.list.
64409         (fchmod): Likewise.
64410         (fchown): Likewise.
64411         (ftruncate): Likewise.
64412         (getrusage): Likewise.
64413         (gettimeofday): Likewise.
64414         (setpgid): Likewise.
64415         (setregid): Likewise.
64416         (setreuid): Likewise.
64417         (sigaction): Likewise.
64418         (truncate): Likewise.
64419         (vhangup): Likewise.
64420         * sysdeps/unix/common/syscalls.list: Remove file.
64421         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64422         * sysdeps/unix/sysv/linux/Implies: Likewise.
64423
64424 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64425
64426         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64428         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64429         Moved to ...
64430         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64431         Here.
64432         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64433         to ...
64434         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64435         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64436         to ...
64437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64438         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64439         to ...
64440         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64441         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64442         to ...
64443         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64444         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64445         to ...
64446         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64447         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64448         to ...
64449         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64450         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64451         to ...
64452         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64453         Here.
64454         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64455         to ...
64456         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64457         Here.
64458         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64459         to ...
64460         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64461         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64462         Moved to ...
64463         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64464         Here.
64465         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64466         to ...
64467         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64468
64469 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64470
64471         * sysdeps/unix/common/bits/dirent.h: Remove file.
64472         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64473
64474         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64475         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64476         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64477         * sysdeps/unix/bsd/isatty.c: Likewise.
64478         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64479         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64480         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64481
64482 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64483
64484         [BZ #13563]
64485         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64486         long double comparison inaccuracies.
64487         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64488         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64489
64490 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64491
64492         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64493         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64494
64495 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64496
64497         [BZ #14049]
64498         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64499         nonzero digits before rounding a hex value.
64500         * stdlib/tst-strtod.c (tests): Add another test.
64501
64502 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64503
64504         * sysdeps/s390/fpu/libm-test-ulps: Update.
64505
64506 2012-05-03  Andreas Jaeger  <aj@suse.de>
64507
64508         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64509         does not get optimized out.
64510         (malloc_opt_barrier): New.
64511
64512 2012-05-03  Andreas Jaeger  <aj@suse.de>
64513             Roland McGrath  <roland@hack.frob.com>
64514
64515         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64516         intermediate file deletion.
64517         (generated): Add .symlist files.
64518
64519 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64520
64521         [BZ #13775]
64522         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64523         Redirect under this condition.
64524         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64525         [__USE_GNU] (__dprintf_chk): Not under this condition.
64526         [__USE_GNU] (__vdprintf_chk): Likewise.
64527         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64528         under this condition.
64529         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64530         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64531         [__USE_XOPEN2K8] (vdprintf): Likewise.
64532         [__USE_GNU] (__dprintf_chk): Not under this condition.
64533         [__USE_GNU] (__vdprintf_chk): Likewise.
64534         [__USE_GNU] (dprintf): Likewise.
64535         [__USE_GNU] (vdprintf): Likewise.
64536
64537 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64538
64539         * elf/Makefile (common-generated): Set this instead of generated for
64540         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64541         $(all-built-dso)-derived lists.
64542
64543 2012-05-03  Andreas Jaeger  <aj@suse.de>
64544
64545         * sysdeps/i386/fpu/libm-test-ulps: Update.
64546
64547         * FAQ: Removed.
64548         * FAQ.in: Likewise.
64549         * scripts/gen-FAQ.pl: Likewise.
64550         * manual/install.texi (Installation): Point to online location of
64551         FAQ.
64552         * Makefile (files-for-dist): Remove FAQ.
64553         (FAQ): Remove.
64554
64555 2012-05-02  Allan McRae  <allan@archlinux.org>
64556
64557         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64558         (LDFLAGS-reldepmod5.so): Likewise.
64559         (LDFLAGS-reldep6mod1.so): Likewise.
64560         (LDFLAGS-reldep6mod4.so): Likewise.
64561         (LDFLAGS-reldep8mod3.so): Likewise.
64562         (LDFLAGS-unload4mod1.so): Likewise.
64563         (LDFLAGS-unload4mod2.so): Likewise.
64564         (LDFLAGS-tst-initorder): Likewise.
64565         (LDFLAGS-tst-initordera2.so): Likewise.
64566         (LDFLAGS-tst-initordera3.so): Likewise.
64567         (LDFLAGS-tst-initordera4.so): Likewise.
64568         (LDFLAGS-tst-initorderb2.so): Likewise.
64569         (LDFLAGS-noload): Likewise.
64570         (LDFLAGS-next): Likewise.
64571         (LDFLAGS-order2mod1.so): Likewise.
64572         (LDFLAGS-order2mod2.so): Likewise.
64573         (LDFLAGS-tst-initorder2): Likewise.
64574         (LDFLAGS-tst-initorder2a.so): Likewise.
64575         (LDFLAGS-tst-initorder2b.so): Likewise.
64576         (LDFLAGS-tst-initorder2c.so): Likewise.
64577         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64578
64579 2012-05-02  David S. Miller  <davem@davemloft.net>
64580
64581         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64582
64583 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64584
64585         [BZ #14055]
64586         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64587
64588 2012-05-02  Andreas Jaeger  <aj@suse.de>
64589
64590         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64591         since we manipulate rounding mode.
64592         (CPPFLAGS-test-idouble.c): Likewise.
64593         (CPPFLAGS-test-ifloat.c): Likewise.
64594         (CFLAGS-test-ldouble.c): Likewise.
64595         (CFLAGS-test-double.c): Likewise.
64596         (CFLAGS-test-float.c): Likewise.
64597         (CFLAGS-test-misc.c): Likewise.
64598         (CFLAGS-test-test-fenv.c): Likewise.
64599
64600 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64601
64602         [BZ #2550]
64603         [BZ #2570]
64604         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64605         comparisons to determine direction to adjust input.
64606
64607 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64608
64609         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64610         output to the target.
64611
64612         * scripts/localplt.awk: New file.
64613         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64614         (check-localplt-CFLAGS): Variable removed.
64615         ($(all-built-dso:=.jmprel)): New static pattern rule.
64616         (generated): Add those targets.
64617         (localplt-built-dso): New variable.
64618         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64619
64620         * elf/check-localplt.c: File removed.
64621
64622         * scripts/check-execstack.awk: New file.
64623         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64624         (check-execstack-CFLAGS): Variable removed.
64625         ($(objpfx)check-execstack.h): Target removed.
64626         ($(objpfx)execstack-default): New target.
64627         (generated): Add that instead of check-execstack.h.
64628         ($(all-built-dso:=.phdr)): New static pattern rule.
64629         (generated): Add those targets.
64630         * elf/check-execstack.c: File removed.
64631
64632         * scripts/check-textrel.awk: New file.
64633         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64634         (check-textrel-CFLAGS): Variable removed.
64635         (all-built-dso): Use := to define.o
64636         ($(all-built-dso:=.dyn)): New static pattern rule.
64637         (generated): Add those targets.
64638         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64639         * config.make.in (READELF): New substituted variable.
64640         * elf/check-textrel.c: File removed.
64641
64642 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64643
64644         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64645         allow.
64646         * conform/data/ctype.h-data [C99-based standards] (isblank):
64647         Expect function.
64648         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64649         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64650         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64651         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64652         Specify type.  Require positive value.
64653         (EILSEQ): Likewise.
64654         (ERANGE): Likewise.
64655         [ISO || POSIX] (EILSEQ): Do not expect.
64656         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64657         Specify type.  Require positive value.
64658         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64659         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64660         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64661         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64662         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64663         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64664         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64665         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64666         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64667         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64668         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64669         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64670         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64671         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64672         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64673         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64674         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64675         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64676         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64677         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64678         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64679         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64680         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64681         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64682         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64683         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64684         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64685         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64686         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64687         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64688         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64689         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64690         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64691         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64692         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64693         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64694         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64695         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64696         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64697         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64698         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64699         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64700         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64701         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64702         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64703         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64704         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64705         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64706         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64707         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64708         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64709         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64710         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64711         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64712         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64713         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64714         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64715         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64716         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64717         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64718         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64719         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64720         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64721         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64722         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64723         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64724         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64725         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64726         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64727         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64728         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64729         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64730         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64731         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64732         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64733         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64734         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64735         Require >= 2.
64736         (FLT_ROUNDS): Expect as macro, not constant.
64737         (FLT_MANT_DIG): Use macro-int-constant.
64738         (DBL_MANT_DIG): Likewise.
64739         (LDBL_MANT_DIG): Likewise.
64740         (FLT_DIG): Likewise.
64741         (DBL_DIG): Likewise.
64742         (LDBL_DIG): Likewise.
64743         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64744         (DBL_MIN_EXP): Likewise.
64745         (LDBL_MIN_EXP): Likewise.
64746         (FLT_MAX_EXP): Use macro-int-constant.
64747         (DBL_MAX_EXP): Likewise.
64748         (LDBL_MAX_EXP): Likewise.
64749         (FLT_MAX_10_EXP): Likewise.
64750         (DBL_MAX_10_EXP): Likewise.
64751         (LDBL_MAX_10_EXP): Likewise.
64752         (FLT_MAX): Use macro-constant.
64753         (DBL_MAX): Likewise.
64754         (LDBL_MAX): Likewise.
64755         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64756         (DBL_EPSILON): Likewise.
64757         (LDBL_EPSILON): Likewise.
64758         (FLT_MIN): Likewise.
64759         (DBL_MIN): Likewise.
64760         (LDBL_MIN): Likewise.
64761         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64762         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64763         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64764         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64765         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64766         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64767         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64768         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64769         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64770         [ISO11] (FLT_TRUE_MIN): Likewise.
64771         [ISO11] (LDBL_TRUE_MIN): Likewise.
64772         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64773         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64774         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64775         (SCHAR_MAX): Likewise.
64776         (UCHAR_MAX): Likewise.
64777         (CHAR_MIN): Likewise.
64778         (CHAR_MAX): Likewise.
64779         (MB_LEN_MAX): Use macro-int-constant.
64780         (SHRT_MIN): Use macro-int-constant.  Specify type.
64781         (SHRT_MAX): Likewise.
64782         (USHRT_MAX): Likewise.
64783         (INT_MAX): Likewise.
64784         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64785         bound negative.
64786         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64787         bound with "U".
64788         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64789         bound with "L".
64790         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64791         bound negative.  Suffix upper bound with "L".
64792         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64793         bound with "UL".
64794         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64795         Specify type.
64796         [C99-based standards] (LLONG_MAX): Likewise.
64797         [C99-based standards] (ULLONG_MAX): Likewise.
64798         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64799         == 0.
64800         [ISO11] (max_align_t): Require type.
64801         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64802
64803         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64804         from $CFLAGS, without defining away __attribute__ calls.
64805         (checknamespace): Use $CFLAGS_namespace.
64806
64807         * conform/conformtest.pl (@keywords): Only include C99 keywords
64808         for standards based on C99 or C11.
64809
64810         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64811         Disable tests.
64812         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64813         UNIX98]: Likewise.
64814
64815         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64816         usability of symbols in #if.
64817
64818         * conform/conformtest.pl: If macro or constant types start
64819         "promoted:", expect the symbol to be of the following type
64820         promoted by the integer promotions.
64821
64822         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64823         in one place.  Also handle "macro-constant".
64824
64825         * conform/conformtest.pl: Only accept expected macro values with
64826         "==".  Parse all "macro" lines in one place.
64827         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64828
64829         * conform/conformtest.pl: Handle braced types on "constant" lines
64830         instead of handling "typed-constant".
64831         * conform/data/signal.h-data: Use "constant" instead of
64832         "typed-constant".
64833
64834         * conform/conformtest.pl: Handle "optional-" at start of lines in
64835         one place rather than duplicating several cases.  Handle each
64836         format of "macro" line with initial "optional-".
64837
64838         * conform/conformtest.pl: Only accept expected constant or
64839         optional-constant values with "==".  Parse all "constant" lines in
64840         one place.  Parse all "optional-constant" lines in one place.
64841         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64842         * conform/data/fmtmsg.h-data: Likewise.
64843         * conform/data/netinet/in.h-data: Likewise.
64844         * conform/data/tar.h-data: Likewise.
64845         * conform/data/limits.h-data: Use "==" form on "constant" and
64846         "optional-constant" lines.
64847
64848         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64849         Use -std=c99 for XOPEN2K.
64850         (@knownproblems): Remove.
64851         (newtoken): Don't check %isknown.
64852
64853         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64854         Do not expect macro.
64855         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64856         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64857         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64858         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64859         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64860         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64861         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64862         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64863         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64864         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64865         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64866         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64867         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64868         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64869         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64870         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64871         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64872         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64873         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64874         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64875         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64876         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64877         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64878         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64879         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64880         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64881         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64882         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64883         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64884         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64885         [XPG3] (acosh): Likewise.
64886         [XPG3] (asinh): Likewise.
64887         [XPG3] (atanh): Likewise.
64888         [XPG3] (cbrt): Likewise.
64889         [XPG3] (expm1): Likewise.
64890         [XPG3] (ilogb): Likewise.
64891         [XPG3] (log1p): Likewise.
64892         [XPG3] (logb): Likewise.
64893         [XPG3] (nextafter): Likewise.
64894         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64895         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64896         [XPG3] (remainder): Likewise.
64897         [XPG3] (rint): Likewise.
64898         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64899         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64900         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64901         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64902         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64903         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64904         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64905         [UNIX98 || XOPEN2K] (scalb): Expect.
64906         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64907         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64908         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64909         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64910         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64911         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64912         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64913         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64914         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64915         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64916         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64917         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64918         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64919         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64920         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64921         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64922         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64923         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64924         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64925         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64926         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64927         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64928         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64929         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64930         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64931         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64932         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64933         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64934         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64935         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64936         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64937         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64938         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64939         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64940         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64941         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64942         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64943         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64944         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64945         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64946         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64947         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64948         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64949         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64950         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64951         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64952         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64953         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64954         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64955         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64956         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64957         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64958         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64959         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64960         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64961         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64962         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64963         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64964         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64965         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64966         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64967         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64968         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64969         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64970         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64971         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64972         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64973         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64974         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64975         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64976         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64977         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64978         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64979         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64980         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64981         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64982         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64983         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64984         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64985         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64986         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64987         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64988         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64989         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64990         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64991         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64992         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64993         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64994         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64995         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64996         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64997         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64998         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64999         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
65000         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
65001         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
65002         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
65003         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
65004         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
65005         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
65006         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
65007         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
65008         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
65009         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
65010         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
65011         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
65012         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
65013         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
65014         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
65015         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
65016         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
65017         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
65018         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
65019         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
65020         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
65021         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
65022         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
65023         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
65024         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
65025         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
65026         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
65027         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
65028         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
65029         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
65030         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
65031         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
65032         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
65033         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
65034         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
65035         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
65036         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
65037         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
65038         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
65039         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
65040         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
65041         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
65042         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
65043
65044         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
65045         _XOPEN_SOURCE_EXTENDED for XPG4.
65046
65047         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
65048
65049         * Makeconfig (localtime): Remove variable.
65050         (inst_localtime-file): Likewise.
65051
65052 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65053
65054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
65055         Update.
65056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65057         Update.
65058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
65059         Update.
65060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
65061         Update.
65062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
65063         Update.
65064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
65065         Update.
65066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65067         Update.
65068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
65069         Update.
65070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65071         Update.
65072
65073 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
65074
65075         [BZ #2550]
65076         [BZ #2570]
65077         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
65078         comparisons to determine direction to adjust input.
65079         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
65080         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
65081         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
65082         Likewise.
65083         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
65084         Likewise.
65085         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
65086         Likewise.
65087         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
65088         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
65089         Likewise.
65090         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
65091         Likewise.
65092         * math/libm-test.inc (nexttoward_test): Add more tests.
65093
65094 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65095
65096         [BZ #14040]
65097         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
65098         in version GLIBC_2.1, not GLIBC_2.0.
65099         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
65100         Likewise.
65101
65102 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
65103
65104         [BZ #13942]
65105         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
65106         (1 - x) * (1 + x).
65107         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65108         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
65109         * math/libm-test.inc (acos_test): Add more tests.
65110         (asin_test): Likewise.
65111         * sysdeps/i386/fpu/libm-test-ulps: Update.
65112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65113
65114         [BZ #14034]
65115         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
65116         of square root.
65117         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
65118         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65119         * math/libm-test.inc (acos_test_tonearest): New function.
65120         (acos_test_towardzero): Likewise.
65121         (acos_test_downward): Likewise.
65122         (acos_test_upward): Likewise.
65123         (asin_test_tonearest): Likewise.
65124         (asin_test_towardzero): Likewise.
65125         (asin_test_downward): Likewise.
65126         (asin_test_upward): Likewise.
65127         (main): Call the new functions.
65128         * sysdeps/i386/fpu/libm-test-ulps: Update.
65129         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65130
65131         [BZ #13884]
65132         [BZ #13924]
65133         * math/e_exp10.c: Include <float.h>.
65134         (__ieee754_exp10): Handle underflow here rather than multiplying
65135         large negative argument by M_LN10.
65136         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65137         of __ieee754_expf.
65138         * math/e_exp10l.c: Include <float.h>.
65139         (__ieee754_exp10l): Handle underflow here rather than multiplying
65140         large negative argument by M_LN10l.
65141         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65142         spurious overflow exception on underflow.
65143
65144 2012-04-29  Marek Polacek  <polacek@redhat.com>
65145
65146         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65147         (__fortify_function): New macro.
65148         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65149         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65150         __extern_always_inline.
65151         * libio/bits/stdio2.h: Likewise.
65152         * libio/bits/stdio.h: Likewise.
65153         * string/string.h: Likewise.
65154         * string/bits/string3.h: Likewise.
65155         * include/stdio.h: Likewise.
65156         * stdlib/bits/stdlib.h: Likewise.
65157         * stdlib/stdlib.h: Likewise.
65158         * rt/bits/mqueue2.h: Likewise.
65159         * rt/mqueue.h: Likewise.
65160         * posix/bits/unistd.h: Likewise.
65161         * posix/unistd.h: Likewise.
65162         * io/bits/poll2.h: Likewise.
65163         * io/bits/fcntl2.h: Likewise.
65164         * io/fcntl.h: Likewise.
65165         * io/sys/poll.h: Likewise.
65166         * misc/bits/syslog.h: Likewise.
65167         * misc/bits/syslog-ldbl.h: Likewise.
65168         * misc/sys/syslog.h: Likewise.
65169         * socket/bits/socket2.h: Likewise.
65170         * socket/sys/socket.h: Likewise.
65171         * debug/tst-chk1.c: Likewise.
65172         * wcsmbs/bits/wchar2.h: Likewise.
65173         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65174         * wcsmbs/wchar.h: Likewise.
65175
65176 2012-04-29  Andreas Jaeger  <aj@suse.de>
65177
65178         * Makerules (tests): Remove enable-check-abi protection.
65179         (check-abi-warn): Remove.
65180         (check-abi-%): Remove check-abi-warn usage.
65181
65182         * configure.in: Remove check-abi configure option.
65183         * configure: Regenerated.
65184         * config.make.in (enable-check-abi): Remove.
65185
65186 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65187
65188         [BZ #14033]
65189         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65190         double functions to double *_finite functions.
65191
65192         [BZ #13941]
65193         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65194         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65195         LDBL_MIN_EXP.
65196         * stdio-common/Makefile (tests): Add tst-sprintf3.
65197         * stdio-common/tst-sprintf3.c: New file.
65198
65199         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65200         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65201
65202 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65203
65204         * conform/conformtest.pl: Remove duplicate typed-constant
65205         handling.
65206
65207 2012-04-28  David S. Miller  <davem@davemloft.net>
65208
65209         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65210         (check-abi-%): Remove AWK script prerequisite and explicit
65211         abilist directory.
65212         (check-abi): Rewrite to just diff the symlist with the abilist.
65213         (config-tls, config-abi-config): Delete, no longer used.
65214         (update-abi-%): Remove AWK script and explicit abilist directory.
65215         (update-abi): Rewrite to simply compare and conditionally copy the
65216         symlist and the sysdep abilist file.  Remove update-abi-config
65217         checks.
65218         * abilist/ld.abilist: Remove.
65219         * abilist/libBrokenLocale.abilist: Remove.
65220         * abilist/libanl.abilist: Remove.
65221         * abilist/libcrypt.abilist: Remove.
65222         * abilist/libdl.abilist: Remove.
65223         * abilist/librt.abilist: Remove.
65224         * abilist/libthread_db.abilist: Remove.
65225         * abilist/libutil.abilist: Remove.
65226         * scripts/extract-abilist.awk: Remove.
65227         * scripts/merge-abilist.awk: Remove.
65228         * sysdeps/generic/libcidn.abilist: New file.
65229         * sysdeps/generic/libnss_compat.abilist: New file.
65230         * sysdeps/generic/libnss_db.abilist: New file.
65231         * sysdeps/generic/libnss_dns.abilist: New file.
65232         * sysdeps/generic/libnss_files.abilist: New file.
65233         * sysdeps/generic/libnss_hesiod.abilist: New file.
65234         * sysdeps/generic/libnss_nis.abilist: New file.
65235         * sysdeps/generic/libnss_nisplus.abilist: New file.
65236         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65237         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65238         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65239         file.
65240         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65241         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65242         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65243         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65244         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65245         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65246         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65247         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65248         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65249         file.
65250         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65251         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65252         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65253         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65254         file.
65255         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65256         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65257         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65258         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65259         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65260         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65261         file.
65262         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65263         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65264         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65265         file.
65266         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65267         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65268         New file.
65269         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65270         New file.
65271         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65272         New file.
65273         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65274         New file.
65275         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65276         New file.
65277         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65278         New file.
65279         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65280         New file.
65281         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65282         New file.
65283         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65284         New file.
65285         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65286         New file.
65287         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65288         New file.
65289         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65290         New file.
65291         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65292         New file.
65293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65294         file.
65295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65296         New file.
65297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65298         New file.
65299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65300         file.
65301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65302         New file.
65303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65304         New file.
65305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65306         file.
65307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65308         New file.
65309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65310         New file.
65311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65312         New file.
65313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65314         New file.
65315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65316         New file.
65317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65318         New file.
65319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65320         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65321         file.
65322         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65323         New file.
65324         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65325         file.
65326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65327         file.
65328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65329         file.
65330         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65331         file.
65332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65333         file.
65334         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65335         New file.
65336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65337         file.
65338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65339         file.
65340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65341         New file.
65342         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65343         file.
65344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65345         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65346         file.
65347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65348         New file.
65349         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65350         file.
65351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65352         file.
65353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65354         file.
65355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65356         file.
65357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65358         file.
65359         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65360         New file.
65361         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65362         file.
65363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65364         file.
65365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65366         New file.
65367         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65368         file.
65369         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65370         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65371         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65372         file.
65373         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65374         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65375         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65376         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65377         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65378         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65379         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65380         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65381         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65382         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65384         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65385         file.
65386         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65387         New file.
65388         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65389         file.
65390         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65391         file.
65392         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65393         file.
65394         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65395         file.
65396         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65397         file.
65398         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65399         New file.
65400         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65401         New file.
65402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65403         file.
65404         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65405         New file.
65406         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65407         file.
65408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65409         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65410         file.
65411         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65412         New file.
65413         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65414         file.
65415         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65416         file.
65417         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65418         file.
65419         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65420         file.
65421         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65422         file.
65423         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65424         New file.
65425         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65426         New file.
65427         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65428         file.
65429         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65430         New file.
65431         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65432         file.
65433
65434 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65435
65436         * conform/conformtest.pl: Fix typo in handling typed-constant from
65437         allow-header.
65438
65439 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65440
65441         * README: Cut down references to pre-2.6 Linux kernels and
65442         Linuxthreads.  Update lists of configurations in libc and ports
65443         and sort alphabetically.  Say "or newer" with Linux kernel version
65444         requirements.
65445
65446         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65447
65448 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65449
65450         [BZ #887]
65451         * math/libm-test.inc (logb_test_downward): New test to expose
65452         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65453         rounding mode.
65454
65455 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65456
65457         [BZ #14027]
65458         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65459         to be done.
65460         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65461         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65462
65463 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65464
65465         * sysdeps/unix/i386/brk.S: Remove file.
65466         * sysdeps/unix/i386/dl-brk.S: Likewise.
65467         * sysdeps/unix/i386/pipe.S: Likewise.
65468         * sysdeps/unix/i386/sigreturn.S: Likewise.
65469         * sysdeps/unix/i386/syscall.S: Likewise.
65470         * sysdeps/unix/i386/vfork.S: Likewise.
65471         * sysdeps/unix/i386/wait.S: Likewise.
65472
65473         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65474         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65475
65476         * configure.in (arm*-none*): Do not allow without
65477         --enable-hacker-mode.
65478         (netbsd*): Remove case setting base_os.
65479         (386bsd*): Likewise.
65480         (freebsd*): Likewise.
65481         (bsdi*): Likewise.
65482         (osf*): Likewise.
65483         (sunos*): Likewise.
65484         (ultrix*): Likewise.
65485         (newsos*): Likewise.
65486         (dynix*): Likewise.
65487         (*bsd*): Likewise.
65488         (sysv*): Likewise.
65489         (isc*): Likewise.
65490         (esix*): Likewise.
65491         (sco*): Likewise.
65492         (minix*): Likewise.
65493         (irix4*): Likewise.
65494         (irix6*): Likewise.
65495         (solaris[2-9]*): Likewise.
65496         (none): Likewise.
65497         * configure: Regenerated.
65498
65499 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65500
65501         [BZ #11521]
65502         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65503         overflow or cancellation in calculating denominator.
65504         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65505         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65506         down expression to avoid unexpected rounding in newer GCCs.
65507         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65508
65509 2012-04-26  David S. Miller  <davem@davemloft.net>
65510
65511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65512         long-double compat symbols.
65513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65521         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65523         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65526
65527 2012-04-25  David S. Miller  <davem@davemloft.net>
65528
65529         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65530         HWCAP_* values only after the memory barriers have been defined.
65531         (atomic_full_barrier): Define.
65532         (atomic_read_barrier): Define.
65533         (atomic_write_barrier): Define.
65534
65535 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65536
65537         * shlib-versions: Add libgcc_s version information.
65538         * sysdeps/generic/libgcc_s.h: Remove.
65539         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65540         libgcc_s.h.
65541         * sysdeps/gnu/unwind-resume.c: Likewise.
65542         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65543
65544 2012-04-25  David S. Miller  <davem@davemloft.net>
65545
65546         * sysdeps/unix/sparc/brk.S: Delete.
65547         * sysdeps/unix/sparc/dl-brk.S: Delete.
65548         * sysdeps/unix/sparc/pipe.S: Delete.
65549         * sysdeps/unix/sparc/sysdep.S: Delete.
65550         * sysdeps/unix/sparc/sysdep.h: Delete.
65551         * sysdeps/unix/sparc/vfork.S: Delete.
65552         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65553         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65554         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65555         (ret_ERRVAL, r0, r1, MOVE): Define.
65556         (JUMPTARGET): Remove.
65557         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65558         sysdeps/unix/sparc/sysdep.h
65559         (ENTRY, END): Remove.
65560         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65561
65562 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65563
65564         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65565         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65566         -DIS_IN_build.
65567
65568         * timezone/README: Update upstream location and email address for
65569         tzcode and tzdata.
65570         * timezone/zdump.c: Update from tzcode 2012b.
65571         * timezone/zic.c: Likewise.
65572
65573         * configure.in (libc_cv_as_needed): Remove test.
65574         * configure: Regenerated.
65575         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65576         conditional definition.
65577         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65578         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65579         * config.make.in (have-as-needed): Remove variable.
65580
65581 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65582             Paul Pluzhnikov  <ppluzhnikov@google.com>
65583
65584         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65585         strings correctly.
65586
65587 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65588
65589         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65590         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65591         * sysdeps/sh/strlen.S: Likewise.
65592
65593 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65594
65595         * sysdeps/unix/fork.S: Remove file.
65596         * sysdeps/unix/i386/fork.S: Likewise.
65597         * sysdeps/unix/sparc/fork.S: Likewise.
65598
65599         * sysdeps/unix/system.c: Remove file.
65600         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65601
65602         * sysdeps/unix/getegid.S: Remove file.
65603         * sysdeps/unix/geteuid.S: Likewise.
65604
65605 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65606
65607         * scripts/check-localplt.awk: New file.
65608         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65609         of diff.
65610         * scripts/data/localplt-generic.data: Add a comment.
65611
65612         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65613         NODE when __dir_mkfile failed.
65614         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65615         Reported by Ludovic Courtès <ludo@gnu.org>.
65616
65617 2012-04-24  Andreas Jaeger  <aj@suse.de>
65618
65619         * Makerules (common-clean): Also remove gen-as-const-headers
65620         files.
65621
65622 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65623
65624         * Makerules (native-compile): Do not change working directory for
65625         build.  Use $(OUTPUT_OPTION) in command.
65626         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65627
65628 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65629
65630         [BZ #13886]
65631         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65632         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65633         * math/libm-test.inc (floor_test): Add more tests.
65634         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65635
65636 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65637
65638         * sysdeps/unix/getdents.c: Remove file.
65639         * sysdeps/unix/sysv/getdents.c: Likewise.
65640         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65641
65642         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65643         sysdeps/unix/mman/syscalls.list.
65644         (mmap): Likewise.
65645         (mprotect): Likewise.
65646         (msync): Likewise.
65647         (munmap): Likewise.
65648         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65649         * sysdeps/unix/mman/syscalls.list: Remove.
65650         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65651
65652         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65653         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65654         * configure: Regenerated.
65655         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65656         $(libgcc_s_suffix).
65657         * config.make.in (libgcc_s_suffix): Remove variable.
65658
65659 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65660
65661         * sysdeps/unix/sysv/gethostname.c: Move to ...
65662         * sysdeps/posix/gethostname.c: ... here.
65663
65664         * sysdeps/unix/execve.S: Remove file.
65665
65666         * sysdeps/unix/_exit.S: Remove file.
65667
65668 2012-04-23  Andreas Jaeger  <aj@suse.de>
65669
65670         [BZ #13739]
65671         * manual/Makefile: Remove make dist support, there's no
65672         need for a stand-alone documentation tar ball.
65673         (TEXI2DVI): Define always, it's not in Makeconfig.
65674         (dist): Removed.
65675         (tar-it): Removed.
65676         (edition): Removed.
65677         (glibc-doc-$(edition).tar): Removed
65678         (%.Z): Removed.
65679         (%.gz): Removed.
65680         (%.uu): Removed.
65681         (ETAGS): Remove, it's in Makeconfig.
65682         (move-if-change): Remove, it's in Makeconfig.
65683
65684 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         [BZ #13970]
65687         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65688         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65689         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65690         (strtod_l, strtof_l, strtold_l): Remove __wur.
65691         It is not necessarily an error to ignore strtol's return value.
65692         One can reliably look at the stored endptr to decide whether
65693         the number had valid syntax.
65694
65695 2012-04-21  Andreas Jaeger  <aj@suse.de>
65696
65697         [BZ #13739]
65698         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65699
65700 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65701
65702         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65703         * sysdeps/unix/sysv/Versions: Remove file.
65704
65705 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65706
65707         [BZ #13927]
65708         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65709
65710 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65711
65712         [BZ #7064]
65713         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65714         version from __vm86.
65715
65716 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65717
65718         * sysdeps/unix/common/lxstat.c: Remove file.
65719         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65720
65721         * sysdeps/unix/sysv/Makefile: Remove file.
65722
65723         * sysdeps/unix/sysv/direct.h: Remove file.
65724
65725         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65726         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65727         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65728         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65729         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65730         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65731         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65732
65733         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65734
65735         * sysdeps/unix/xmknod.c: Remove file.
65736         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65737
65738         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65739
65740         * sysdeps/unix/sysv/i386/time.S: Remove file.
65741
65742         * sysdeps/unix/fxstat.c: Remove file.
65743         * sysdeps/unix/xstat.c: Likewise.
65744         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65745
65746         * sysdeps/unix/sysv/sigaction.c: Remove file.
65747
65748         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65749         (sysdep_headers): Remove variable.
65750         [termio.h not in sysdep_headers] (generated): Likewise.
65751         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65752         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65753         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65754         * sysdeps/unix/sysv/tcflow.c: Likewise.
65755         * sysdeps/unix/sysv/tcflush.c: Likewise.
65756         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65757         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65758         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65759         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65760         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65761
65762         * sysdeps/unix/siglist.c: Remove file.
65763
65764         * sysdeps/unix/getppid.S: Remove file.
65765
65766         * sysdeps/unix/mkdir.c: Remove file.
65767         * sysdeps/unix/rmdir.c: Likewise.
65768
65769 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65770
65771         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65772         ERR_MAX value.
65773         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65774         errlist-compat value.
65775
65776 2012-04-18  David S. Miller  <davem@davemloft.net>
65777
65778         * sysdeps/generic/memcopy.h (reg_char): Delete.
65779         * debug/strcat_chk.c: Use char, not reg_char.
65780         * debug/strcpy_chk.c: Likewise.
65781         * debug/strncat_chk.c: Likewise.
65782         * debug/strncpy_chk.c: Likewise.
65783         * string/memchr.c: Likewise.
65784         * string/memrchr.c: Likewise.
65785         * string/rawmemchr.c: Likewise.
65786         * string/strcat.c: Likewise.
65787         * string/strchr.c: Likewise.
65788         * string/strchrnul.c: Likewise.
65789         * string/strcmp.c: Likewise.
65790         * string/strcpy.c: Likewise.
65791         * string/strncat.c: Likewise.
65792         * string/strncmp.c: Likewise.
65793         * string/strncpy.c: Likewise.
65794
65795 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65796
65797         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65798         __builtin_memcopy is called when src and dest ranges are known to not
65799         overlap.
65800
65801 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65802
65803         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65804         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65805         fwd_align_merge macro call.
65806         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65807         bwd_align_merge macro call.
65808         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65809
65810 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65811
65812         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65813         bwd_align_merge macros.
65814         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65815         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65816         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65817
65818 2012-04-18  David S. Miller  <davem@davemloft.net>
65819
65820         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65821
65822 2012-04-18  Andreas Jaeger  <aj@suse.de>
65823
65824         [BZ# 6794]
65825         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65826         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65827         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65828
65829         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65830         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65831         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65832
65833         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65834         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65835         Adjust for changed ldbl-128 files.
65836
65837         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65838         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65839         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65840
65841 2012-04-17  David S. Miller  <davem@davemloft.net>
65842
65843         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65844
65845 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65846
65847         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65848         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65849         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65850         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65851         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65852         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65853
65854 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65855
65856         [BZ #6794]
65857         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65858         * math/libm-test.inc: Add ilogb errno and exception tests.
65859         * math/w_ilogb.c: New file: ilogb wrapper.
65860         * math/w_ilogbf.c: New file: ilogbf wrapper.
65861         * math/w_ilogbl.c: New file: ilogbl wrapper.
65862         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65863         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65864         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65865         exception being thrown with 0.0 as argument.
65866         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65867         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65868         exception being thrown with 0.0 as argument.
65869         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65870         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65871         exception being thrown with 0.0 as argument.
65872         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65873         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65874         exception being thrown with 0.0 as argument.
65875         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65876         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65877         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65878         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65879         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65880         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65881         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65882         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65883         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65884
65885 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65886
65887         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65888         with altivec.
65889
65890 2012-04-16  Marek Polacek  <polacek@redhat.com>
65891
65892         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65893
65894 2012-04-16  Marek Polacek  <polacek@redhat.com>
65895
65896         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65897         operands of fdivp instruction.
65898
65899 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65900
65901         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65902         * elf/tst-auditmod3b.c: Likewise.
65903         * elf/tst-auditmod4b.c: Likewise.
65904         * elf/tst-auditmod5b.c: Likewise.
65905         * elf/tst-auditmod6b.c: Likewise.
65906         * elf/tst-auditmod6c.c: Likewise.
65907         * elf/tst-auditmod7b.c: Likewise.
65908         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65909         * sysdeps/x86_64/preconfigure.in: Likewise.
65910         * sysdeps/x86_64/preconfigure: Regenerated.
65911
65912 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65913
65914         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65915         __ILP32__.
65916
65917 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65918
65919         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65920         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65921
65922 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65923
65924         [BZ #13973]
65925         * locale/iso-639.def: Fix gl language name. Spotted by
65926         Yaron Shahrabani.
65927
65928 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65929
65930         [BZ #2074]
65931         * libio/libio.h (__io_write_fn): Update comment.
65932
65933 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65934
65935         [BZ #2074]
65936         * stdio.texi (Hook Functions): The user provided writer function
65937         is not allowed to return -1.
65938
65939 2012-04-11  David S. Miller  <davem@davemloft.net>
65940
65941         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65942
65943 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65944
65945         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65946         Add a leading slash to rtkaio.
65947
65948 2012-04-11  Jim Meyering  <meyering@redhat.com>
65949
65950         [BZ #11959]
65951         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65952         It is not necessarily an error to ignore fwrite's return
65953         value.  One can reliably use ferror to test for errors after
65954         the fact.
65955
65956 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65957
65958         * bits/types.h (__snseconds_t): New type.
65959         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65960
65961         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65962         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65963         (__SNSECONDS_T_TYPE): Likewise.
65964         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65965         (__SNSECONDS_T_TYPE): Likewise.
65966         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65967         (__SNSECONDS_T_TYPE): Likewise.
65968
65969 2012-04-10  Andreas Jaeger  <aj@suse.de>
65970
65971         [BZ #2636]
65972         * manual/time.texi (Processor Time): Return type of times is
65973         elapsed real time since an arbitrary point in the past.
65974         (CPU Time): Move CLK_TCK from here...
65975         (Processor Time): ...to here.  Correct description.
65976         * manual/conf.texi (Constants for Sysconf): Correct description of
65977         _SC_CLK_TCK.
65978
65979 2012-04-10  David S. Miller  <davem@davemloft.net>
65980
65981         [BZ #13967]
65982         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65983         where the is a gap between DT_REL(A) and DT_JMPREL.
65984
65985 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65986
65987         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65988         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65989         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65990
65991 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65992
65993         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65994         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65995         (dl_main): Handle --inhibit-cache.
65996         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65997         _dl_inhibit_cache.
65998         * elf/dl-load.c (_dl_map_object): Use it.
65999         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
66000
66001 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66002
66003         [BZ #13872]
66004         * sysdeps/i386/fpu/e_powl.S (p78): New object.
66005         (__ieee754_powl): Saturate large exponents rather than testing for
66006         overflow of y*log2(x).
66007         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
66008         * math/libm-test.inc (pow_test): Do not permit spurious overflow
66009         exceptions.
66010
66011         [BZ #11521]
66012         * math/s_ctan.c: Include <float.h>.
66013         (__ctan): Avoid internal overflow or cancellation in calculating
66014         denominator.
66015         * math/s_ctanf.c: Likewise.
66016         * math/s_ctanl.c: Likewise.
66017         * math/s_ctanh.c: Likewise.
66018         * math/s_ctanhf.c: Likewise.
66019         * math/s_ctanhl.c: Likewise.
66020         * math/libm-test.inc (ctan_test): Add more tests.
66021         (ctanh_test): Likewise.
66022         * sysdeps/i386/fpu/libm-test-ulps: Update.
66023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66024
66025 2012-04-09  Andreas Jaeger  <aj@suse.de>
66026
66027         [BZ #6894]
66028         * manual/filesys.texi (Directory Entries): Mention that d_namlen
66029         is an optional BSD extension.
66030
66031         [BZ #10254]
66032         * manual/stdio.texi (Opening Streams): Document additional fopen
66033         parameters.
66034
66035 2012-04-09  Roland McGrath  <roland@hack.frob.com>
66036
66037         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
66038         %eax without telling the compiler.
66039
66040 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
66041
66042         [BZ # 13963]
66043         * manual/install.texi: Use sourceware.org.
66044
66045 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66046
66047         [BZ #13873]
66048         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
66049         (__ieee754_pow): Generate overflow and underflow using huge*huge
66050         and tiny*tiny rather than just returning constant infinity or zero
66051         for large exponents.
66052         * math/libm-test.inc (pow_test): Require overflow exceptions for
66053         applicable cases of large exponents.
66054
66055         [BZ #706]
66056         * sysdeps/i386/fpu/e_pow.S (p10): New object.
66057         (__ieee754_pow): Use iterative multiplication algorithm only for
66058         integer exponents with absolute value below 1024.  Check for odd
66059         integer exponents when using algorithm for real exponents.
66060         * math/libm-test.inc (pow_test): Add more tests.
66061         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66062
66063 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
66064
66065         [BZ #13705]
66066         * math/libm-test.inc (exp_test): Do not allow overflow exception
66067         on underflow test.
66068
66069 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
66070
66071         [BZ #13705]
66072         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
66073         instead of __kernel_standard_f.
66074
66075 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
66076
66077         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
66078         * sysdeps/x86_64/memset_chk.S: Likewise.
66079
66080 2012-04-08  Andreas Jaeger  <aj@suse.de>
66081
66082         [BZ #10153]
66083         * manual/startup.texi (Environment Access): Describe return value
66084         for putenv and setenv.
66085
66086         [BZ #6895]
66087         * manual/filesys.texi (Directory Entries): Add description for
66088         DT_LNK.
66089
66090         [BZ #6890]
66091         * manual/filesys.texi (Directory Entries): Clarify that it's file
66092         system not operating system in the description of DT_UNKNOWN.
66093
66094         [BZ #6578]
66095         * manual/syslog.texi (closelog): Fix reference, it's openlog.
66096
66097 2012-04-08  Stephen Compall  <s11@member.fsf.org>
66098
66099         [BZ #6649]
66100         * manual/llio.texi (Opening and Closing Files): Add cross
66101         reference to explain mode argument.
66102
66103 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
66104
66105         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
66106         * sysdeps/x86_64/memset_chk.S: Likewise.
66107
66108 2012-04-07  David S. Miller  <davem@davemloft.net>
66109
66110         * elf/elf.h (R_SPARC_WDISP10): Define.
66111         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
66112         R_SPARC_SIZE32.
66113         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
66114         R_SPARC_SIZE64 and R_SPARC_H34.
66115
66116 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
66117
66118         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
66119         conditions and remove no longer applicable assertion.
66120
66121 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66122
66123         * bits/byteswap.h: Include <features.h>.
66124         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66125         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66126
66127 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66128
66129         * bits/byteswap.h (__bswap_16): Removed.
66130         Include <bits/byteswap-16.h> to get __bswap_16.
66131         * sysdeps/i386/bits/byteswap.h: Likewise.
66132         * sysdeps/s390/bits/byteswap.h: Likewise.
66133         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66134         * bits/byteswap-16.h: New file.
66135         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66136         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66137         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66138         * string/Makefile (headers): Add bits/byteswap-16.h.
66139
66140 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66141
66142         [BZ #13895]
66143         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66144         extra indirection.
66145         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66146         * nss/tst-nss-static.c: New.
66147
66148 2012-04-06  Robert Millan  <rmh@gnu.org>
66149
66150         [BZ #6486]
66151         * manual/llio.texi (File Position Primitive): lseek
66152         refers to WHENCE when it really means OFFSET.
66153
66154 2012-04-06  Andreas Jaeger  <aj@suse.de>
66155
66156         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66157         strncmp declarations.
66158
66159         * abilist/libc.abilist: Add __poll and __ppoll.
66160
66161 2012-04-05  David S. Miller  <davem@davemloft.net>
66162
66163         * scripts/check-local-headers.sh: Accept a host triplet in the
66164         path matched by the exclude regexp.
66165
66166         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66167         definition.
66168         * sysdeps/powerpc/powerpc32/dl-machine.h
66169         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66170         * sysdeps/s390/s390-32/dl-machine.h
66171         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66172         * sysdeps/sparc/sparc32/dl-machine.h
66173         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66174         * sysdeps/sparc/sparc64/dl-machine.h
66175         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66176
66177         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66178         lazy binding.
66179         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66180         undefined symbol errors.
66181
66182         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66183         DT_NEEDED entries.
66184
66185 2012-04-05  Michael Matz  <matz@suse.de>
66186
66187         [BZ #13592]
66188         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66189
66190 2012-04-05  Andreas Jaeger  <aj@suse.de>
66191
66192         [BZ #13908]
66193         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66194         comment.
66195
66196 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66197
66198         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66199         which ROUND is no valid rounding mode.
66200
66201 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66202
66203         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66204         read again.
66205         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66206
66207 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66208
66209         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66210         an exception using FPU order intentionally.
66211
66212 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66213
66214         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66215         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66216         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66217         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66218
66219 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66220
66221         [BZ #12340]
66222         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66223         EINVAL when BUFLEN is too smal.
66224
66225 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66226
66227         [BZ #13553]
66228         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66229         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66230
66231 2012-04-03  Andreas Jaeger  <aj@suse.de>
66232
66233         [BZ #13938]
66234         * manual/setjmp.texi (System V contexts): Fix sentence.
66235
66236         [BZ #13926]
66237         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66238         New macro for this case.
66239         [!__GNUC__] (__bswap_64): New inline function for this case.
66240         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66241         * bits/byteswap.h: Likewise.
66242         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66243         ull, guard with __GLIBC_HAVE_LONG_LONG.
66244
66245         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66246         __GLIBC_HAVE_LONG_LONG.
66247
66248         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66249         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66250
66251 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66252
66253         [BZ #13691]
66254         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66255         inptr and inend, rather than using last_ch.
66256
66257 2012-04-02  David S. Miller  <davem@davemloft.net>
66258
66259         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66260         * stdio-common/printf-parse.h (read_int): Change return type to
66261         'int', return -1 on INT_MAX overflow.
66262         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66263         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66264         overflows INT_MAX.  Check for overflow of in-format-string precision
66265         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66266         SIZE_MAX not INT_MAX for integer overflow test.
66267         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66268         skip the construct in the format string but do not record anything.
66269         * stdio-common/bug22.c: Adjust to test both width/prevision
66270         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66271         explicitly for proper errno values.
66272
66273 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66274
66275         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66276         CHAR_MAX.
66277         * string/test-strcmp.c [! WIDE]: Likewise.
66278         * time/tst-mktime2.c: Likewise for INT_MAX.
66279         * string/test-string.h: #include <sys/param.h> for MIN.
66280
66281         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66282         * sysdeps/i386/init-first.c (init): Likewise.
66283         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66284         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66285         * sysdeps/sh/init-first.c (init): Likewise.
66286
66287 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66288
66289         * po/ru.po: Update from translation team.
66290         * po/vi.po: Likewise.
66291
66292 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66293
66294         * resolv/nss_dns/dns-host.c: Merge copyright years.
66295
66296 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66297
66298         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66299         Optimize memcpy with prefetch if
66300         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66301         src, dst pointers have unequal 16 byte alignments.
66302
66303 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66304
66305         [BZ #13928]
66306         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66307         from a CNAME entry and return the minimum ttl for the query.
66308         (gaih_getanswer_slice): Likewise.
66309
66310 2012-03-30  Jeff Law  <law@redhat.com>
66311
66312         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66313         due to long keys.
66314         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66315         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66316
66317         * resolv/nss_dns/dns-host.c: Update copyright year.
66318
66319 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66320
66321         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66322         requests to save a system call.  Fix check that all bytes are sent.
66323
66324         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66325         comments for sendmmsg.
66326
66327 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66328
66329         [BZ #13691]
66330         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66331         with only 1 character between 0x0041 and 0x01b0.
66332         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66333         * wcsmbs/tst-mbsnrtowcs.c: New file.
66334
66335 2012-03-29  David S. Miller  <davem@davemloft.net>
66336
66337         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66338         small copies by hand.
66339
66340 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66341
66342         [BZ #13761]
66343         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66344         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66345         group memberships.
66346
66347 2012-03-28  David S. Miller  <davem@davemloft.net>
66348
66349         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66350         that branches into memcpy.
66351         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66352         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66353         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66354         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66355         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66356         bits.
66357         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66358         implementation too.
66359         * sysdeps/sparc/mempcpy.S: New file.
66360
66361         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66362         the IFUNC routine in the libc case.
66363         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66364
66365         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66366         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66367         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66368         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66369         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66370         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66371         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66372         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66373
66374         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66375         loop to 256 bytes instead of 64 bytes and fix test signedness.
66376
66377         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66378         * sysdeps/sparc/sparc32/Makefile: rather than here...
66379         * sysdeps/sparc/sparc64/Makefile: and here.
66380
66381 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66382
66383         * malloc/mallocbug.c: Avoid warnings about unused variables.
66384
66385 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66386
66387         [BZ #13760]
66388         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66389         in the right place. Discard and retry query if response is
66390         larger than input buffer size.
66391
66392 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66393
66394         [BZ #369]
66395         [BZ #2678]
66396         [BZ #3866]
66397         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66398         x for large integer exponent.
66399         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66400         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66401         sign of result as needed afterwards.
66402         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66403         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66404         result for underflowing pow the same as for overflow.
66405         (__kernel_standard_l): Handle powl overflow and underflow here
66406         rather than calling __kernel_standard.
66407         * math/libm-test.inc (pow_test): Add more tests.
66408
66409         [BZ #3868]
66410         [BZ #13879]
66411         [BZ #13910]
66412         [BZ #13911]
66413         [BZ #13912]
66414         [BZ #13913]
66415         [BZ #13915]
66416         [BZ #13916]
66417         [BZ #13917]
66418         [BZ #13918]
66419         [BZ #13919]
66420         [BZ #13920]
66421         [BZ #13921]
66422         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66423         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66424         (__kernel_standard_l): New function.
66425         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66426         __kernel_standard.
66427         * math/w_acosl.c (__acosl): Likewise.
66428         * math/w_asinl.c (__asinl): Likewise.
66429         * math/w_atan2l.c (__atan2l): Likewise.
66430         * math/w_atanhl.c (__atanhl): Likewise.
66431         * math/w_coshl.c (__coshl): Likewise.
66432         * math/w_exp10l.c (__exp10l): Likewise.
66433         * math/w_exp2l.c (__exp2l): Likewise.
66434         * math/w_fmodl.c (__fmodl): Likewise.
66435         * math/w_hypotl.c (__hypotl): Likewise.
66436         * math/w_j0l.c (__j0l, __y0l): Likewise.
66437         * math/w_j1l.c (__j1l, __y1l): Likewise.
66438         * math/w_jnl.c (__jnl, __ynl): Likewise.
66439         * math/w_lgammal.c (__lgammal): Likewise.
66440         * math/w_log10l.c (__log10l): Likewise.
66441         * math/w_log2l.c (__log2l): Likewise.
66442         * math/w_logl.c (__logl): Likewise.
66443         * math/w_powl.c (__powl): Likewise.
66444         * math/w_remainderl.c (__remainderl): Likewise.
66445         * math/w_scalbl.c (sysv_scalbl): Likewise.
66446         * math/w_sinhl.c (__sinhl): Likewise.
66447         * math/w_sqrtl.c (__sqrtl): Likewise.
66448         * math/w_tgammal.c (__tgammal): Likewise.
66449         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66450         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66451         * math/libm-test.inc (acos_test): Add more tests.
66452         (acosh_test): Likewise.
66453         (asin_test): Likewise.
66454         (atanh_test): Likewise.
66455         (exp_test): Likewise.
66456         (exp10_test): Likewise.
66457         (exp2_test): Likewise.
66458         (expm1_test): Likewise.
66459         (lgamma_test): Likewise.
66460         (log_test): Likewise.
66461         (log10_test): Likewise.
66462         (log1p_test): Likewise.
66463         (log2_test): Likewise.
66464         (pow_test): Do not allow some spurious overflow exceptions.
66465         (sqrt_test): Add more tests.
66466         (tgamma_test): Likewise.
66467         (y0_test): Likewise.
66468         (y1_test): Likewise.
66469         (yn_test): Likewise.
66470
66471 2012-03-27  Anton Blanchard  <anton@samba.org>
66472
66473         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66474         MAP_HUGETLB.
66475         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66476         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66477         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66478
66479 2012-03-27  David S. Miller  <davem@davemloft.net>
66480
66481         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66482
66483         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66484         have-as-vis3 check.
66485
66486 2012-03-27  Andreas Jaeger  <aj@suse.de>
66487
66488         * sysdeps/x86_64/elf/configure.in: Moved to ...
66489         * sysdeps/x86_64/configure.in: ... here.
66490         * sysdeps/x86_64/elf/start.S: Moved to ...
66491         * sysdeps/x86_64/start.S: ... here.
66492         * sysdeps/x86_64/elf/configure: Delete.
66493
66494         * sysdeps/x86_64/configure.in: Merge contents from
66495         sysdeps/i386/configure.in (without i686 check).
66496
66497         * sysdeps/i386/elf/Versions: Merge into ...
66498         * sysdeps/i386/Versions: ... this.
66499         * sysdeps/i386/elf/Versions: Delete file.
66500         * sysdeps/i386/elf/start.S: Moved to ...
66501         * sysdeps/i386/start.S: ...here.
66502         * sysdeps/i386/elf/configure.in: Merge into...
66503         * sysdeps/i386/configure.in: ...here.
66504         * sysdeps/i386/elf/configure.in: Delete file.
66505         * sysdeps/i386/elf/configure: Delete file.
66506
66507         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66508         * debug/backtracesyms.c: ... here.
66509         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66510         * debug/backtracesymsfd.c: ... here.
66511         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66512         * sysdeps/generic/ifunc-sel.h: ... here.
66513
66514         * sysdeps/unix/i386/start.c: Delete file.
66515         * sysdeps/unix/sparc/start.c: Delete file.
66516         * sysdeps/unix/start.c: Delete file.
66517
66518         * sysdeps/sh/elf/configure.in: Moved to ...
66519         * sysdeps/sh/configure.in: ... here.
66520         * sysdeps/sh/elf/start.S: Moved to ...
66521         * sysdeps/sh/start.S: ... here.
66522         * sysdeps/sh/elf/configure: Delete file.
66523
66524         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66525         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66526         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66527         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66528         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66529         * sysdeps/powerpc/powerpc64/start.S: here.
66530         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66531         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66532         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66533         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66534         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66535
66536         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66537         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66538         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66539         * sysdeps/powerpc/powerpc32/start.S: ... here.
66540         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66541         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66542         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66543
66544         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66545         * sysdeps/powerpc/ifunc-sel.h: ... here.
66546         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66547         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66548
66549         * sysdeps/sparc/elf/configure.in: Moved to ...
66550         * sysdeps/sparc/configure.in: ... here.
66551         * sysdeps/sparc/elf/configure: Delete file.
66552         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66553         * sysdeps/sparc/sparc32/start.S: ... here.
66554         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66555         * sysdeps/sparc/sparc64/start.S: ... here.
66556         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66557         * sysdeps/sparc/sparc32/Makefile: ... this.
66558         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66559         * sysdeps/sparc/sparc64/Makefile: ... this.
66560
66561         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66562         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66563         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66564         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66565         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66566         * sysdeps/s390/s390-32/setjmp.S: ... here.
66567         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66568         * sysdeps/s390/s390-32/configure.in: ... here.
66569         * sysdeps/s390/s390-32/elf/configure: Delete file.
66570         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66571         * sysdeps/s390/s390-32/start.S: ... here.
66572
66573         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66574         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66575         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66576         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66577         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66578         * sysdeps/s390/s390-64/setjmp.S: ... here.
66579         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66580         * sysdeps/s390/s390-64/configure.in: ... here
66581         * sysdeps/s390/s390-64/elf/configure: Delete file.
66582         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66583         * sysdeps/s390/s390-64/start.S: ... here.
66584         * sysdeps/s390/s390-64/elf/configure: Delete.
66585
66586         * configure.in: Remove support for elf directories in sysdeps.
66587
66588         * configure: Regenerated.
66589         * sysdeps/i386/configure: Regenerated.
66590         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66591         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66592         * sysdeps/s390/s390-32/configure: Regenerated.
66593         * sysdeps/s390/s390-64/configure: Regenerated.
66594         * sysdeps/sh/configure: Regenerated.
66595         * sysdeps/sparc/configure: Regenerated.
66596         * sysdeps/x86_64/configure: Regenerated.
66597
66598 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66599
66600         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66601
66602         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66603         denormal result into account.
66604
66605 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66606
66607         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66608         Reported by Allan McRae <allan@archlinux.org>.
66609
66610 2012-03-23  Jeff Law  <law@redhat.com>
66611
66612         * nss/getnssent.c (__nss_getent): Fix typo.
66613
66614 2012-03-23  David S. Miller  <davem@davemloft.net>
66615
66616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66617
66618 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66619
66620         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66621         to pad to uint64_t for each field.
66622         (dl_tls_index): Replace unsigned long with uint64_t.
66623
66624 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66625         Paul Pluzhnikov  <ppluzhnikov@google.com>
66626
66627         [BZ #6528]
66628         * grp/Makefile (otherlibs): Don't set it.
66629         * inet/Makefile (otherlibs): Likewise.
66630         * login/Makefile (otherlibs): Likewise.
66631         * nscd/Makefile (otherlibs): Likewise.
66632         * posix/Makefile (otherlibs): Likewise.
66633         * pwd/Makefile (otherlibs): Likewise.
66634         * rt/Makefile (otherlibs): Likewise.
66635         * sunrpc/Makefile (otherlibs): Likewise.
66636         * nss/Makefile (otherlibs): Likewise.
66637         Add libnss_files to routines and static-only-routines.
66638         ($(objpfx)getent): Remove rule.
66639         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66640         static-only-routines.
66641
66642 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66643
66644         [BZ #13892]
66645         * math/s_cexp.c: Include <float.h>.
66646         (__cexp): Handle exp result overflowing not necessarily
66647         overflowing both real and imaginary parts of result.
66648         * math/s_cexpf.c: Likewise.
66649         * math/s_cexpl.c: Likewise.
66650         * math/libm-test.inc (cexp_test): Add more tests.
66651         * sysdeps/i386/fpu/libm-test-ulps: Update.
66652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66653
66654 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66655
66656         * include/link.h (ELFW): New macro.
66657         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66658         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66659
66660 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66661
66662         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66663         with uint64_t.
66664
66665 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66666
66667         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66668         declaration.
66669         (struct La_x32_retval): Likewise.
66670
66671 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66672
66673         * sysdeps/x86_64/preconfigure.in: New file.
66674         * sysdeps/x86_64/preconfigure: New generated file.
66675
66676 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66677
66678         [BZ #13824]
66679         * math/e_exp2l.c: Include <float.h>.
66680         (__ieee754_exp2l): Handle overflow and underflow cases
66681         separately.  Only pass fractional part of argument to
66682         __ieee754_expl.
66683         * math/libm-test.inc (exp2_test): Add more tests.
66684
66685         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66686         negating x to take absolute value.
66687         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66688         Likewise.
66689         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66690         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66691         Likewise.
66692         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66693         computing low part if x was negated.
66694         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66695
66696 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66697
66698         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66699         la_x32_gnu_pltexit.
66700         (pltexit): Cast int_retval to ptrdiff_t.
66701         * elf/tst-auditmod3b.c: Likewise.
66702         * elf/tst-auditmod4b.c: Likewise.
66703         * elf/tst-auditmod5b.c: Likewise.
66704         * elf/tst-auditmod6b.c: Likewise.
66705         * elf/tst-auditmod6c.c: Likewise.
66706         * elf/tst-auditmod7b.c: Likewise.
66707
66708         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66709         and x32_gnu_pltexit.
66710
66711         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66712         __ELF_NATIVE_CLASS.
66713         (La_x32_regs): New macro.
66714         (La_x32_retval): Likewise.
66715         (la_x32_gnu_pltenter): New function prototype.
66716         (la_x32_gnu_pltexit): Likewise.
66717
66718 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66719
66720         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66721         exponent.
66722
66723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66724
66725         * configure.in (libc_cv_cc_nofma): Check for option to disable
66726         generation of FMA instructions.
66727         * configure: Regenerate.
66728         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66729         * sysdeps/ieee754/dbl-64/Makefile: New file.
66730         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66731         Remove brandred-fma4.
66732         (CFLAGS-brandred-fma4.c): Remove.
66733         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66734         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66735         define.
66736         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66737         define.
66738
66739 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66740
66741         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66742         LLONG_MAX != LONG_MAX.
66743         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66744         (_fitoa_word): Likewise.
66745         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66746         LLONG_MAX != LONG_MAX.
66747         * stdio-common/_itowa.h: Include <_itoa.h>.
66748         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66749         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66750         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66751         only if not defined.
66752         (_ITOA_WORD_TYPE): Likewise.
66753         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66754         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66755
66756 2012-03-21  David S. Miller  <davem@davemloft.net>
66757
66758         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66759
66760 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66761
66762         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66763         of x86_64 when setting libc_cv_slibdir, libdir and
66764         libc_cv_localedir.
66765         * sysdeps/unix/sysv/linux/configure: Regenerated.
66766
66767 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66768
66769         * manual/lang.texi (Old Varargs): Remove section.
66770         (How Variadic): Update menu.
66771         (va_start): Do not mention varargs.h.
66772
66773 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66774             Joseph Myers  <joseph@codesourcery.com>
66775
66776         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66777         link test.
66778         * configure: Regenerated.
66779
66780 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66781
66782         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66783         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66784         conformtest.pl
66785
66786 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66787
66788         * NOTES: Remove.
66789         * Makefile (files-for-dist): Remove NOTES.
66790         (NOTES): Remove rule.
66791         * README: Don't refer to NOTES.
66792         * manual/creature.texi: Don't include macros.texi.
66793         * manual/intro.texi (creature.texi): Remove comment referring to
66794         NOTES.
66795
66796         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66797         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66798         * configure: Regenerated.
66799         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66800         LIBC_TRY_CC_OPTION.
66801         (libc_cv_as_i686): Likewise.
66802         (libc_cv_cc_avx): Likewise.
66803         (libc_cv_cc_sse2avx): Likewise.
66804         (libc_cv_cc_fma4): Likewise.
66805         (libc_cv_cc_novzeroupper): Likewise.
66806         * sysdeps/i386/configure: Regenerated.
66807
66808         [BZ #13883]
66809         * sysdeps/i386/fpu/s_cexp.S: Remove.
66810         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66811         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66812         * math/libm-test.inc (cexp_test): Add more tests.
66813         * sysdeps/i386/fpu/libm-test-ulps: Update.
66814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66815
66816 2012-03-21  Allan McRae  <allan@archlinux.org>
66817
66818         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66819
66820 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66821
66822         [BZ #13871]
66823         * math/w_exp2.c: Do not include <float.h>.
66824         (o_threshold, u_threshold): Remove.
66825         (__exp2): Calculate result before checking finiteness and calling
66826         __kernel_standard.
66827         * math/w_exp2f.c: Likewise.
66828         * math/w_exp2l.c: Likewise.
66829         * math/libm-test.inc (exp2_test): Require overflow exception for
66830         1e6 input.
66831
66832         [BZ #3866]
66833         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66834         range of signed 64-bit integers before using fistpll.  Remove
66835         checks for whether integers fit in mantissa bits.
66836         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66837         the range of signed 32-bit integers before using fistpl.  Remove
66838         checks for whether integers fit in mantissa bits.
66839         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66840         (__ieee754_powl): Test for y outside the range of signed 64-bit
66841         integers before using fistpll.  Reduce 64-bit values to 63-bit
66842         ones as needed.
66843         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66844         divide-by-zero is raised for zero to large negative powers.
66845         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66846         (__ieee754_powl): Test for y outside the range of signed 64-bit
66847         integers before using fistpll.  Reduce 64-bit values to 63-bit
66848         ones as needed.
66849         * math/libm-test.inc (pow_test): Add more tests.
66850
66851 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66852
66853         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66854         <stdio-common/_itoa.h>.
66855         * debug/segfault.c: Likewise.
66856         * elf/dl-cache.c: Likewise.
66857         * elf/dl-minimal.c: Likewise.
66858         * elf/dl-misc.c: Likewise.
66859         * elf/dl-sysdep.c: Likewise.
66860         * elf/dl-version.c: Likewise.
66861         * elf/rtld.c: Likewise.
66862         * hurd/hurdsock.c: Likewise.
66863         * hurd/lookup-retry.c: Likewise.
66864         * malloc/malloc.c: Likewise.
66865         * malloc/mtrace.c: Likewise.
66866         * nscd/nscd_getgr_r.c: Likewise.
66867         * nscd/nscd_getpw_r.c: Likewise.
66868         * nscd/nscd_getserv_r.c: Likewise.
66869         * posix/getopt_init.c: Likewise.
66870         * posix/wordexp.c: Likewise.
66871         * stdio-common/_itoa.c: Likewise.
66872         * stdio-common/printf_fphex.c: Likewise.
66873         * stdio-common/vfprintf.c: Likewise.
66874         * string/_strerror.c: Likewise.
66875         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66876         * sysdeps/i386/i686/hp-timing.h: Likewise.
66877         * sysdeps/mach/_strerror.c: Likewise.
66878         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66879         * sysdeps/mach/hurd/sethostid.c: Likewise.
66880         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66881         * sysdeps/mach/xpg-strerror.c: Likewise.
66882         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66883         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66884         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66885         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66886         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66887         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66888         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66889         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66890         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66891         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66892         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66893         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66894         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66895         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66896         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66897         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66898         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66899         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66900         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66901         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66902         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66903
66904         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66905
66906         * stdio-common/_itoa.h: Moved to ...
66907         * sysdeps/generic/_itoa.h: Here.
66908
66909         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66910
66911         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66912         instead of "_itoa.h" and "_itowa.h".
66913         * stdio-common/vfprintf.: Likewise.
66914
66915 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66916
66917         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66918         <bits/wordsize.h>.
66919         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66920         (__signbit): Likwise.
66921         (llrintf): Likwise.
66922         (llrint): Likwise.
66923
66924 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66925
66926         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66927         __WORDSIZE != 64.
66928
66929 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66930
66931         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66932         OVERFLOW_EXCEPTION_OK.
66933         * math/libm-test.inc ("Philosophy"): Update comment about
66934         exception testing.
66935         (OVERFLOW_EXCEPTION): Define.
66936         (OVERFLOW_EXCEPTION_OK): Likewise.
66937         (INVALID_EXCEPTION_OK): Renumber.
66938         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66939         (IGNORE_ZERO_INF_SIGN): Likewise.
66940         (test_exceptions): Handle FE_OVERFLOW.
66941         (exp10_test): Expect overflow exceptions.
66942         (exp2_test): Likewise.
66943         (expm1_test): Likewise.
66944         (nextafter_test): Likewise.
66945         (pow_test): Likewise.
66946         (scalbn_test): Likewise.
66947         (scalbln_test): Likewise.
66948
66949 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66950
66951         * sysdeps/x86_64/bits/atomic.h
66952         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66953         64bit integer.
66954         (atomic_exchange_acq): Likewise.
66955         (__arch_exchange_and_add_body): Likewise.
66956         (__arch_add_body): Likewise.
66957         (atomic_add_negative): Likewise.
66958         (atomic_add_zero): Likewise.
66959
66960 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66961
66962         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66963         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66964
66965 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66966
66967         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66968         Check __x86_64__ instead of __WORDSIZE.
66969
66970 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66971
66972         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66973
66974 2012-03-19  David S. Miller  <davem@davemloft.net>
66975
66976         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66977
66978         * sysdeps/sparc/fpu/fenv_private.h: New file.
66979         * sysdeps/sparc/fpu/math_private.h: Use it.
66980         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66981         Remove.
66982         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66983         (libc_feholdexcept_setroundl): Remove.
66984         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66985         Remove.
66986         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66987         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66988
66989 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66990
66991         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66992         int64_t instead of long int.
66993         (INSERT_WORDS64): Likwise.
66994
66995 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66996
66997         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66998         _Unwind_GetCFA return to _Unwind_Ptr first.
66999
67000 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
67001
67002         [BZ #13629]
67003         * math/s_clog.c: Include <float.h>.
67004         (__clog): Scale large or subnormal inputs.
67005         * math/s_clogf.c: Likewise.
67006         * math/s_clogl.c: Likewise.
67007         * math/s_clog10.c: Include <float.h>.
67008         (M_LOG10_2): Define.
67009         (__clog10): Scale large or subnormal inputs.
67010         * math/s_clog10f.c: Likewise.
67011         * math/s_clog10l.c: Likewise.
67012         * math/libm-test.inc (clog_test): Add more tests.
67013         (clog10_test): Likewise.
67014         * sysdeps/i386/fpu/libm-test-ulps: Update.
67015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67016
67017         [BZ #11451]
67018         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
67019         x and y.
67020         * math/libm-test.inc (atan2_test): Add another test.
67021
67022         * Makerules (common-objdir-compile): Remove.
67023         * sysdeps/unix/Makefile (config-generated): Do not add
67024         $(unix-generated) to variable.
67025         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
67026         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
67027         Remove rule.
67028         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
67029         Likewise.
67030         [generic bits/local_lim.h] (before-compile): Do not append to
67031         variable.
67032         [generic bits/local_lim.h] (common-generated): Likewise.
67033         [generic sys/param.h] (before-compile): Do not append to variable.
67034         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
67035         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
67036         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
67037         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
67038         include.
67039         [generic sys/param.h] (sys/param.h-includes): Remove variable.
67040         [generic sys/param.h] (sys/param.h-includes): Remove rule.
67041         [generic sys/param.h] ($(addprefix
67042         $(common-objpfx),$(sys/param.h-includes))): Likewise.
67043         [generic sys/param.h] (common-generated): Do not append to
67044         variable.
67045         [generic sys/param.h] (sysdep_headers): Likewise.
67046         [generic bits/errno.h] (before-compile): Do not append to
67047         variable.
67048         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
67049         rule.
67050         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
67051         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
67052         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
67053         [generic bits/errno.h] (common-generated): Do not append to
67054         variable.
67055         [generic bits/ioctls.h] (before-compile): Do not append to
67056         variable.
67057         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
67058         rule.
67059         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
67060         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
67061         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
67062         rule.
67063         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
67064         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
67065         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
67066         [generic bits/ioctls.h] (common-generated): Do not append to
67067         variable.
67068         [generic sys/syscall.h] (syscall.h): Remove variable.
67069         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
67070         rule.
67071         [generic sys/syscall.h] (before-compile): Do not append to
67072         variable.
67073         [generic sys/syscall.h] (common-generated): Likewise.
67074         * sysdeps/unix/errnos-tmpl.c: Remove file.
67075         * sysdeps/unix/errnos.awk: Likewise.
67076         * sysdeps/unix/ioctls-tmpl.c: Likewise.
67077         * sysdeps/unix/ioctls.awk: Likewise.
67078         * sysdeps/unix/mk-local_lim.c: Likewise.
67079         * sysdeps/unix/snarf-ioctls: Likewise.
67080
67081 2012-03-19  Richard Henderson  <rth@twiddle.net>
67082
67083         * sysdeps/i386/fpu/fenv_private.h: New file.
67084         * sysdeps/i386/fpu/math_private.h: Use it.
67085         (math_opt_barrier, math_force_eval): Remove.
67086         (libc_feholdexcept_setround_53bit): Remove.
67087         (libc_feupdateenv_53bit): Remove.
67088         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67089         (math_opt_barrier, math_force_eval): Remove.
67090         (libc_feholdexcept): Remove.
67091         (libc_feholdexcept_setround): Remove.
67092         (libc_fetestexcept, libc_fesetenv): Remove.
67093         (libc_feupdateenv_test): Remove.
67094         (libc_feupdateenv, libc_feholdsetround): Remove.
67095         (libc_feresetround): Remove.
67096
67097         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
67098         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
67099
67100         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
67101         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
67102         (libc_feupdateenv_testl): New.
67103         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
67104         (libc_feupdateenv_testf): New.
67105         (libc_feupdateenv): Use libc_feupdateenv_test.
67106         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
67107         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
67108
67109         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
67110         (libc_feholdsetroundf, libc_feholdsetroundl): New.
67111         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
67112         (libc_feresetround_noex): New.
67113         (libc_feresetround_noexf): New.
67114         (libc_feresetround_noexl): New.
67115         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
67116         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
67117         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
67118         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
67119         SET_RESTORE_ROUND.
67120         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
67121         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
67122         (__cos): Likewise.
67123         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
67124         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67125         SET_RESTORE_ROUND_NOEX.
67126         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67127         SET_RESTORE_ROUND_NOEXF.
67128         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67129         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67130         (libc_feholdsetroundf): New.
67131         (libc_feresetround, libc_feresetroundf): New.
67132
67133         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67134         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67135         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67136
67137         * sysdeps/generic/math_private.h: Include <fenv.h>.
67138         (default_libc_feholdexcept): New.
67139         (default_libc_feholdexcept_setround): New.
67140         (default_libc_fesetenv, default_libc_feupdateenv): New.
67141         (libc_feholdexcept): Only define if undefined.
67142         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67143         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67144         (libc_feholdexcept_setroundl): Likewise.
67145         (libc_feholdexcept_setround_53bit): Likewise.
67146         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67147         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67148         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67149         (libc_feupdateenv_53bit): Likewise.
67150         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67151         (libc_feholdexcept): Convert from macro to inline function.
67152         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67153         (libc_fesetenv, libc_feupdateenv): Likewise.
67154
67155         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67156         not previously defined.
67157         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67158         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67159         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67160         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67161         * sysdeps/ieee754/flt-32/math_private.h: New file.
67162         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67163         math_private.h below SET_FLOAT_WORD.
67164         (__isnan, __isinf_ns, __finite): Remove.
67165         (__isnanf, __isinf_nsf, __finitef): Remove.
67166
67167 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67168
67169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67170
67171 2012-03-17  David S. Miller  <davem@davemloft.net>
67172
67173         [BZ #6471]
67174         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67175         for 2.16.
67176
67177 2012-03-16  David S. Miller  <davem@davemloft.net>
67178
67179         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67180         warnings.
67181
67182         [BZ #6471]
67183         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67184         properly.
67185         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67186         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67187         sysdep_routines when subdir is sysvipc.
67188         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67189         __getshmlba helper.
67190
67191         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67192
67193 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67194
67195         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67196         [__LP64__].
67197
67198 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67199
67200         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67201         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67202         (__lround): Renamed to ...
67203         (__llround): This.  Replace long int with long long int.
67204         Define lround functions as aliases of llround functions.
67205         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67206
67207 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67208
67209         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67210         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67211         adresses to uintptr_t.  Replace "long int" and "unsigned long
67212         int" with "greg_t" on va_arg.
67213
67214 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67215
67216         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67217         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67218
67219         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67220         Move e_machine check before EI_CLASS check.  Handle x32
67221         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67222         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67223         SKIP_EM_IA_64 and include
67224         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67225
67226         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67227         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67228         (add_system_dir): New macro.
67229
67230         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67231         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67232
67233 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67234
67235         [BZ #2551]
67236         [BZ #2552]
67237         [BZ #2553]
67238         [BZ #2554]
67239         [BZ #2562]
67240         [BZ #2563]
67241         [BZ #2565]
67242         [BZ #2566]
67243         [BZ #2576]
67244         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67245         (y0): Likewise.
67246         * math/w_j0f.c (j0f): Likewise.
67247         (y0f): Likewise.
67248         * math/w_j0l.c (__j0l): Likewise.
67249         (__y0l): Likewise.
67250         * math/w_j1.c (j1): Likewise.
67251         (y1): Likewise.
67252         * math/w_j1f.c (j1f): Likewise.
67253         (y1f): Likewise.
67254         * math/w_j1l.c (__j1l): Likewise.
67255         (__y1l): Likewise.
67256         * math/w_jn.c (jn): Likewise.
67257         (yn): Likewise.
67258         * math/w_jnf.c (jnf): Likewise.
67259         (ynf): Likewise.
67260         * math/w_jnl.c (__jnl): Likewise.
67261         (__ynl): Likewise.
67262         * math/libm-test.inc (j0_test): Add more tests.
67263         (j1_test): Likewise.
67264         (jn_test): Likewise.  Add trailing semicolon to existing test.
67265         (y0_test): Likewise.
67266         (y1_test): Likewise.
67267         * sysdeps/i386/fpu/libm-test-ulps: Update.
67268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67269
67270         [BZ #13851]
67271         [BZ #13854]
67272         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67273         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67274         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67275         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67276         (__tanl): Set errno for infinite argument.
67277         * sysdeps/i386/fpu/mptan.c: Remove.
67278         * sysdeps/i386/fpu/s_tan.S: Likewise.
67279         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67280         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67281         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67282         * math/libm-test.inc (tan_test): Add more tests and enable more
67283         tests for double and long double.
67284         * sysdeps/i386/fpu/libm-test-ulps: Update.
67285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67286
67287 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67288
67289         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67290         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67291
67292 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67293
67294         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67295         * configure.in: Use it for both main tree and add-ons.
67296         * configure: Regenerated.
67297
67298 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67299
67300         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67301
67302 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67303
67304         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67305         in comment.
67306
67307         [BZ #13851]
67308         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67309         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67310         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67311         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67312         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67313         infinite argument.
67314         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67315         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67316         != 0 for prec == 2.
67317         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67318         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67319         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67320         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67321         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67322         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67323         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67324         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67325         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67326         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67327         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67328         * math/libm-test.inc (cos_test): Add more tests and enable more
67329         tests for long double.
67330         (sin_test): Likewise.
67331         (sincos_test): Likewise.
67332         * sysdeps/i386/fpu/libm-test-ulps: Update.
67333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67334
67335 2012-03-16  David S. Miller  <davem@davemloft.net>
67336
67337         * sysdeps/sparc/fpu/math_private.h: New file.
67338
67339 2012-03-15  David S. Miller  <davem@davemloft.net>
67340
67341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67342         file.
67343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67345         file.
67346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67347         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67348         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67349         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67350         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67351         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67352         sysdep routines.
67353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67354
67355         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67356         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67357
67358         * sysdeps/sparc/sparc-ifunc.h: New file.
67359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67360         sparc-ifunc.h
67361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67363         Likewise.
67364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67365         Likewise.
67366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67370         Likewise.
67371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67376         Likewise.
67377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67378         Likewise.
67379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67383         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67384         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67385         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67386         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67387         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67388         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67389         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67390         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67391         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67392         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67393         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67394         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67395         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67396         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67397         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67398         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67399         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67400         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67401         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67402         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67403
67404 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67405
67406         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67407         scaling.
67408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67409
67410 2012-03-15  Andreas Jaeger  <aj@suse.de>
67411
67412         [BZ #13852]
67413         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67414         ieee754/flt-32 implementation for sin, cos and sincos.
67415         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67416         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67417         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67418         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67419         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67420         ieee754/flt-32 implementation for tan.
67421
67422         * math/libm-test.inc (cos_test): Enable some large input tests for
67423         float as well
67424         (sin_test): Likewise.
67425         (sincos_test): Likewise.
67426         (tan_test): Add tests for large input.
67427
67428         * sysdeps/i386/fpu/libm-test-ulps: Update.
67429
67430 2012-03-15  Andreas Jaeger  <aj@suse.de>
67431
67432         [BZ #13658]
67433         * math/libm-test.inc (cos_test): Add more test cases.
67434         (sin_test): Likewise.
67435         (sincos_test): Likewise.
67436
67437 2012-03-15  Andreas Jaeger  <aj@suse.de>
67438
67439         [BZ #13837]
67440         * math/libm-test.inc (cos_test): Add a test case for large input
67441         value.
67442         (sin_test): Likewise.
67443         (sincos_test): Likewise.
67444
67445 2012-03-15  Andreas Jaeger  <aj@suse.de>
67446             Joseph Myers  <joseph@codesourcery.com>
67447
67448         [BZ #13658]
67449         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67450         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67451         * sysdeps/i386/fpu/branred.c: Likewise.
67452         * sysdeps/i386/fpu/dosincos.c: Likewise.
67453         * sysdeps/i386/fpu/mpa.c: Likewise.
67454         * sysdeps/i386/fpu/s_cos.S: Likewise.
67455         * sysdeps/i386/fpu/s_sin.S: Likewise.
67456         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67457         * sysdeps/i386/fpu/sincos32.c: Likewise.
67458
67459         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67460         Define.
67461         (libc_feupdateenv_53bit): Define.
67462         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67463         Define.
67464         (libc_feupdateenv_53bit): Define.
67465
67466         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67467         53 bit (without extend i386 double precision).
67468
67469         * math/libm-test.inc (sincos_test): Add tests for large input.
67470         (sin): Likewise.
67471         (cos): Likewise.
67472
67473         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67474
67475 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67476
67477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67478
67479 2012-03-15  David S. Miller  <davem@davemloft.net>
67480
67481         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67482         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67483         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67484         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67487         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67489         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67490         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67491         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67492         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67497         file.
67498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67500         file.
67501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67503         file.
67504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67506         file.
67507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67508         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67509         fmin/fmax sysdep routines.
67510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67511
67512 2012-03-14  David S. Miller  <davem@davemloft.net>
67513
67514         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67515         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67516         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67517         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67518         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67519         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67520         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67521         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67522         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67523         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67524         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67525         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67526         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67527         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67528         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67529         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67530         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67531         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67532         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67533         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67534         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67535         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67536         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67537         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67538         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67539         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67540         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67541         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67542         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67543         routines.
67544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67545         file.
67546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67548         file.
67549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67551         file.
67552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67554         file.
67555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67557         file.
67558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67560         file.
67561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67562         file.
67563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67564         file.
67565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67566         file.
67567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67568         New file.
67569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67570         file.
67571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67572         file.
67573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67575         file.
67576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67578         file.
67579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67581         file.
67582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67584         VIS3 routines.
67585
67586         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67587         New file.
67588
67589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67590
67591         * sysdeps/sparc/configure.in: New file.
67592         * sysdeps/sparc/configure: Generate.
67593         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67594         * configure: Regenerate.
67595         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67596         * config.make.in (have-as-vis3): New.
67597         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67598         available use -Av9d instead of -Av9a.
67599         * sysdeps/sparc/sparc64/Makefile: Likewise.
67600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67602         New file.
67603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67604         file.
67605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67606         New file.
67607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67608         file.
67609         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67610         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67611         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67612         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67613         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67614
67615         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67616         fzeros/fnegs to load 0x80000000 into a float register instead of
67617         using the stack.
67618         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67619
67620 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67621
67622         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67623         bits/syscall.h.
67624         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67625         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67626         ($(inst_includedir)/bits/syscall.h): Remove rule.
67627         ($(objpfx)bits/syscall.d): Include instead of
67628         $(objpfx)syscall-list.d.
67629         (generated): Change syscall-list.h and syscall-list.d to
67630         bits/syscall.h and bits/syscall.d.
67631
67632 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67633
67634         [BZ #13846]
67635         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67636
67637 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67638
67639         [BZ #13841]
67640         * math/s_csqrt.c: Include <float.h>.
67641         (__csqrt): Scale large or subnormal inputs.
67642         * math/s_csqrtf.c: Likewise.
67643         * math/s_csqrtl.c: Likewise.
67644         * math/libm-test.inc (csqrt_test): Add more tests.
67645         * sysdeps/i386/fpu/libm-test-ulps: Update.
67646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67647
67648         [BZ #13840]
67649         * math/libm-test.inc (hypot_test): Add more tests.
67650
67651 2012-03-13  David S. Miller  <davem@davemloft.net>
67652
67653         [BZ #13840]
67654         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67655         double-precision for the calculation instead of scaling.
67656
67657 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67658
67659         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67660         manipulate bits before adding and subtracting TWO52[sx].
67661         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67662         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67663         Likewise.
67664         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67665
67666 2012-03-13  David S. Miller  <davem@davemloft.net>
67667
67668         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67669         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67670         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67671         rtld-global-offsets.h
67672         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67673
67674         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67675         large parameters.
67676
67677         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67678
67679         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67680         'err' in the ifdef scope in which it is actually used.
67681
67682         * nss/nss_db/db-init.c: Include string.h
67683
67684 2012-03-12  David S. Miller  <davem@davemloft.net>
67685
67686         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67687         masking out of the most significant byte of random value used.
67688         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67689         Fix coding style in previous change.
67690
67691         * sysdeps/unix/sysv/linux/kernel-features.h
67692         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67693         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67694         expression.
67695         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67696         later.
67697
67698 2012-03-11  David S. Miller  <davem@davemloft.net>
67699
67700         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67701         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67702         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67703         for 'resultvar' otherwise things get truncated on 64-bit.
67704
67705         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67706         Fix masking out of the most significant byte of random value used.
67707
67708         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67709
67710 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67711
67712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67713
67714 2012-03-09  David S. Miller  <davem@davemloft.net>
67715
67716         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67717         variables with appropriate CPP guards.
67718         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67719         from the frame pointer, not the stack pointer.  Correct layout
67720         comments.  Fix test on resulting framesize and the management of
67721         the outregs buffer for pltexit.  Preserve floating point return
67722         values across _dl_call_pltexit call.
67723         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67724         framesize and the management of the outregs buffer for pltexit.
67725         Preserve floating point return values across _dl_call_pltexit
67726         call.
67727         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67728         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67729         (la_sparc64_gnu_pltexit): New functions.
67730         (print_exit): Fix format string for return register value.
67731
67732 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67733
67734         * sunrpc/Makefile (others): Add rpcgen.
67735         ($(objpfx)rpcgen): Remove special build rule and dependency on
67736         libc.
67737         * sunrpc/rpcgen.c: New file.
67738
67739 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         [BZ #13673]
67742         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67743         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67744         * sysdeps/i386/crti.S: Likewise.
67745         * sysdeps/i386/crtn.S: Likewise.
67746         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67747         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67748         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67749         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67750         * sysdeps/sh/crti.S: Likewise.
67751         * sysdeps/sh/crtn.S: Likewise.
67752         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67753
67754         [BZ #13673]
67755         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67756         with URL.
67757         * locale/programs/locfile-kw.gperf: Likewise.
67758         * locale/programs/charmap-kw.h: Regenerated.
67759         * locale/programs/locfile-kw.h: Likewise.
67760
67761         [BZ #13673]
67762         * intl/plural.y: Replace FSF snail mail address with URL.
67763         * intl/plural.c: Regenerated.
67764
67765 2012-03-09  Richard Henderson  <rth@twiddle.net>
67766
67767         * include/math_private.h: Remove file.
67768         * math/math_private.h: Move file ...
67769         * sysdeps/generic/math_private.h: ... here.
67770
67771         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67772         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67773         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67774
67775         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67776         and <math_private.h>.
67777         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67778         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67779         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67780         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67781         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67782         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67783         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67784         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67785         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67786         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67787         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67788         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67789         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67790         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67791         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67792         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67793         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67794         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67795         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67796         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67797         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67798         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67799         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67800         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67801         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67802         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67803         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67804         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67805         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67806         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67807         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67808         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67809         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67810         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67811         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67812         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67813         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67814         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67815         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67816         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67817         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67818         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67819         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67820         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67821         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67822         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67823         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67824         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67825         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67826         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67827         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67828         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67829         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67830         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67831         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67832         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67833         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67834         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67835         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67836         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67837         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67838         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67839         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67840         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67841         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67842         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67843         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67844         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67845         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67846         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67847         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67848         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67849         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67850         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67851         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67852         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67853         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67854         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67855         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67856         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67857         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67858         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67859         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67860         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67861         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67862         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67863         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67864         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67865         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67866         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67867         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67868         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67869         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67870         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67871         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67872         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67873         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67874         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67875         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67876         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67877         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67878         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67879         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67880         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67881         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67882         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67883         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67884         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67885         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67886         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67887         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67888         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67889         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67890         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67891         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67892         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67893         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67894         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67895         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67896         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67897         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67898         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67899         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67900         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67901         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67902         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67903         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67904         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67905         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67906         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67907         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67908         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67909         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67910         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67911         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67912         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67913         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67914         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67915         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67916         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67917         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67918         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67919         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67920         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67921         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67922         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67923         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67924         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67925         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67926         * sysdeps/ieee754/k_standard.c: Likewise.
67927         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67928         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67929         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67930         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67931         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67932         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67933         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67934         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67935         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67936         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67937         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67938         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67939         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67940         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67941         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67942         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67943         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67944         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67945         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67946         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67947         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67948         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67949         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67950         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67951         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67952         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67953         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67954         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67955         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67956         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67957         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67958         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67959         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67960         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67961         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67962         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67963         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67964         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67965         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67966         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67967         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67968         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67969         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67970         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67971         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67972         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67973         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67974         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67975         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67976         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67977         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67978         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67979         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67980         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67981         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67982         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67983         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67984         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67985         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67986         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67987         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67988         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67989         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67990         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67991         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67992         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67993         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67994         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67995         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67996         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67997         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67998         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67999         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
68000         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
68001         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
68002         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
68003         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
68004         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
68005         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68006         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
68007         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
68008         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
68009         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
68010         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
68011         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
68012         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
68013         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
68014         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
68015         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
68016         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
68017         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
68018         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
68019         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
68020         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
68021         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
68022         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
68023         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
68024         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
68025         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
68026         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
68027         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
68028         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
68029         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
68030         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
68031         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
68032         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
68033         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
68034         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
68035         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
68036         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
68037         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
68038         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
68039         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
68040         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
68041         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
68042         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
68043         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
68044         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
68045         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
68046         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
68047         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
68048         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
68049         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
68050         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
68051         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
68052         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
68053         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
68054         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
68055         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
68056         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
68057         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
68058         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
68059         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
68060         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
68061         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
68062         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
68063         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
68064         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
68065         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
68066         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
68067         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
68068         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
68069         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
68070         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
68071         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
68072         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
68073         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
68074         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
68075         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
68076         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
68077         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
68078         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
68079         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
68080         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
68081         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
68082         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
68083         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
68084         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
68085         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
68086         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
68087         * sysdeps/ieee754/s_lib_version.c: Likewise.
68088         * sysdeps/ieee754/s_matherr.c: Likewise.
68089         * sysdeps/ieee754/s_signgam.c: Likewise.
68090         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
68091         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
68092         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
68093         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
68094         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
68095         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
68096         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
68097         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
68098         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
68099         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
68100         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
68101         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
68102         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
68103         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
68104         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
68105         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
68106         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
68107         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
68108         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
68109         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
68110         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
68111
68112 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68113
68114         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
68115         * sunrpc/rpc_main.c: Likewise.
68116         * sunrpc/rpc_svcout.c: Likewise.
68117
68118 2012-03-09  David S. Miller  <davem@davemloft.net>
68119
68120         * include/math_private.h: New file.
68121
68122 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68123
68124         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68125         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68126         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68127         from <bits/socket_type.h>.
68128         (enum __socket_type): Don't define here.
68129         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68130         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68131         bits/socket_type.h.
68132
68133         [BZ #13566]
68134         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68135         checking __USE_GNU.
68136
68137         * Makerules ($(inst_includedir)/%.h): New rule.
68138         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68139         (install-others): Remove variable setting.
68140         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68141
68142 2012-03-08  Richard Henderson  <rth@twiddle.net>
68143
68144         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68145         from macro to inline function; merge with the
68146         !__LIBC_INTERNAL_MATH_INLINES version.
68147         (__ieee754_sqrtf): Likewise.
68148
68149         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68150         to inline function.
68151         (__rintf, __floor, __floorf): Likewise.
68152
68153         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68154         macro to inline function.
68155         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68156
68157         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68158         not <math/math_private.h>.
68159
68160 2012-03-08  David S. Miller  <davem@davemloft.net>
68161
68162         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68163         copyright year.
68164         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68165
68166 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68167
68168         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68169         normalization.
68170         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68171         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68172
68173 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68174
68175         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68176         be defined individually, they must be defined as a block.  Define
68177         S for printing a string instead of hidint the different by using a
68178         macro for adding the 'l'.
68179         * stdio-common/tst-fphex-wide.c: Adjust.
68180
68181 2012-03-07  Marek Polacek  <polacek@redhat.com>
68182
68183         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68184
68185 2012-03-08  Marek Polacek  <polacek@redhat.com>
68186
68187         [BZ #13806]
68188         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68189         * stdio-common/tst-fphex.c: Define a few macros to make the
68190         test reusable.  Use them.
68191         * stdio-common/tst-fphex-wide.c: New file.
68192
68193 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68194
68195         [BZ #6911]
68196         * manual/macros.texi (gnusystems): New macro.
68197         (nongnusystems): Likewise.
68198         (gnulinuxhurdsystems): Likewise.
68199         (gnuhurdsystems): Likewise..
68200         (gnulinuxsystems): Likewise.
68201         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68202         variants of the GNU system, not "GNU system".
68203         * manual/conf.texi: Likewise.
68204         * manual/errno.texi: Likewise.  Update example of errno macro
68205         expansion.
68206         * manual/filesys.texi: Likewise.
68207         (getumask): Document as specific to GNU/Hurd.
68208         * manual/install.texi: Likewise.  Reword some references to
68209         GNU/Linux.
68210         * manual/intro.texi: Likewise.
68211         * manual/io.texi: Likewise.
68212         (File Name Portability): Detail which constraints are inapplicable
68213         to all GNU systems and which are only inapplicable to GNU/Hurd.
68214         * manual/job.texi: Likewise.
68215         * manual/llio.texi: Likewise.
68216         (O_NOCTTY): Document as present on GNU/Linux.
68217         * manual/maint.texi: Likewise.
68218         * manual/memory.texi: Likewise.
68219         * manual/pattern.texi: Likewise.
68220         * manual/pipe.texi: Likewise.
68221         * manual/process.texi: Likewise.
68222         * manual/resource.texi: Likewise.
68223         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68224         child on GNU/Hurd.
68225         * manual/setjmp.texi: Likewise.
68226         * manual/signal.texi: Likewise.
68227         * manual/startup.texi: Likewise.
68228         * manual/stdio.texi: Likewise.
68229         * manual/terminal.texi: Likewise.
68230         (ONLCR): Document as POSIX.
68231         (OXTABS): Document availability on GNU/Linux as XTABS.
68232         (ONOEOT): Document availability separately from other bits.
68233         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68234         * manual/time.texi: Likewise.
68235         * manual/users.texi: Likewise.
68236         * INSTALL: Regenerated.
68237         * sysdeps/gnu/errlist.c: Regenerated.
68238
68239         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68240         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68241         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68242         puts.
68243         * configure: Regenerated.
68244
68245 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68246
68247         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68248         default includes instead of AC_HEADER_CHECK.
68249         * sysdeps/i386/configure: Regenerated.
68250
68251         [BZ #10716]
68252         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68253         * math/s_cacoshf.c (__cacoshf): Likewise.
68254         * math/s_cacoshl.c (__cacoshl): Likewise.
68255         * math/s_casinh.c (__casinh): Set signs of result from argument.
68256         * math/s_casinhf.c (__casinhf): Likewise.
68257         * math/s_casinhl.c (__casinhl): Likewise.
68258         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68259         (casinh_test): Add more tests.
68260         * sysdeps/i386/fpu/libm-test-ulps: Update.
68261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68262
68263 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68264
68265         * po/zh_TW.po: Update from translation team.
68266
68267         * login/Makefile (distribute): Remove variable.
68268         * catgets/Makefile: Likewise.
68269         * mach/Makefile: Likewise.
68270         * malloc/Makefile: Likewise.
68271         * misc/Makefile: Likewise.
68272         * iconv/Makefile: Likewise.
68273         * nscd/Makefile: Likewise.
68274         * hurd/Makefile: Likewise.
68275         * manual/Makefile: Likewise.
68276         * locale/Makefile: Likewise.
68277         * intl/Makefile: Likewise.
68278         * conform/Makefile: Likewise.
68279         * nss/Makefile: Likewise.
68280         * time/Makefile: Likewise.
68281         * soft-fp/Makefile: Likewise.
68282         * dirent/Makefile: Likewise.
68283         * gmon/Makefile: Likewise.
68284         * po/Makefile: Likewise.
68285         * rt/Makefile: Likewise.
68286         * socket/Makefile: Likewise.
68287         * math/Makefile: Likewise.
68288         * signal/Makefile: Likewise.
68289         * debug/Makefile: Likewise.
68290         * elf/Makefile: Likewise.
68291         * timezone/Makefile: Likewise.
68292         * stdlib/Makefile: Likewise.
68293         * iconvdata/Makefile: Likewise.
68294         * sunrpc/Makefile: Likewise.
68295         * io/Makefile: Likewise.
68296         * argp/Makefile: Likewise.
68297         * inet/Makefile: Likewise.
68298         * hesiod/Makefile: Likewise.
68299         * grp/Makefile: Likewise.
68300         * csu/Makefile: Likewise.
68301         * wctype/Makefile: Likewise.
68302         * crypt/Makefile: Likewise.
68303         * libio/Makefile: Likewise.
68304         * string/Makefile: Likewise.
68305         * nis/Makefile: Likewise.
68306         * resolv/Makefile: Likewise.
68307         * stdio-common/Makefile: Likewise.
68308         * wcsmbs/Makefile: Likewise.
68309         * dlfcn/Makefile: Likewise.
68310         * posix/Makefile: Likewise.
68311
68312         [BZ #6959]
68313         * timezone/Makefile: Don't install timezone files, just the programs
68314         and scripts.
68315
68316 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68317
68318         * nss/databases.def: Add missing gshadow entry.
68319
68320         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68321
68322 2012-03-06  Marek Polacek  <polacek@redhat.com>
68323
68324         [BZ #13726]
68325         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68326         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68327         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68328         * stdio-common/tst-long-dbl-fphex.c: New file.
68329
68330 2012-03-06  David S. Miller  <davem@davemloft.net>
68331
68332         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68333         (set_obp_int): New function.
68334         (get_obp_int): New function.
68335         (__get_clockfreq_via_dev_openprom): Likewise.
68336         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68337         Avoid unused variable warnings on 'val' and use builtin_expect.
68338         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68339         __builtin_expect.
68340         (INLINE_CLONE_SYSCALL): Likewise.
68341
68342 2012-03-05  David S. Miller  <davem@davemloft.net>
68343
68344         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68345
68346 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68347
68348         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68349
68350         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68351         only for |x| >= 40.
68352         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68353
68354 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68355
68356         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68357         Replace gettimeofday with __vdso_gettimeofday.
68358
68359         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68360         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68361         __vdso_clock_gettime and __vdso_getcpu.
68362
68363         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68364         time with __vdso_time.
68365
68366 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68367
68368         * manual/lang.texi (size_t): Note types to which size_t may be
68369         equivalent with the GNU C Library, but do not describe when
68370         differences between them are significant.
68371
68372 2012-03-05  Andreas Jaeger  <aj@suse.de>
68373
68374         * sysdeps/i386/fpu/libm-test-ulps: Update.
68375
68376 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68377
68378         [BZ #3976]
68379         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68380         (__ieee754_pow): Save and restore rounding mode and use
68381         round-to-nearest for main computations.
68382         * math/libm-test.inc (pow_test_tonearest): New function.
68383         (pow_test_towardzero): Likewise.
68384         (pow_test_downward): Likewise.
68385         (pow_test_upward): Likewise.
68386         (main): Call the new functions.
68387         * sysdeps/i386/fpu/libm-test-ulps: Update.
68388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68389
68390         [BZ #3976]
68391         * math/libm-test.inc (cosh_test_tonearest): New function.
68392         (cosh_test_towardzero): Likewise.
68393         (cosh_test_downward): Likewise.
68394         (cosh_test_upward): Likewise.
68395         (sinh_test_tonearest): Likewise.
68396         (sinh_test_towardzero): Likewise.
68397         (sinh_test_downward): Likewise.
68398         (sinh_test_upward): Likewise.
68399         (main): Call the new functions.
68400         * sysdeps/i386/fpu/libm-test-ulps: Update.
68401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68402
68403 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68404
68405         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68406         default stack guard is set in last bytes.
68407         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68408
68409 2012-03-05  Kees Cook  <keescook@chromium.org>
68410
68411         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68412
68413         [BZ #13656]
68414         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68415         possibly allocate from heap instead of stack.
68416         * stdio-common/bug-vfprintf-nargs.c: New file.
68417         * stdio-common/Makefile (tests): Add nargs overflow test.
68418
68419 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68420
68421         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68422
68423 2012-03-03  Marek Polacek  <polacek@redhat.com>
68424
68425         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68426         * math/math_private.h: Likewise.
68427         * stdlib/tst-strtod.c: Likewise.
68428         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68429         * sysdeps/x86_64/bits/atomic.h: Likewise.
68430
68431 2012-03-02  David S. Miller  <davem@davemloft.net>
68432
68433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68434         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68435         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68436         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68437         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68438         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68439         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68440         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68441
68442 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68443
68444         [BZ #13792]
68445         * manual/examples/README: New file, says the example source files
68446         can be used under GPL>=2.
68447         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68448         line containing just "*/".
68449         * manual/examples/add.c: Add copyright header (GPL>=2).
68450         * manual/examples/argp-ex1.c: Likewise.
68451         * manual/examples/argp-ex2.c: Likewise.
68452         * manual/examples/argp-ex3.c: Likewise.
68453         * manual/examples/argp-ex4.c: Likewise.
68454         * manual/examples/atexit.c: Likewise.
68455         * manual/examples/db.c: Likewise.
68456         * manual/examples/dir.c: Likewise.
68457         * manual/examples/dir2.c: Likewise.
68458         * manual/examples/execinfo.c: Likewise.
68459         * manual/examples/filecli.c: Likewise.
68460         * manual/examples/filesrv.c: Likewise.
68461         * manual/examples/fmtmsgexpl.c: Likewise.
68462         * manual/examples/genpass.c: Likewise.
68463         * manual/examples/inetcli.c: Likewise.
68464         * manual/examples/inetsrv.c: Likewise.
68465         * manual/examples/isockad.c: Likewise.
68466         * manual/examples/longopt.c: Likewise.
68467         * manual/examples/memopen.c: Likewise.
68468         * manual/examples/memstrm.c: Likewise.
68469         * manual/examples/mkfsock.c: Likewise.
68470         * manual/examples/mkisock.c: Likewise.
68471         * manual/examples/mygetpass.c: Likewise.
68472         * manual/examples/pipe.c: Likewise.
68473         * manual/examples/popen.c: Likewise.
68474         * manual/examples/rprintf.c: Likewise.
68475         * manual/examples/search.c: Likewise.
68476         * manual/examples/select.c: Likewise.
68477         * manual/examples/setjmp.c: Likewise.
68478         * manual/examples/sigh1.c: Likewise.
68479         * manual/examples/sigusr.c: Likewise.
68480         * manual/examples/stpcpy.c: Likewise.
68481         * manual/examples/strdupa.c: Likewise.
68482         * manual/examples/strftim.c: Likewise.
68483         * manual/examples/strncat.c: Likewise.
68484         * manual/examples/subopt.c: Likewise.
68485         * manual/examples/swapcontext.c: Likewise.
68486         * manual/examples/termios.c: Likewise.
68487         * manual/examples/testopt.c: Likewise.
68488         * manual/examples/testpass.c: Likewise.
68489         * manual/examples/timeval_subtract.c: Likewise.
68490
68491         [BZ #13792]
68492         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68493         function to ...
68494         * manual/timeval_subtract.c.texi: ... here, new file.
68495
68496 2012-03-02  David S. Miller  <davem@davemloft.net>
68497
68498         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68499
68500 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68501
68502         [BZ #3976]
68503         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68504         (__sin): Save and restore rounding mode and use round-to-nearest
68505         for all computations.
68506         (__cos): Save and restore rounding mode and use round-to-nearest
68507         for all computations.
68508         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68509         <fenv.h>.
68510         (tan): Save and restore rounding mode and use round-to-nearest for
68511         all computations.
68512         * math/libm-test.inc (cos_test_tonearest): New function.
68513         (cos_test_towardzero): Likewise.
68514         (cos_test_downward): Likewise.
68515         (cos_test_upward): Likewise.
68516         (sin_test_tonearest): Likewise.
68517         (sin_test_towardzero): Likewise.
68518         (sin_test_downward): Likewise.
68519         (sin_test_upward): Likewise.
68520         (tan_test_tonearest): Likewise.
68521         (tan_test_towardzero): Likewise.
68522         (tan_test_downward): Likewise.
68523         (tan_test_upward): Likewise.
68524         (main): Call the new functions.
68525         * sysdeps/i386/fpu/libm-test-ulps: Update.
68526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68527
68528         [BZ #10135]
68529         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68530         small n, then large n, before computing and testing k+n.
68531         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68532         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68533         Likewise.
68534         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68535         Likewise.
68536         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68537         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68538         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68539         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68540         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68541         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68542         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68543         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68544         * math/libm-test.inc (scalbn_test): Add more tests.
68545         (scalbln_test): Likewise.
68546
68547         * manual/filesys.texi (mode_t): Describe constraints on size and
68548         signedness, not exact equivalence to a particular type.
68549         (ino_t): Likewise.
68550         (ino64_t): Likewise.
68551         (dev_t): Likewise.
68552         (nlink_t): Likewise.
68553         (blkcnt_t): Likewise.
68554         (blkcnt64_t): Likewise.
68555         * manual/llio.texi (off_t): Likewise.
68556
68557         [BZ #3976]
68558         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68559         (__ieee754_exp): Save and restore rounding mode and use
68560         round-to-nearest for all computations.
68561         * math/libm-test.inc (exp_test_tonearest): New function.
68562         (exp_test_towardzero): Likewise.
68563         (exp_test_downward): Likewise.
68564         (exp_test_upward): Likewise.
68565         (main): Call the new functions.
68566         * sysdeps/i386/fpu/libm-test-ulps: Update.
68567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68568
68569 2012-03-01  Chris Demetriou  <cgd@google.com>
68570
68571         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68572         have predictable order.
68573
68574 2012-03-01  David S. Miller  <davem@davemloft.net>
68575
68576         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68577
68578         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68579         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68580         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68581         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68582
68583         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68584         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68585         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68587         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68588         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68589         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68590         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68591         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68592
68593         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68594
68595         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68596         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68597         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68598
68599         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68600         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68601         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68602         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68603         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68604         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68605         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68606         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68607         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68608         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68609         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68610         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68611         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68612         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68613         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68614         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68615         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68616         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68617         * sysdeps/sparc/elf/configure: Regenerated.
68618
68619 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68620
68621         * configure.in (AS, LD): Require binutils 2.20 or later.
68622         * configure: Regenerated.
68623         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68624         as required minimum version.
68625         * INSTALL: Regenerated.
68626
68627         [BZ #2541]
68628         [BZ #4108]
68629         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68630         before squaring exponent.
68631         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68632         bottom long double and 27 bits of top long double before squaring
68633         exponent.
68634         * math/libm-test.inc (erfc_test): Add more tests.
68635         * sysdeps/i386/fpu/libm-test-ulps: Update.
68636         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68638
68639 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68640
68641         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68642         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68643         containing bit-fields.
68644         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68645         * soft-fp/single.h (_FP_UNION_S): Likewise.
68646         * soft-fp/double.h (_FP_UNION_D): Likewise.
68647
68648 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68649
68650         [BZ #13786]
68651         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68652         not include ../strcmp.S.
68653         [USE_AS_STRNCASECMP_L]: Likewise.
68654         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68655         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68656         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68657         (__strncasecmp_l_ia32): Define as alias to
68658         __strncasecmp_l_nonascii.
68659
68660         [BZ #5794]
68661         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68662         * sysdeps/i386/fpu/libm-test-ulps: Update.
68663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68664
68665         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68667
68668 2012-02-29  Jeff Law  <law@redhat.com>
68669
68670         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68671         out of bounds read.
68672
68673 2012-02-29  Marek Polacek  <polacek@redhat.com>
68674
68675         [BZ #13706]
68676         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68677         * elf/Makefile: Add rules to run tst-unused-dep.out.
68678
68679 2012-02-28  David S. Miller  <davem@davemloft.net>
68680
68681         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68682         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68683         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68684         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68685         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68686         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68687
68688 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68689
68690         * math/libm-test.inc (llround_test): Move one test from
68691         lround_test.  Use TEST_f_L in moved test.
68692         (lround_test): Move misplaced test to llround_test.  Add testcase
68693         from bug 2561.
68694
68695 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68696
68697         * sysdeps/x86_64/fpu/e_expf.S: New file.
68698         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68699
68700 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68701
68702         [BZ #13637]
68703         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68704         of remain_len that may cause incomplete multi-byte character and
68705         false match.
68706         * posix/bug-regex33.c: New file.
68707         * posix/Makefile (tests): Add bug-regex33.
68708
68709 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68710
68711         * manual/macros.texi: New file.
68712         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68713         * manual/libc.texinfo: Include macros.texi.
68714         * manual/creatute.texi: Likewise.
68715         * manual/install.texi: Likewise.
68716         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68717         @glibcadj{} in references to the GNU C Library.
68718         * manual/charset.texi: Likewise.
68719         * manual/conf.texi: Likewise.
68720         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68721         when not using those macros.
68722         * manual/creature.texi: Likewise.
68723         * manual/crypt.texi: Likewise.
68724         * manual/errno.texi: Likewise.
68725         * manual/filesys.texi: Likewise.
68726         * manual/header.texi: Likewise.
68727         * manual/install.texi: Likewise.
68728         * manual/intro.texi: Likewise.
68729         * manual/io.texi: Likewise.
68730         * manual/job.texi: Likewise.
68731         * manual/lang.texi: Likewise.
68732         * manual/libc.texiinfo: Likewise.
68733         * manual/llio.texi: Likewise.
68734         * manual/locale.texi: Likewise.
68735         * manual/maint.texi: Likewise.
68736         * manual/math.texi: Likewise.
68737         * manual/memory.texi: Likewise.
68738         * manual/message.texi: Likewise.
68739         * manual/nss.texi: Likewise.
68740         * manual/pattern.texi: Likewise.
68741         * manual/process.texi: Likewise.
68742         * manual/resource.texi: Likewise.
68743         * manual/search.texi: Likewise.
68744         * manual/setjmp.texi: Likewise.
68745         * manual/signal.texi: Likewise.
68746         * manual/socket.texi: Likewise.
68747         * manual/startup.texi: Likewise.
68748         * manual/stdio.texi: Likewise.
68749         * manual/string.texi: Likewise.
68750         * manual/sysinfo.texi: Likewise.
68751         * manual/syslog.texi: Likewise.
68752         * manual/terminal.texi: Likewise.
68753         * manual/time.texi: Likewise.
68754         * manual/users.texi: Likewise.
68755         * INSTALL: Regenerated.
68756         * NOTES: Regenerated.
68757         * sysdeps/gnu/errlist.c: Regenerated.
68758
68759 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68760
68761         * include/dirent.h: Include <dirstream.h> before
68762         <dirent/dirent.h>.
68763
68764 2012-02-28  David S. Miller  <davem@davemloft.net>
68765
68766         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68767         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68768         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68769         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68770
68771 2012-02-27  David S. Miller  <davem@davemloft.net>
68772
68773         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68775         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68776         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68777
68778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68779         frame pointer instead of stack pointer relative arg slot.
68780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68781         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68782         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68783
68784 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68785
68786         [BZ #3992]
68787         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68788
68789 2012-02-27  David S. Miller  <davem@davemloft.net>
68790
68791         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68795         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68796         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68797         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68798         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68799
68800 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68801
68802         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68803         later.  Allow versions 5-9.
68804         * configure: Regenerated.
68805         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68806         required minimum version and 4.6 as recommended version.  Do not
68807         mention bugs in GCC 2.7 and 2.8.
68808         * INSTALL: Regenerated.
68809
68810 2012-02-27  David S. Miller  <davem@davemloft.net>
68811
68812         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68816         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68817         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68818         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68819         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68820
68821         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68822         manipulate bits before adding and subtracting TWO112[sx].
68823         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68824
68825 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68826
68827         [BZ #13775]
68828         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68829         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68830         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68831         being in POSIX, because they are in 1003.1-2008.
68832
68833         * rt/tst-aio.c: Include <fcntl.h>.
68834         * rt/tst-aio7.c: Likewise.
68835         * rt/tst-aio64.c: Likewise.
68836
68837         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68838
68839 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68840
68841         * manual/install.texi (--with-headers): Describe headers as
68842         interface headers, not private headers.
68843         (Specific advice for GNU/Linux systems): Describe use of headers
68844         from "make headers_install", not private headers from older
68845         kernels.
68846         * INSTALL: Regenerated.
68847         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68848         Change to 2.6.19.
68849         * sysdeps/unix/sysv/linux/configure: Regenerated.
68850
68851         * manual/llio.texi (fclean): Remove documentation.
68852
68853         * manual/Makefile (libc-texi-generated): New variable.  Include
68854         version.texi.
68855         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68856         $(libc-texi-generated), not duplicated list of files.
68857         (version.texi, stamp-version): New rules.
68858         (realclean): Remove $(libc-texi-generated), not individual files
68859         from that list.  Do not remove dir-add.texinfo.
68860         * manual/libc.texinfo: Comment out uses of edition numbers and
68861         references to printed manual.  Remove last-updated dates.
68862         (EDITION): Comment out.
68863         (ISBN): Likewise.
68864         (VERSION, UPDATED): Remove.
68865         (version.texi): Include.
68866
68867 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68868
68869         * sysdeps/posix/spawni.c: Include <signal.h>.
68870         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68871         * sysdeps/pthread/aio_fsync.c: Likewise.
68872
68873 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68874
68875         * conform/Makefile (tests): Run only when not cross-compiling and
68876         when fast-check is not defined.
68877
68878         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68879         * conform/data/limits.h-data: Fixes for POSIX2008.
68880         * conform/run-conformtest.sh: Run all tests.
68881         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68882         headers.
68883         * include/bits/dlfcn.h: Likewise.
68884         * include/langinfo.h: Likewise.
68885         * include/monetary.h: Likewise.
68886         * include/sys/poll.h: Likewise.
68887
68888         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68889         for __USE_GNU.
68890         * posix/spawn.h: Define __need_sigset_t.
68891         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68892         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68893         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68894         to get sigevent_t only.
68895         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68896         only for __USE_GNU.
68897         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68898         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68899         process_vm_writev only for __USE_GNU.
68900         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68901
68902         * conform/Makefile: For now ignore errors from run-conformtest.
68903         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68904         POSIX to avoid namespace pollution.  Don't prepend headers.
68905         * conform/data/aio.h-data: Fixes for POSIX testing.
68906         * conform/data/fcntl.h-data: Likewise.
68907         * conform/data/glob.h-data: Likewise.
68908         * conform/data/grp.h-data: Likewise.
68909         * conform/data/pthread.h-data: Likewise.
68910         * conform/data/pwd.h-data: Likewise.
68911         * conform/data/signal.h-data: Likewise.
68912         * conform/data/spawn.h-data: Likewise.
68913         * conform/data/stdio.h-data: Likewise.
68914         * conform/data/stdlib.h-data: Likewise.
68915         * conform/data/stropts.h-data: Likewise.
68916         * conform/data/sys/mman.h-data: Likewise.
68917         * conform/data/sys/stat.h-data: Likewise.
68918         * conform/data/sys/types.h-data: Likewise.
68919         * conform/data/sys/wait.h-data: Likewise.
68920         * conform/data/time.h-data: Likewise.
68921         * conform/data/unistd.h-data: Likewise.
68922         * conform/data/utime.h-data: Likewise.
68923
68924         * io/sys/stat.h: fchmod was always in POSIX.
68925         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68926         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68927         * rt/aio.h: Define __need_timespec before including <time.h>.
68928         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68929         struct.  Add forward declaration of pthread_attr_t and use it in
68930         sigevent.
68931         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68932         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68933         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68934         always remove CLK_TCK definition.
68935
68936 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68937
68938         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68939
68940 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68941
68942         * conform/run-conformtest.sh: New file.
68943         * conform/Makefile: Run run-conformtest for tests.
68944         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68945         support.
68946
68947         * conform/data/uchar.h-data: New file.
68948         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68949         * conform/data/arpa/inet.h-data: Likewise.
68950         * conform/data/assert.h-data: Likewise.
68951         * conform/data/complex.h-data: Likewise.
68952         * conform/data/cpio.h-data: Likewise.
68953         * conform/data/ctype.h-data: Likewise.
68954         * conform/data/dirent.h-data: Likewise.
68955         * conform/data/dlfcn.h-data: Likewise.
68956         * conform/data/errno.h-data: Likewise.
68957         * conform/data/fcntl.h-data: Likewise.
68958         * conform/data/float.h-data: Likewise.
68959         * conform/data/fmtmsg.h-data: Likewise.
68960         * conform/data/fnmatch.h-data: Likewise.
68961         * conform/data/ftw.h-data: Likewise.
68962         * conform/data/glob.h-data: Likewise.
68963         * conform/data/grp.h-data: Likewise.
68964         * conform/data/iconv.h-data: Likewise.
68965         * conform/data/inttypes.h-data: Likewise.
68966         * conform/data/langinfo.h-data: Likewise.
68967         * conform/data/libgen.h-data: Likewise.
68968         * conform/data/limits.h-data: Likewise.
68969         * conform/data/locale.h-data: Likewise.
68970         * conform/data/math.h-data: Likewise.
68971         * conform/data/monetary.h-data: Likewise.
68972         * conform/data/mqueue.h-data: Likewise.
68973         * conform/data/ndbm.h-data: Likewise.
68974         * conform/data/net/if.h-data: Likewise.
68975         * conform/data/netdb.h-data: Likewise.
68976         * conform/data/netinet/in.h-data: Likewise.
68977         * conform/data/nl_types.h-data: Likewise.
68978         * conform/data/poll.h-data: Likewise.
68979         * conform/data/pthread.h-data: Likewise.
68980         * conform/data/pwd.h-data: Likewise.
68981         * conform/data/regex.h-data: Likewise.
68982         * conform/data/sched.h-data: Likewise.
68983         * conform/data/search.h-data: Likewise.
68984         * conform/data/semaphore.h-data: Likewise.
68985         * conform/data/setjmp.h-data: Likewise.
68986         * conform/data/signal.h-data: Likewise.
68987         * conform/data/spawn.h-data: Likewise.
68988         * conform/data/stdarg.h-data: Likewise.
68989         * conform/data/stdio.h-data: Likewise.
68990         * conform/data/stdlib.h-data: Likewise.
68991         * conform/data/string.h-data: Likewise.
68992         * conform/data/strings.h-data: Likewise.
68993         * conform/data/stropts.h-data: Likewise.
68994         * conform/data/sys/ipc.h-data: Likewise.
68995         * conform/data/sys/mman.h-data: Likewise.
68996         * conform/data/sys/msg.h-data: Likewise.
68997         * conform/data/sys/resource.h-data: Likewise.
68998         * conform/data/sys/select.h-data: Likewise.
68999         * conform/data/sys/sem.h-data: Likewise.
69000         * conform/data/sys/shm.h-data: Likewise.
69001         * conform/data/sys/socket.h-data: Likewise.
69002         * conform/data/sys/stat.h-data: Likewise.
69003         * conform/data/sys/statvfs.h-data: Likewise.
69004         * conform/data/sys/time.h-data: Likewise.
69005         * conform/data/sys/timeb.h-data: Likewise.
69006         * conform/data/sys/times.h-data: Likewise.
69007         * conform/data/sys/types.h-data: Likewise.
69008         * conform/data/sys/uio.h-data: Likewise.
69009         * conform/data/sys/un.h-data: Likewise.
69010         * conform/data/sys/utsname.h-data: Likewise.
69011         * conform/data/sys/wait.h-data: Likewise.
69012         * conform/data/syslog.h-data: Likewise.
69013         * conform/data/tar.h-data: Likewise.
69014         * conform/data/termios.h-data: Likewise.
69015         * conform/data/utime.h-data: Likewise.
69016         * conform/data/utmpx.h-data: Likewise.
69017         * conform/data/varargs.h-data: Likewise.
69018         * conform/data/wchar.h-data: Likewise.
69019         * conform/data/wctype.h-data: Likewise.
69020         * conform/data/wordexp.h-data: Likewise.
69021
69022         * include/stropts.h: New file.
69023         * include/uchar.h: New file.
69024         * include/aio.h: Changes to allow conformtest.pl to use the headers.
69025         * include/assert.h: Likewise.
69026         * include/ctype.h: Likewise.
69027         * include/dirent.h: Likewise.
69028         * include/dlfcn.h: Likewise.
69029         * include/fcntl.h: Likewise.
69030         * include/fnmatch.h: Likewise.
69031         * include/glob.h: Likewise.
69032         * include/grp.h: Likewise.
69033         * include/libio.h: Likewise.
69034         * include/locale.h: Likewise.
69035         * include/math.h: Likewise.
69036         * include/net/if.h: Likewise.
69037         * include/netdb.h: Likewise.
69038         * include/netinet/in.h: Likewise.
69039         * include/pthread.h: Likewise.
69040         * include/pwd.h: Likewise.
69041         * include/regex.h: Likewise.
69042         * include/sched.h: Likewise.
69043         * include/search.h: Likewise.
69044         * include/setjmp.h: Likewise.
69045         * include/signal.h: Likewise.
69046         * include/stdio.h: Likewise.
69047         * include/stdlib.h: Likewise.
69048         * include/string.h: Likewise.
69049         * include/sys/cdefs.h: Likewise.
69050         * include/sys/mman.h: Likewise.
69051         * include/sys/msg.h: Likewise.
69052         * include/sys/resource.h: Likewise.
69053         * include/sys/select.h: Likewise.
69054         * include/sys/socket.h: Likewise.
69055         * include/sys/stat.h: Likewise.
69056         * include/sys/statvfs.h: Likewise.
69057         * include/sys/time.h: Likewise.
69058         * include/sys/times.h: Likewise.
69059         * include/sys/uio.h: Likewise.
69060         * include/sys/utsname.h: Likewise.
69061         * include/sys/wait.h: Likewise.
69062         * include/termios.h: Likewise.
69063         * include/time.h: Likewise.
69064         * include/ulimit.h: Likewise.
69065         * include/unistd.h: Likewise.
69066         * include/utime.h: Likewise.
69067         * include/wchar.h: Likewise.
69068         * include/wctype.h: Likewise.
69069         * include/wordexp.h: Likewise.
69070
69071         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
69072
69073         * time/time.h: TIME_UTC must be a macro.
69074         Make timespec_get available for ISO C11 only as well.
69075
69076 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
69077
69078         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
69079         Reported by Peng Haitao <penght@cn.fujitsu.com>.
69080
69081 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69082
69083         * configure.in: Use -o not -a in test for unsupported multi-arch.
69084
69085 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69086
69087         * manual/texinfo.tex: Update to version 2012-01-19.16.
69088
69089 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69090
69091         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
69092
69093 2012-02-24  Roland McGrath  <roland@hack.frob.com>
69094
69095         [BZ #13738]
69096         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
69097         * manual/fdl-1.3.texi: New file.
69098         * manual/fdl-1.1.texi: File removed.
69099
69100         [BZ #13738]
69101         * manual/libc.texinfo (FDL_VERSION): New @set.
69102         Use it for mention of FDL in cover text.
69103         (Documentation License): Use it in @include file name.
69104
69105 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69106             Roland McGrath  <roland@hack.frob.com>
69107
69108         [BZ #5461]
69109         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
69110         (not LONG_LONG_MAX and LONG_LONG_MIN.
69111         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
69112         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
69113         name.
69114         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
69115
69116 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69117
69118         [BZ #2547]
69119         [BZ #11365]
69120         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
69121         manipulate bits before adding and subtracting TWO23[sx].
69122         * math/libm-test.inc (nearbyint_test): Add more tests.
69123
69124 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69125
69126         [BZ #2548]
69127         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69128         bits before adding and subtracting TWO23[sx].
69129         * math/libm-test.inc (rint_test): Add more tests.
69130         (rint_test_tonearest): Likewise.
69131         (rint_test_towardzero): Likewise.
69132         (rint_test_downward): Likewise.
69133         (rint_test_upward: Likewise.
69134
69135 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69136
69137         [BZ #10110]
69138         * include/stdc-predef.h: New file.  Extracted from features.h.
69139         * include/features.h: Include stdc-predef.h.
69140         * Makefile (headers): Add stdc-predef.h.
69141         * CONFORMANCE (Compiler limitations): Update.
69142
69143 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69144
69145         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69146
69147 2012-02-21  David S. Miller  <davem@davemloft.net>
69148
69149         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69150         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69151
69152 2012-02-20  David S. Miller  <davem@davemloft.net>
69153
69154         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69155         using a normal save/restore sequence, rather than allocating a
69156         dummy stack frame just to store a frame pointer and restore.
69157         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69158
69159 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69160
69161         * manual/install.texi: Fix stray word in line-wrapped comment.
69162
69163 2012-02-20  David S. Miller  <davem@davemloft.net>
69164
69165         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69166         both binutils and gcc support GOTDATA.
69167
69168         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69169         "rd %pc" in the PIC register setup sequences.
69170
69171         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69172         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69173         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69174         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69175         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69176         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69177         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69178         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69179         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69180         (SYSCALL_ERROR_HANDLER): Likewise.
69181         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69182         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69183         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69184         (SYSCALL_ERROR_HANDLER): Likewise.
69185
69186         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69187         (HAVE_GCC_GOTDATA): New.
69188         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69189         relocation support in both binutils and gcc.
69190         * sysdeps/sparc/elf/configure: Regenerate.
69191
69192         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69193         * sysdeps/sparc/sparc32/elf/configure: Delete.
69194         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69195         * sysdeps/sparc/sparc64/elf/configure: Delete.
69196         * sysdeps/sparc/elf/configure.in: New file.
69197         * sysdeps/sparc/elf/configure: Generate.
69198
69199         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69200         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69201         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69202         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69203         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69204
69205 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69206
69207         * manual/install.texi: Do not mention specific glibc version
69208         numbers.
69209         * manual/libc.texinfo (VERSION, UPDATED): Update.
69210         (@copying): Use @copyright{} and range of years.
69211
69212 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69213
69214         [BZ #13695]
69215         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69216         [crti.S not in sysdirs] (generated): Do not append.
69217         [crti.S not in sysdirs] (omit-deps): Likewise.
69218         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69219         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69220         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69221         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69222         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69223         Likewise.
69224         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69225         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69226         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69227         * csu/defs.awk: Remove file.
69228         * sysdeps/generic/initfini.c: Likewise.
69229         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69230         variable.
69231         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69232         Likewise.
69233
69234 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69235
69236         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69237         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69238         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69239         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69240         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69241         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69242         <bits/epoll.h>.
69243         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69244         (__EPOLL_PACKED): Define to empty if not defined by
69245         <bits/epoll.h>.
69246         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69247         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69248         bits/epoll.h.
69249
69250 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69251
69252         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69253         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69254         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69255         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69256         <bits/timerfd.h>.
69257         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69259         bits/timerfd.h.
69260
69261 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69262
69263         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69264         in C locale.
69265         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69266         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69267         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69269
69270 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69271
69272         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69273         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69274
69275 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69276
69277         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69278         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69279         defined.
69280         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69281         Likewise.
69282         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69283         entry for 2.16.
69284
69285 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69286
69287         * math/w_acos.c: Use non-signaling floating-point comparisons.
69288         * math/w_acosf.c: Likewise.
69289         * math/w_acosh.c: Likewise.
69290         * math/w_acoshf.c: Likewise.
69291         * math/w_acoshl.c: Likewise.
69292         * math/w_acosl.c: Likewise.
69293         * math/w_asin.c: Likewise.
69294         * math/w_asinf.c: Likewise.
69295         * math/w_asinl.c: Likewise.
69296         * math/w_atanh.c: Likewise.
69297         * math/w_atanhf.c: Likewise.
69298         * math/w_atanhl.c: Likewise.
69299         * math/w_exp2.c: Likewise.
69300         * math/w_exp2f.c: Likewise.
69301         * math/w_exp2l.c: Likewise.
69302         * math/w_j0.c: Likewise.
69303         * math/w_j0f.c: Likewise.
69304         * math/w_j0l.c: Likewise.
69305         * math/w_j1.c: Likewise.
69306         * math/w_j1f.c: Likewise.
69307         * math/w_j1l.c: Likewise.
69308         * math/w_jn.c: Likewise.
69309         * math/w_jnf.c: Likewise.
69310         * math/w_log.c: Likewise.
69311         * math/w_log10.c: Likewise.
69312         * math/w_log10f.c: Likewise.
69313         * math/w_log10l.c: Likewise.
69314         * math/w_log2.c: Likewise.
69315         * math/w_log2f.c: Likewise.
69316         * math/w_log2l.c: Likewise.
69317         * math/w_logf.c: Likewise.
69318         * math/w_logl.c: Likewise.
69319         * math/w_sqrt.c: Likewise.
69320         * math/w_sqrtf.c: Likewise.
69321         * math/w_sqrtl.c: Likewise.
69322         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69323         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69324         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69325         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69326         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69327
69328 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69329
69330         [BZ #9739]
69331         * manual/string.texi (strnlen): Use correct parameter name in
69332         equivalent expression.
69333
69334 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69335
69336         [BZ #11174]
69337         * manual/users.texi (seteuid): Consistently use neweuid for
69338         argument name.
69339
69340 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69341
69342         [BZ #13704]
69343         * manual/nss.texi (Services in the NSS configuration): Correct
69344         list of services in example configuration file.
69345
69346 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69347
69348         [BZ #11322]
69349         * manual/arith.texi: Remove statements about negative zero
69350         behaving identically to zero.
69351
69352 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69353
69354         [BZ #5993]
69355         * manual/install.texi: Do not document upgrading from libc5.
69356
69357 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69358
69359         [BZ #4596]
69360         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69361
69362 2012-02-18  David S. Miller  <davem@davemloft.net>
69363
69364         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69365         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69366         %o7 across the call.
69367         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69368         instead.
69369         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69370         SETUP_PIC_REG_LEAF.
69371         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69372         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69373         * sysdeps/sparc/crtn.S: Likewise.
69374
69375 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69376
69377         * aout/Makefile: Remove.
69378
69379 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69380
69381         [BZ #13058]
69382         * manual/examples/argp-ex1.c (main): Format definition in GNU
69383         style.
69384         * manual/examples/argp-ex2.c (main): Likewise.
69385         * manual/examples/argp-ex3.c (main): Likewise.
69386         * manual/examples/argp-ex4.c (main): Likewise.
69387         * manual/examples/longopt.c (main): Use new-style prototype
69388         definition.
69389         * manual/examples/strncat.c (main): Specify return type and use
69390         (void) for arguments.
69391         * manual/examples/subopt.c (main): Use char **argv argument.
69392
69393 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69394
69395         [BZ #5077]
69396         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69397         rounding modes.
69398
69399 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69400
69401         [BZ #6907]
69402         * manual/string.texi (strchr): Change when strchrnul is
69403         recommended.
69404
69405 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69406
69407         [BZ #174]
69408         * manual/locale.texi (setlocale): Document LOCPATH.
69409
69410 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69411
69412         [BZ #10210]
69413         * manual/process.texi (execle): Move @dots{} before last argument.
69414
69415 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69416
69417         [BZ #12047]
69418         * manual/charset.texi (Generic Charset Conversion): Fix typo
69419         (LC_TYPE -> LC_CTYPE).
69420
69421 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69422
69423         [BZ #5805]
69424         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69425         (scalbnf): Likewise.
69426         (scalbnl): Likewise.
69427         (scalbln): Likewise.
69428         (scalblnf): Likewise.
69429         (scalblnl): Likewise.
69430         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69431         (vwarnx): Likewise.
69432         (verr): Likewise.
69433         (verrx): Likewise.
69434         * manual/filesys.texi (telldir): Use braces around return type.
69435         * manual/llio.texi (mmap): Add space after comma.
69436         (mmap64): Likewise.
69437         * manual/math.texi (jn): Use @var{} on parameter names.
69438         (jnf): Likewise.
69439         (jnl): Likewise.
69440         (yn): Likewise.
69441         (ynf): Likewise.
69442         (ynl): Likewise.
69443         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69444         line.
69445         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69446         "...".
69447         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69448         (sched_get_priority_max): Likewise.
69449         * manual/signal.texi (sigvec): Add space after comma.
69450         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69451         names.
69452         (if_indextoname): Likewise.
69453         (if_freenameindex): Likewise.
69454         (sendto): Use ',' instead of '.' in prototype.
69455         * manual/startup.texi (syscall): Use @dots{} instead of literal
69456         "...".
69457         * manual/stdio.texi (__fpending): Separate initial words of
69458         paragraph from @deftypefun line.
69459         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69460         "...".
69461         (vsyslog): Use @var{} on parameter names.
69462         * manual/terminal.texi (stty): Use @var{} on parameter names.
69463         * manual/users.texi (getutmp): Use @var{} on parameter names.
69464         (getutmpx): Likewise.
69465
69466 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69467
69468         [BZ #6884]
69469         * manual/stdio.texi (fopen): Fix typos in description of
69470         ",ccs=STRING".
69471
69472 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69473
69474         [BZ #4026]
69475         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69476         get clock_id definition.
69477
69478 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69479
69480         [BZ #4822]
69481         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69482         (madvise): Cast every argument to void on its own.
69483
69484 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69485
69486         [BZ #9902]
69487         * manual/startup.texi (Exit Status): Fix typo.
69488
69489 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69490
69491         [BZ #10140]
69492         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69493         * manual/examples/argp-ex2.c: Likewise.
69494         * manual/examples/argp-ex3.c: Likewise.
69495
69496 2012-02-16  Richard Henderson  <rth@redhat.com>
69497
69498         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69499         * sysdeps/s390/s390-32/initfini.c: Remove.
69500         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69501         * sysdeps/s390/s390-64/initfini.c: Remove.
69502
69503 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69504
69505         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69506         compiler output for sysdeps/generic/initfini.c.
69507         * sysdeps/sh/elf/initfini.c: Remove file.
69508
69509 2012-02-16  David S. Miller  <davem@davemloft.net>
69510
69511         [BZ #11494]
69512         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69513
69514         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69515         * sysdeps/sparc/crti.S: New file.
69516         * sysdeps/sparc/crtn.S: New file.
69517         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69518         * sysdeps/sparc/sparc64/Makefile: Likewise.
69519
69520 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69521
69522         [BZ #3335]
69523         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69524
69525 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69526
69527         [BZ #4822]
69528         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69529
69530         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69531         (write, read, close): Likewise.
69532         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69533
69534 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69535
69536         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69537         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69538         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69539         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69540         <bits/signalfd.h>.
69541         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69542         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69543         bits/signalfd.h.
69544
69545 2012-02-14  Marek Polacek  <polacek@redhat.com>
69546
69547         * sysdeps/x86_64/crti.S: New file.
69548         * sysdeps/x86_64/crtn.S: New file.
69549         * sysdeps/x86_64/elf/initfini.c: Remove file.
69550
69551 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69552
69553         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69554         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69555         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69556         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69557         <bits/inotify.h>.
69558         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69559         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69560         bits/inotify.h.
69561
69562 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69563
69564         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69565         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69566         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69567         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69568         <bits/eventfd.h>.
69569         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69570         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69571         bits/eventfd.h.
69572
69573 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69574
69575         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69576         __feraiseexcept instead of feraiseexcept.
69577
69578         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69579         nanosleep invocations.
69580         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69581         strings, and add error checking for a nanosleep invocations.
69582
69583 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         Replace FSF snail mail address with URLs, as per GNU coding standards.
69586         Most of the snail mail addresses were wrong anyway, and omitting
69587         them makes the source code easier to maintain.  Almost all of the
69588         changes are to license notices and to locale LC_IDENTIFICATION
69589         addresses, except for this one:
69590         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69591         not its snail mail address.
69592
69593 2012-02-09  Richard Henderson  <rth@twiddle.net>
69594
69595         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69596         of kernel-features.h.
69597
69598         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69599
69600 2012-02-08  Marek Polacek  <polacek@redhat.com>
69601
69602         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69603         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69604         * sysdeps/gnu/_G_config.h: Likewise.
69605         * sysdeps/generic/_G_config.h: Likewise.
69606
69607 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69608
69609         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69610         tests.
69611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69612
69613         * sysdeps/powerpc/powerpc32/crti.S: New file.
69614         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69615         * sysdeps/powerpc/powerpc64/crti.S: New file.
69616         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69617
69618         * Makeconfig (have-initfini): Don't set.
69619         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69620         * configure.in (nopic_initfini): Don't substitute.
69621         * config.h.in (HAVE_INITFINI): Don't #undef.
69622         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69623         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69624
69625 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69626
69627         Support crti.S and crtn.S provided directly by architectures.
69628         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69629         [crti.S in sysdirs] (omit-deps): Likewise.
69630         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69631         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69632         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69633         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69634         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69635         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69636         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69637         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69638         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69639         compiler output for sysdeps/generic/initfini.c.
69640         * sysdeps/i386/elf/Makefile: Remove file.
69641         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69642
69643 2012-02-07  Marek Polacek  <polacek@redhat.com>
69644
69645         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69646         * sysdeps/gnu/_G_config.h: Likewise.
69647         * sysdeps/mach/hurd/_G_config.h: Likewise.
69648
69649 2012-02-07  Marek Polacek  <polacek@redhat.com>
69650
69651         * math/Makefile (tests): Add tst-CMPLX2.
69652         * math/tst-CMPLX2.c: New file.
69653
69654 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69655
69656         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69657
69658         * math/libm-test.inc (jn_test): Add missing L suffix.
69659
69660 2012-02-06  Marek Polacek  <polacek@redhat.com>
69661
69662         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69663         * sysdeps/i386/fpu/e_powf.S: Likewise.
69664         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69665         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69666         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69667         * sysdeps/i386/fpu/e_pow.S: Likewise.
69668         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69669         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69670         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69671         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69672         * sysdeps/i386/fpu/e_log2.S: Likewise.
69673         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69674         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69675         * sysdeps/i386/fpu/e_powl.S: Likewise.
69676         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69677         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69678         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69679         * sysdeps/i386/fpu/e_logl.S: Likewise.
69680         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69681         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69682         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69683         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69684         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69685         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69686         * sysdeps/i386/fpu/e_log.S: Likewise.
69687         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69688         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69689         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69690         * sysdeps/i386/fpu/e_logf.S: Likewise.
69691         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69692         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69693         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69694         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69695         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69696         * sysdeps/i386/fpu/e_log10.S: Likewise.
69697         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69698         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69699         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69700         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69701         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69702         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69703         * sysdeps/i386/asm-syntax.h: Likewise.
69704         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69705         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69706         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69707         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69708         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69709         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69710         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69711         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69712         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69713         * sysdeps/powerpc/sysdep.h: Likewise.
69714         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69715         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69716
69717 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69718
69719         [BZ #411]
69720         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69721
69722 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69723
69724         * sysdeps/i386/sysdep.h: Include <features.h>.
69725         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69726         version.
69727
69728 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69729
69730         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69731         Define.
69732         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69733         LOAD_PIC_REG_STR.
69734
69735 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69736
69737         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69738         (SETUP_PIC_REG): Use GET_PC_THUNK.
69739         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69740         macro.
69741
69742 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69743
69744         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69745         for non-PIC compilation.
69746         (SETUP_PIC_REG): Add .p2align directive.
69747         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69748         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69749         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69750         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69751         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69752         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69753         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69754         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69755         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69756         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69757         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69758         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69759         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69760         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69761         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69762         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69763         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69764         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69765         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69766         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69767         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69768         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69769         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69770         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69771         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69772         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69773         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69774         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69775         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69776         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69777         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69778         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69779         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69780         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69781         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69782         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69783         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69784         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69785         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69786         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69787         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69788
69789 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69790
69791         * math/tst-CMPLX.c: Include <stdio.h>.
69792
69793 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69794
69795         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69796         float.
69797         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69798         * sysdeps/sparc/bits/mathdef.h: Likewise.
69799
69800 2012-01-31  Marek Polacek  <polacek@redhat.com>
69801
69802         * libio/libio.h: Don't define _PARAMS.
69803         * locale/programs/config.h: Don't define PARAMS.
69804         * stdlib/strtol_l.c: Likewise.
69805         (__strtol_l): Remove PARAMS from the prototype.
69806
69807 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69808
69809         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69810         names.  Just use the correct names.  Remove unnecessary wrapper
69811         functions.
69812         * malloc/arena.c: Likewise.
69813         * malloc/hooks.c: Likewise.
69814
69815         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69816         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69817         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69818
69819 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69820
69821         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69822         into tail calls.
69823         (update_get_addr): New function.
69824         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69825         GET_ADDR_MODULE parameter.
69826
69827 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69828
69829         * crypt/cert.c: Remove __STDC__ conditionals.
69830         * crypt/crypt-entry.c: Likewise.
69831         * crypt/crypt_util.c: Likewise.
69832         * libio/filedoalloc.c: Likewise.
69833         * libio/fileops.c: Likewise.
69834         * libio/genops.c: Likewise.
69835         * libio/iofclose.c: Likewise.
69836         * libio/iofdopen.c: Likewise.
69837         * libio/iofopen.c: Likewise.
69838         * libio/iofopen64.c: Likewise.
69839         * libio/iogetdelim.c: Likewise.
69840         * libio/iopopen.c: Likewise.
69841         * libio/obprintf.c: Likewise.
69842         * libio/oldfileops.c: Likewise.
69843         * libio/oldiofclose.c: Likewise.
69844         * libio/oldiofdopen.c: Likewise.
69845         * libio/oldiofopen.c: Likewise.
69846         * libio/oldiopopen.c: Likewise.
69847         * libio/wfiledoalloc.c: Likewise.
69848         * libio/wgenops.c: Likewise.
69849         * locale/programs/xmalloc.c: Likewise.
69850         * misc/syslog.c: Likewise.
69851         * stdio-common/xbug.c: Likewise.
69852         * string/memchr.c: Likewise.
69853         * string/memcmp.c: Likewise.
69854         * string/memrchr.c: Likewise.
69855         * string/rawmemchr.c: Likewise.
69856         * sysdeps/posix/getcwd.c: Likewise.
69857         * time/strftime_l.c: Likewise.
69858
69859 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69860
69861         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69862         * config.make.in (config-cflags-sse2avx): Define.
69863         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69864         Fix typo.
69865
69866 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69867
69868         * scripts/config.guess: Update from upstream config git repository.
69869         * scripts/config.sub: Likewise.
69870
69871 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69872
69873         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69874         (EM_NUM): Update.
69875         (R_TILEPRO_*, R_TILEGX_*): New macros.
69876
69877         * scripts/firstversions.awk: Fix bug in version range handling.
69878
69879         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69880
69881         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69882
69883         * include/sys/epoll.h: New file.
69884         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69885         libc_hidden_def.
69886
69887 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69888
69889         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69890         Avoid unnecessary __WORDSIZE == 64 test.
69891         (fmaxf): Use VEX format if possible.
69892         (fmax): Likewise.
69893         (fminf): Likewise.
69894         (fmin): Likewise.
69895
69896         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69897         * math/math_private.h: Remove libc_fegetround* and
69898         libc_fesetround*.
69899         * sysdeps/i386/configure.in: Check for -msse2avx.
69900         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69901         also if SSE2AVX is defined.
69902         Remove libc_fegetround* and libc_fesetround*.
69903         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69904         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69905         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69906         of HAS_YMM_USABLE.
69907         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69908         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69909         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69910         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69911         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69912
69913         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69914
69915 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69916
69917         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69918         size is not set.
69919         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69920
69921 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69922
69923         [BZ #13618]
69924         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69925         relocation.
69926         * Makeconfig (libm): Define.
69927         * elf/Makefile: Add rules to build and run tst-relsort1.
69928         * elf/tst-relsort1.c: New file.
69929         * elf/tst-relsort1mod1.c: New file.
69930         * elf/tst-relsort1mod2.c: New file.
69931
69932 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69933
69934         * math/s_ldexp.c: Remove __STDC__ conditionals.
69935         * math/s_ldexpf.c: Likewise.
69936         * math/s_ldexpl.c: Likewise.
69937         * math/s_nextafter.c: Likewise.
69938         * math/s_nexttowardf.c: Likewise.
69939         * math/s_significand.c: Likewise.
69940         * math/s_significandf.c: Likewise.
69941         * math/s_significandl.c: Likewise.
69942         * math/w_jnl.c: Likewise.
69943         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69944         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69945         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69946         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69947         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69948         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69949         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69950         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69951         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69952         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69953         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69954         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69955         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69956         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69957         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69958         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69959         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69960         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69961         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69962         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69963         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69964         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69965         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69966         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69967         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69968         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69969         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69970         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69971         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69972         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69973         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69974         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69975         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69976         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69977         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69978         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69979         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69980         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69981         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69982         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69983         * sysdeps/ieee754/k_standard.c: Likewise.
69984         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69985         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69986         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69987         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69988         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69989         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69990         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69991         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69992         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69993         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69994         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69995         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69996         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69997         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69998         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69999         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
70000         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
70001         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
70002         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
70003         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
70004         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
70005         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
70006         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
70007         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
70008         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
70009         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
70010         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
70011         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
70012         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
70013         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
70014         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
70015         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
70016         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
70017         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
70018         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
70019         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
70020         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
70021         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
70022         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
70023         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
70024         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
70025         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
70026         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
70027         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
70028         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
70029         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
70030         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
70031         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
70032         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
70033         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
70034         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
70035         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
70036         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
70037         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
70038         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
70039         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
70040         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
70041         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
70042         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
70043         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
70044         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
70045         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
70046         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
70047         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
70048         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
70049         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
70050         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
70051         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
70052         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
70053         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
70054         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
70055         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
70056         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
70057         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
70058         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
70059         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
70060         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70061         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70062         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70063         * sysdeps/ieee754/s_matherr.c: Likewise.
70064         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70065         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70066         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70067         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70068
70069 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70070
70071         * crypt/md5.h: Remove __STDC__ conditionals.
70072         * libio/libioP.h: Likewise.
70073         * locale/programs/config.h: Likewise.
70074         * sysdeps/generic/sysdep.h: Likewise.
70075         * sysdeps/i386/asm-syntax.h: Likewise.
70076         * sysdeps/s390/asm-syntax.h: Likewise.
70077         * sysdeps/unix/sysdep.h: Likewise.
70078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
70079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70080
70081 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70082
70083         * libio/libio.h: Remove __STDC__ conditionals.
70084         * malloc/obstack.h: Likewise.
70085         * math/complex.h: Likewise.
70086         * math/math.h: Likewise.
70087         * sysdeps/generic/_G_config.h: Likewise.
70088         * sysdeps/gnu/_G_config.h: Likewise.
70089         * sysdeps/mach/hurd/_G_config.h: Likewise.
70090         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70091         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
70092         * sysdeps/sparc/bits/mathdef.h: Likewise.
70093
70094 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
70095
70096         [BZ #13583]
70097         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
70098         Clean up HAS_* macros.
70099         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
70100         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
70101         possible.
70102         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
70103         HAS_AVX.
70104         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70105         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70106         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70107         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70108         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70109
70110 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
70111
70112         * elf/tst-unique3.cc (gets): Remove declaration.
70113         * elf/tst-unique3lib.cc (gets): Likewise.
70114         * elf/tst-unique3lib2.cc (gets): Likewise.
70115         * elf/tst-unique4.cc (gets): Likewise.
70116
70117 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
70118
70119         * include/stdio.h: Add C++ protection.  Add gets declarations and
70120         definitions.
70121         * debug/tst-chk1.c: Don't declare gets here.
70122         * stdio-common/tst-gets.c: Likewise.
70123
70124 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70125
70126         * posix/glob: Remove directory.
70127
70128 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70129
70130         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70131
70132 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70133
70134         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70135         of the non-standard EPFNOSUPPORT.
70136
70137 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70138
70139         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70140         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70141         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70142
70143 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70144
70145         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70146
70147 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70148
70149         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70150         transient errors.
70151         * nscd/grpcache.c (cache_addgr): Likewise.
70152         * nscd/hstcache.c (cache_addhst): Likewise.
70153         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70154         * nscd/pwdcache.c (cache_addpw): Likewise.
70155         * nscd/servicescache.c (cache_addserv): Likewise.
70156
70157 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70158
70159         * malloc/malloc.c: Various cleanups.
70160         * malloc/hooks.c: Likewise.
70161
70162         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70163         * stdlib/bug-fmtmsg1.c: New file.
70164
70165         * stdlib/fmtmsg.c (init): Add missing unlock.
70166         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70167
70168 2012-01-12  Marek Polacek  <polacek@redhat.com>
70169
70170         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70171         and _GNU_SOURCE.
70172
70173 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70174
70175         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70176         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70177         macro to ensure uniqueness of label name.
70178         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70179         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70180
70181 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70182
70183         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70184
70185         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70186         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70187         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70188         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70189
70190 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70191
70192         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70193
70194         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70195         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70196         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70197
70198         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70199
70200         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70201         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70202         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70203         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70204
70205         * math/bits/math-finite.h: Add ldexp support.
70206
70207 2012-01-10  Marek Polacek  <polacek@redhat.com>
70208
70209         * locale/programs/localedef.h (show_archive_content): Add noreturn
70210         attribute.
70211
70212 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70213
70214         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70215
70216 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70217
70218         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70219
70220         * io/Makefile (headers): Add bits/poll2.h.
70221
70222 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70223
70224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70225         typo #include statement.
70226
70227 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70228
70229         * include/sys/cdefs.h: Define __attribute_alloc_size.
70230         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70231         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70232         * elf/pldd.c: Likewise.
70233         * iconv/iconv_charmap.c: Likewise.
70234         * iconv/iconvconfig.c: Likewise.
70235         * iconv/strtab.c: Likewise.
70236         * locale/programs/locale.c: Likewise.
70237         * locale/programs/localedef.h: Likewise.
70238         * locale/programs/simple-hash.c: Likewise.
70239         * nscd/nscd.h: Likewise.
70240         * nss/makedb.c: Likewise.
70241         * sysdeps/generic/ldconfig.h: Likewise.
70242         * locale/programs/localedef.c: Remove xmalloc prototype.
70243         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70244
70245 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70246
70247         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70248         appropriate.
70249
70250 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70251
70252         * math/Makefile (tests): Add tst-CMPLX.
70253         * math/tst-CMPLX.c: New file.
70254
70255         * math/complex.h (CMPLXL): Fix typo.
70256
70257         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70258         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70259         GLIBC_2.16.
70260         * debug/tst-chk1.c: Add poll and ppoll tests.
70261         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70262         * include/sys/poll.h: Add hidden proto for ppoll.
70263         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70264         * sysdeps/mach/hurd/ppoll.c: Likewise.
70265         * io/ppoll.c: Likewise.
70266         * debug/poll_chk.c: New file.
70267         * debug/ppoll_chk.c: New file.
70268         * include/bits/poll2.h: New file.
70269         * io/bits/poll2.h: New file.
70270
70271         [BZ #1350]
70272         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70273
70274         * configure.in: static is always set to yes.  Remove.
70275         * config.make.in: Don't set build-static.
70276         * Makeconfig: Remove use of build-static.
70277         * dlfcn/Makefile: Likewise.
70278         * elf/Makefile: Likewise.
70279         * math/Makefile: Likewise.
70280         * misc/Makefile: Likewise.
70281         * nptl/Makefile: Likewise.
70282         * sysdeps/mach/hurd/Makefile: Likewise.
70283
70284         * configure.in: PWD_P is not used anymore.
70285         * config.make.in: Remove PWD_P entry.
70286
70287         * configure.in: Remove last remnants of RANLIB.
70288         No need to check for signed size_t anymore.
70289         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70290         and IA-64.
70291         Remove __builtin_expect test because we require at least gcc 3.4.
70292         * aclocal.m4: Likewise.
70293
70294         * wcsmbs/mbrtoc16.c: Implement using towc function.
70295         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70296         * wcsmbs/wcsmbsload.c: Likewise.
70297         * iconv/gconv_simple.c: Likewise.
70298         * iconv/gconv_int.h: Likewise.
70299         * iconv/gconv_builtin.h: Likewise.
70300         * iconv/iconv_prog.c: Remove CHAR16 handling.
70301
70302         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70303
70304         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70305
70306         * configure.in: Remove --with-elf and --enable-bounded options.
70307         Dont set base_machine for ia64.  More non-ELF conditions removed.
70308         Remove testing and setting of leading underscore information.
70309         * config.make.in (build-bounded): Set to no.
70310         * config.h.in: Remove NO_UNDERSCORES entry.
70311         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70312         them.
70313         * csu/start.c: Remove !NO_UNDERSCORE code.
70314         * locale/localeinfo.h: Likewise.
70315         * sysdeps/generic/machine-gmon.h: Likewise.
70316         * sysdeps/generic/sysdep.h: Likewise.
70317         * sysdeps/i386/sysdep.h: Likewise.
70318         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70319         * sysdeps/mach/sysdep.h: Likewise.
70320         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70321         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70322         * sysdeps/sh/sysdep.h: Likewise.
70323         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70324         * sysdeps/unix/i386/sysdep.S: Likewise.
70325         * sysdeps/unix/sparc/start.c: Likewise.
70326         * sysdeps/unix/sparc/sysdep.S: Likewise.
70327         * sysdeps/unix/sparc/sysdep.h: Likewise.
70328         * sysdeps/unix/start.c: Likewise.
70329         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70330         * sysdeps/x86_64/sysdep.h: Likewise.
70331
70332 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70333
70334         [BZ #13553]
70335         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70336         for non-gcc.
70337         * argp/argp-fmtstream.h: Use const instead __const.
70338         * argp/argp.h: Likewise.
70339         * assert/assert.h: Likewise.
70340         * bits/fenv.h: Likewise.
70341         * bits/sched.h: Likewise.
70342         * bits/sigset.h: Likewise.
70343         * bits/sigthread.h: Likewise.
70344         * catgets/nl_types.h: Likewise.
70345         * conform/data/pthread.h-data: Likewise.
70346         * crypt/crypt-private.h: Likewise.
70347         * crypt/crypt.h: Likewise.
70348         * crypt/crypt_util.c: Likewise.
70349         * ctype/ctype.h: Likewise.
70350         * debug/execinfo.h: Likewise.
70351         * debug/mbsnrtowcs_chk.c: Likewise.
70352         * debug/mbsrtowcs_chk.c: Likewise.
70353         * debug/wcsnrtombs_chk.c: Likewise.
70354         * debug/wcsrtombs_chk.c: Likewise.
70355         * debug/wcstombs_chk.c: Likewise.
70356         * dirent/dirent.h: Likewise.
70357         * dlfcn/dlfcn.h: Likewise.
70358         * elf/neededtest4.c: Likewise.
70359         * grp/grp.h: Likewise.
70360         * gshadow/gshadow.h: Likewise.
70361         * iconv/gconv.h: Likewise.
70362         * iconv/gconv_int.h: Likewise.
70363         * iconv/gconv_simple.c: Likewise.
70364         * iconv/iconv.h: Likewise.
70365         * iconv/loop.c: Likewise.
70366         * iconv/skeleton.c: Likewise.
70367         * include/aio.h: Likewise.
70368         * include/aliases.h: Likewise.
70369         * include/argz.h: Likewise.
70370         * include/arpa/inet.h: Likewise.
70371         * include/assert.h: Likewise.
70372         * include/dirent.h: Likewise.
70373         * include/dlfcn.h: Likewise.
70374         * include/execinfo.h: Likewise.
70375         * include/fcntl.h: Likewise.
70376         * include/fenv.h: Likewise.
70377         * include/glob.h: Likewise.
70378         * include/grp.h: Likewise.
70379         * include/libintl.h: Likewise.
70380         * include/mntent.h: Likewise.
70381         * include/netdb.h: Likewise.
70382         * include/pwd.h: Likewise.
70383         * include/rpc/netdb.h: Likewise.
70384         * include/sched.h: Likewise.
70385         * include/search.h: Likewise.
70386         * include/shadow.h: Likewise.
70387         * include/signal.h: Likewise.
70388         * include/stdio.h: Likewise.
70389         * include/stdlib.h: Likewise.
70390         * include/string.h: Likewise.
70391         * include/sys/socket.h: Likewise.
70392         * include/sys/stat.h: Likewise.
70393         * include/sys/statfs.h: Likewise.
70394         * include/sys/statvfs.h: Likewise.
70395         * include/sys/syslog.h: Likewise.
70396         * include/sys/time.h: Likewise.
70397         * include/sys/uio.h: Likewise.
70398         * include/time.h: Likewise.
70399         * include/unistd.h: Likewise.
70400         * include/utmp.h: Likewise.
70401         * include/wchar.h: Likewise.
70402         * include/wctype.h: Likewise.
70403         * inet/aliases.h: Likewise.
70404         * inet/arpa/inet.h: Likewise.
70405         * inet/netinet/ether.h: Likewise.
70406         * inet/netinet/in.h: Likewise.
70407         * intl/libintl.h: Likewise.
70408         * io/bits/fcntl2.h: Likewise.
70409         * io/fcntl.h: Likewise.
70410         * io/ftw.h: Likewise.
70411         * io/sys/poll.h: Likewise.
70412         * io/sys/stat.h: Likewise.
70413         * io/sys/statfs.h: Likewise.
70414         * io/sys/statvfs.h: Likewise.
70415         * io/utime.h: Likewise.
70416         * libio/bits/stdio.h: Likewise.
70417         * libio/bits/stdio2.h: Likewise.
70418         * libio/libio.h: Likewise.
70419         * libio/libioP.h: Likewise.
70420         * libio/stdio.h: Likewise.
70421         * locale/lc-ctype.c: Likewise.
70422         * locale/locale.h: Likewise.
70423         * login/utmp.h: Likewise.
70424         * malloc/arena.c: Likewise.
70425         * malloc/malloc.c: Likewise.
70426         * malloc/malloc.h: Likewise.
70427         * malloc/mcheck.c: Likewise.
70428         * malloc/mtrace.c: Likewise.
70429         * math/bits/mathcalls.h: Likewise.
70430         * math/fenv.h: Likewise.
70431         * math/math_private.h: Likewise.
70432         * misc/bits/error.h: Likewise.
70433         * misc/bits/syslog.h: Likewise.
70434         * misc/err.h: Likewise.
70435         * misc/error.h: Likewise.
70436         * misc/fstab.h: Likewise.
70437         * misc/mntent.h: Likewise.
70438         * misc/regexp.h: Likewise.
70439         * misc/search.h: Likewise.
70440         * misc/sgtty.h: Likewise.
70441         * misc/sys/mman.h: Likewise.
70442         * misc/sys/syslog.h: Likewise.
70443         * misc/sys/uio.h: Likewise.
70444         * misc/sys/xattr.h: Likewise.
70445         * misc/ttyent.h: Likewise.
70446         * nis/rpcsvc/ypclnt.h: Likewise.
70447         * nss/nss.h: Likewise.
70448         * posix/bits/unistd.h: Likewise.
70449         * posix/fnmatch.h: Likewise.
70450         * posix/glob.h: Likewise.
70451         * posix/sched.h: Likewise.
70452         * posix/spawn.h: Likewise.
70453         * posix/sys/wait.h: Likewise.
70454         * posix/unistd.h: Likewise.
70455         * posix/wordexp.h: Likewise.
70456         * pwd/pwd.h: Likewise.
70457         * resolv/netdb.h: Likewise.
70458         * resource/sys/resource.h: Likewise.
70459         * rt/aio.h: Likewise.
70460         * rt/bits/mqueue2.h: Likewise.
70461         * rt/mqueue.h: Likewise.
70462         * shadow/shadow.h: Likewise.
70463         * signal/signal.h: Likewise.
70464         * socket/send.c: Likewise.
70465         * socket/sendto.c: Likewise.
70466         * socket/sys/socket.h: Likewise.
70467         * stdio-common/printf.h: Likewise.
70468         * stdlib/bits/stdlib.h: Likewise.
70469         * stdlib/fmtmsg.h: Likewise.
70470         * stdlib/monetary.h: Likewise.
70471         * stdlib/stdlib.h: Likewise.
70472         * stdlib/ucontext.h: Likewise.
70473         * streams/stropts.h: Likewise.
70474         * string/argz.h: Likewise.
70475         * string/bits/string2.h: Likewise.
70476         * string/string.h: Likewise.
70477         * string/strings.h: Likewise.
70478         * sunrpc/rpc/auth.h: Likewise.
70479         * sunrpc/rpc/auth_des.h: Likewise.
70480         * sunrpc/rpc/clnt.h: Likewise.
70481         * sunrpc/rpc/netdb.h: Likewise.
70482         * sunrpc/rpc/pmap_clnt.h: Likewise.
70483         * sunrpc/rpc/xdr.h: Likewise.
70484         * sysdeps/generic/inttypes.h: Likewise.
70485         * sysdeps/generic/net/if.h: Likewise.
70486         * sysdeps/generic/sys/swap.h: Likewise.
70487         * sysdeps/gnu/net/if.h: Likewise.
70488         * sysdeps/gnu/utmpx.h: Likewise.
70489         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70490         * sysdeps/i386/i486/bits/string.h: Likewise.
70491         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70492         * sysdeps/s390/bits/string.h: Likewise.
70493         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70494         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70495         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70496         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70497         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70498         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70499         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70500         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70501         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70502         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70503         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70504         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70505         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70506         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70507         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70508         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70509         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70510         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70511         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70512         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70513         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70514         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70515         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70516         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70517         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70518         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70519         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70520         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70521         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70522         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70523         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70524         * sysvipc/sys/ipc.h: Likewise.
70525         * sysvipc/sys/msg.h: Likewise.
70526         * sysvipc/sys/sem.h: Likewise.
70527         * sysvipc/sys/shm.h: Likewise.
70528         * termios/termios.h: Likewise.
70529         * time/sys/time.h: Likewise.
70530         * time/time.h: Likewise.
70531         * wcsmbs/bits/wchar2.h: Likewise.
70532         * wcsmbs/uchar.h: Likewise.
70533         * wcsmbs/wchar.h: Likewise.
70534         * wctype/wctype.h: Likewise.
70535
70536         [BZ #13551]
70537         * Makeconfig: Remove all but ELF support including AIX support.
70538         * Makerules: Likewise.
70539         * config.h.in: Likewise.
70540         * config.make.in: Likewise.
70541         * configure: Likewise.
70542         * configure.in: Likewise.
70543         * csu/Makefile: Likewise.
70544         * csu/version.c: Likewise.
70545         * debug/Makefile: Likewise.
70546         * dlfcn/Makefile: Likewise.
70547         * elf/Makefile: Likewise.
70548         * extra-lib.mk: Likewise.
70549         * iconv/Makefile: Likewise.
70550         * include/libc-symbols.h: Likewise.
70551         * include/shlib-compat.h: Likewise.
70552         * resolv/Makefile: Likewise.
70553         * resolv/res_libc.c: Likewise.
70554         * rt/Makefile: Likewise.
70555         * sysdeps/i386/asm-syntax.h: Likewise.
70556         * sysdeps/i386/sysdep.h: Likewise.
70557         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70558         * sysdeps/mach/sysdep.h: Likewise.
70559         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70560         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70561         * sysdeps/s390/asm-syntax.h: Likewise.
70562         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70563         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70564         * sysdeps/sh/sysdep.h: Likewise.
70565         * sysdeps/unix/sparc/sysdep.h: Likewise.
70566         * sysdeps/wordsize-32/divdi3.c: Likewise.
70567         * sysdeps/x86_64/sysdep.h: Likewise.
70568
70569         * argp/Versions: Remove _argp_unlock_xxx.
70570
70571         [BZ #13559]
70572         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70573         * abilist/libBrokenLocale.abilist: Likewise.
70574         * abilist/libanl.abilist: Likewise.
70575         * abilist/libc.abilist: Likewise.
70576         * abilist/libcrypt.abilist: Likewise.
70577         * abilist/libdl.abilist: Likewise.
70578         * abilist/libm.abilist: Likewise.
70579         * abilist/libnsl.abilist: Likewise.
70580         * abilist/libpthread.abilist: Likewise.
70581         * abilist/libresolv.abilist: Likewise.
70582         * abilist/librt.abilist: Likewise.
70583         * abilist/libthread_db.abilist: Likewise.
70584         * abilist/libutil.abilist: Likewise.
70585         * abilist/libnss_db.abilist: New file.
70586
70587         * scripts/abilist.awk: Add support for indirect functions.
70588
70589         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70590
70591         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70592
70593         * shlib-versions: Remove entries for ports architectures.
70594
70595         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70596         files in ports.
70597         * elf/stackguard-macros.h: Remove support for IA-64.
70598         * elf/tst-auditmod1.c: Likewise.
70599         * sysdeps/generic/ldsodefs.h: Likewise.
70600
70601         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70602         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70603         configure files.
70604
70605         [BZ #13552]
70606         * configure.in: Remove --enable-omitfp support.
70607         * FAQ.in: Adjust.
70608         * config.make.in: Likewise.
70609         * Makeconfig: Likewise.
70610         * manual/install.texi: Likewise.
70611
70612         In case anyone cares, the IA-64 architecture could move to ports.
70613         * sysdeps/ia64/*: Removed.
70614         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70615         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70616
70617         [BZ #13555]
70618         * configure.in: Remove entries for unsupported architectures.
70619
70620         [BZ #13533]
70621         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70622         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70623         routines.
70624         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70625         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70626         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70627         fall back to using wcrtomb.
70628         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70629         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70630         renaming.
70631         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70632         * wcsmbs/tst-c16c32-1.c: New file.
70633
70634         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70635         local variable.
70636
70637         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70638
70639         * elf/tst-unique3.cc: Add explicit declaration of gets.
70640         * elf/tst-unique3lib.cc: Likewise.
70641         * elf/tst-unique3lib2.cc: Likewise.
70642         * elf/tst-unique4.cc: Likewise.
70643
70644         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70645
70646 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70647
70648         [BZ #13566]
70649         * assert/assert.h (static_assert): Don't define for C++.
70650         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70651         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70652
70653 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70654
70655         * iconv/loop.c (single loop): Fix assertion in storing of
70656         remaining bytes.
70657
70658         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70659
70660 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70661
70662         * posix/getconf.c: Update copyright year.
70663         * nss/getent.c: Likewise.
70664         * nss/makedb.c: Likewise.
70665         * iconv/iconvconfig.c: Likewise.
70666         * iconv/iconv_prog.c: Likewise.
70667         * elf/ldconfig.c: Likewise.
70668         * elf/pldd.c: Likewise.
70669         * elf/sotruss.ksh: Likewise.
70670         * catgets/gencat.c: Likewise.
70671         * csu/version.c: Likewise.
70672         * elf/ldd.bash.in: Likewise.
70673         * elf/sprof.c (print_version): Likewise.
70674         * locale/programs/locale.c: Likewise.
70675         * locale/programs/localedef.c: Likewise.
70676         * login/programs/pt_chown.c: Likewise.
70677         * nscd/nscd.c (print_version): Likewise.
70678         * debug/xtrace.sh: Likewise.
70679         * malloc/memusage.sh: Likewise.
70680         * malloc/mtrace.pl: Likewise.
70681         * debug/catchsegv.sh: Likewise.
70682
70683 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70684
70685         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70686         pure attribute.
70687
70688 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70689
70690         [BZ #13533]
70691         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70692         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70693         transformations.
70694         * iconv/gconv_int.h: Likewise.
70695         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70696         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70697         from libc for GLIBC_2.16.
70698         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70699         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70700         * wcsmbs/uchar.h: Really define mbstate_t.
70701         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70702         * wcsmbs/c16rtomb.c: New file.
70703         * wcsmbs/mbrtoc16.c: New file.
70704         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70705         for C/POSIX locale.
70706         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70707         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70708
70709         * wcsmbs/wchar.h: Add missing __restrict.
70710
70711 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70712
70713         [BZ #13532]
70714         * time/Makefile (routines): Add timespec_get.
70715         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70716         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70717         timespec for ISO C11.
70718         * time/timespec_get.c: New file.
70719         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70720         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70721
70722         [BZ #13531]
70723         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70724         * stdlib/stdlib.h: Declare aligned_alloc.
70725         * Versions.def: Add GLIBC_2.16 for libc.
70726         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70727
70728         [BZ 13527]
70729         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70730         ISO C11.
70731
70732         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70733         code.
70734
70735         [BZ #13528]
70736         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70737
70738         [BZ #13529]
70739         * assert/assert.h (static_assert): Define.
70740
70741         * version.h: Update for 2.16 development version.
70742
70743         [BZ #13526]
70744         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70745         _ISOC11_SOURCE.
70746
70747         * version.h (RELEASE): Bump for 2.15 release.
70748         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70749
70750         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70751         Patch by Marek Polacek <mpolacek@redhat.com>.
70752
70753         * bits/byteswap.h: Protect long long constants with __extension__.
70754         * sysdeps/i386/bits/byteswap.h: Likewise.
70755         * sysdeps/ia64/bits/byteswap.h: Likewise.
70756         * sysdeps/s390/bits/byteswap.h: Likewise.
70757         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70758
70759 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70760
70761         [BZ #13540]
70762         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70763         destination buffer.
70764         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70765
70766 2011-12-23  Marek Polacek  <polacek@redhat.com>
70767
70768         * elf/dl-addr.c (determine_info): Add inline keyword.
70769         * elf/tst-auditmod4b.c (check_avx): Likewise.
70770         * elf/tst-auditmod6b.c (check_avx): Likewise.
70771         * elf/tst-auditmod6c.c (check_avx): Likewise.
70772         * elf/tst-auditmod7b.c (check_avx): Likewise.
70773
70774 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70775
70776         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70777         !__SSE_MATH__.
70778
70779 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70780
70781         [BZ #13540]
70782         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70783         processing for last bytes.
70784
70785 2011-08-06  Bruno Haible  <bruno@clisp.org>
70786
70787         [BZ #13061]
70788         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70789         U+0385, not to U+1FEE.
70790
70791         [BZ #13062]
70792         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70793         entry for U+00A5 U+0301.
70794
70795 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70796
70797         [BZ #13166]
70798         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70799         buffer for the output is too small.
70800
70801         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70802         optimization.
70803
70804         [BZ #13185]
70805         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70806         SSE flags if possible.
70807
70808 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70809
70810         [BZ #13540]
70811         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70812         processing for last bytes.
70813
70814 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70815
70816         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70817         (syscall-list-default-options, syscall-list-default-condition)
70818         (syscall-list-includes): Define.
70819         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70820         list of ABIs and options and #if conditions for each ABI.  Do not
70821         handle common syscalls between ABIs specially.
70822         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70823         Remove.
70824         (syscall-list-variants, syscall-list-32bit-options)
70825         (syscall-list-32bit-condition, syscall-list-64bit-options)
70826         (syscall-list-64bit-condition): Define.
70827         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70828         (syscall-list-variants, syscall-list-32bit-options)
70829         (syscall-list-32bit-condition, syscall-list-64bit-options)
70830         (syscall-list-64bit-condition): Define.
70831         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70832         Remove.
70833         (syscall-list-variants, syscall-list-32bit-options)
70834         (syscall-list-32bit-condition, syscall-list-64bit-options)
70835         (syscall-list-64bit-condition): Define.
70836         * sysdeps/unix/sysv/linux/x86_64/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
70842 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70843
70844         * locale/iso-639.def: Add brx entry.
70845
70846         [BZ #13328]
70847         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70848         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70849
70850         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70851         __feraiseexcept_renamed.
70852
70853 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70854
70855         [BZ #13538]
70856         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70857         EPOLLET with unsigned values.
70858         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70859         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70860
70861         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70862         to large cancellation.
70863         * math/s_cacoshf.c: Likewise.
70864         * math/s_cacoshl.c: Likewise.
70865
70866 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70867
70868         [BZ #13305]
70869         [BZ #12786]
70870         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70871         * math/s_cacoshf.c: Likewise.
70872         * math/s_cacoshl.c: Likewise.
70873
70874 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70875
70876         [BZ #13439]
70877         * iconv/gconv.h: Define __GCONV_SWAP.
70878         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70879         * iconvdata/utf-16.c: Likewise.
70880         * iconvdata/utf-32.c: Likewise.
70881
70882 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70883
70884         [BZ #13524]
70885         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70886         numerator after shifting it by one limb.
70887
70888 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70889
70890         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70891         under [__USE_EXTERN_INLINES].
70892
70893 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70894
70895         [BZ #13446]
70896         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70897
70898 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70899
70900         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70901         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70902         optimized code.
70903         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70904         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70905         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70906         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70907         for strncasecmp/strncasecmp_l compilation.
70908         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70909         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70910
70911 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70912
70913         [BZ #13484]
70914         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70915         of __asm__.
70916
70917 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70918
70919         [BZ #13506]
70920         * time/tzfile.c (__tzfile_read): Check values from file header.
70921
70922 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70923
70924         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70925         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70926         * powerpc/powerpc32/dl-start.S: Likewise.
70927         * powerpc/powerpc32/elf/start.S: Likewise.
70928         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70929         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70930         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70931         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70932         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70933         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70934         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70935         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70936         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70937         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70938         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70939         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70940         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70941         * powerpc/powerpc32/memset.S: Likewise.
70942         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70943         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70944         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70945         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70946         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70947         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70948         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70949         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70950         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70951         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70952         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70953         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70954         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70955
70956 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70957
70958         * math/libm-test.inc: Added more nearbyint tests.
70959         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70960         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70961         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70962         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70963
70964 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70965
70966         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70967         FD_CLOEXEC.
70968
70969 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70970
70971         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70972         Add wcscpy-ssse3 wcscpy-c.
70973         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70974         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70975         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70976         * sysdeps/x86_64/wcschr.S: New file.
70977         * sysdeps/x86_64/wcsrchr.S: New file.
70978         * string/test-strcmp.c: Remove checking of wcscmp function for
70979         wrong alignments.
70980         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70981         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70982         wcsrchr-sse2 wcsrchr-c.
70983         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70984         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70985         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70986         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70987         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70988         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70989         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70990         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70991         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70992         * wcsmbc/wcschr.c (WCSCHR): New macro.
70993
70994 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70995
70996         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70997         * wcsmbs/test-wcsrchr.c: New file.
70998         * string/test-strrchr.c: Add wcsrchr support.
70999         (WIDE): New macro.
71000         * wcsmbs/test-wcscpy.c: New file.
71001         * string/test-strcpy.c: Add wcscpy support.
71002         (WIDE): New macro.
71003
71004 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
71005
71006         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
71007         the inner loop.
71008
71009 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
71010
71011         [BZ #13472]
71012         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
71013
71014 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
71015
71016         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
71017         Minor optimizations.
71018
71019         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
71020         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
71021         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
71022
71023 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
71024
71025         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
71026         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
71027         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
71028         for gcc to avoid warnings.
71029         * inet/Makefile (tests): Add tst-checks.
71030         * inet/tst-checks.c: New file.
71031
71032         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
71033         warning.
71034
71035         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
71036         __wmemcmp_sse2.
71037
71038         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
71039         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
71040
71041         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
71042
71043 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
71044
71045         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
71046         problem.
71047
71048         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
71049
71050 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
71051
71052         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
71053         conditional on GCC version.
71054         (__arch_compare_and_exchange_val_8_acq)
71055         (__arch_compare_and_exchange_val_16_acq)
71056         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
71057         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
71058         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
71059
71060 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
71061
71062         * sysdeps/sh/backtrace.c: New file.
71063
71064 2011-12-02  Andreas Schwab  <schwab@redhat.com>
71065
71066         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
71067         parenthesis.
71068
71069 2011-12-01  Andreas Schwab  <schwab@redhat.com>
71070
71071         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
71072         falling back to utime.
71073
71074 2011-11-30  Andreas Schwab  <schwab@redhat.com>
71075
71076         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
71077         expectations for float.
71078
71079 2011-11-29  Andreas Schwab  <schwab@redhat.com>
71080
71081         * locale/weight.h (findidx): Add parameter len.
71082         * locale/weightwc.h (findidx): Likewise.
71083         * posix/fnmatch_loop.c (FCT): Adjust caller.
71084         * posix/regcomp.c (build_equiv_class): Likewise.
71085         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
71086         * posix/regexec.c (check_node_accept_bytes): Likewise.
71087         * string/strcoll_l.c (STRCOLL): Likewise.
71088         * string/strxfrm_l.c (STRXFRM): Likewise.
71089
71090 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
71091
71092         * Makefile.in: Remove CVSOPT handling.
71093         * configure.in: Remove use of AC_REVISION.
71094         * iconvdata/Makefile (distribute): No need to filter out CVS.
71095         * scripts/list-sources.sh: Remove CVS, subversion and monotone
71096         handling.
71097
71098 2011-11-16  Andreas Schwab  <schwab@redhat.com>
71099
71100         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
71101         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
71102         [USE_AS_STRNCASECMP_L]: Likewise.
71103         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
71104         NO_TLS_DIRECT_SEG_REFS.
71105         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
71106         Fix argument offsets for non-PIC.
71107         [USE_AS_STRNCASECMP_L]: Likewise.
71108         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
71109         NO_TLS_DIRECT_SEG_REFS.
71110
71111 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71112
71113         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
71114         O_CLOEXEC.
71115         * locale/loadlocale.c (_nl_load_locale): Likewise.
71116
71117 2011-11-15  Andreas Schwab  <schwab@redhat.com>
71118
71119         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
71120         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
71121         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
71122         (SYSCALL_GETTIME): Set errno on error.
71123
71124         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71125         count references to noai6ai_cached.
71126
71127 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71128
71129         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71130
71131         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71132         FD_CLOEXEC for /proc/self/maps.
71133
71134         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71135         FD_CLOEXEC for /proc/meminfo.
71136
71137         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71138         gai.conf.
71139
71140         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71141         FD_CLOEXEC for given file.
71142
71143         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71144
71145         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71146         FD_CLOEXEC for /etc/hosts.
71147         (_gethtent): Likewise.
71148
71149         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71150
71151         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71152         cancellation and set FD_CLOEXEC for /etc/netgroup.
71153
71154         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71155         reading /etc/publickey.
71156
71157         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71158         allow cancellation when reading /etc/group.
71159
71160         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71161         cancellation.
71162         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71163
71164         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71165         when using data file.
71166
71167         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71168
71169         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71170         (write_nis_obj): Use "c" and "e" in fopen.
71171
71172         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71173
71174         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71175
71176         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71177
71178         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71179
71180         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71181         locale.alias.
71182
71183         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71184
71185         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71186
71187         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71188
71189         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71190         file parsing and set FD_CLOEXEC.
71191
71192 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71193
71194         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71195
71196 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71197
71198         * malloc/arena.c (arena_get2): Don't call reused_arena when
71199         _int_new_arena failed.
71200
71201 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71202
71203         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71204         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71205         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71206         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71207         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71208         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71209         to compile strcasecmp and strncasecmp.
71210         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71211         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71212
71213         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71214
71215 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71216
71217         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71218         locale-defines.sym to gen-as-const-headers.
71219         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71220         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71221         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71222         to compile strcasecmp and strncasecmp.
71223         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71224         strcasecmp_l and strncasecmp_l.
71225         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71226         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71227         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71228         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71229         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71230         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71231         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71232         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71233         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71234         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71235         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71236
71237 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71238
71239         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71240         result of SYSDEP_GETTIME_CPU to retval.
71241         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71242         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71243
71244         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71245         variable.
71246
71247         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71248         mantissa words.
71249         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71250
71251         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71252         from unused variable.
71253
71254         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71255         DWARF definitions.
71256         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71257         for assembling.
71258
71259         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71260         over namespaces.
71261
71262         * sunrpc/rpc_prot.c (rejected): Fix case value.
71263
71264         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71265         unsigned long long int to avoid warnings in shift.
71266
71267         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71268         of use of trans.
71269         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71270         variable tmp.
71271
71272         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71273         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71274         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71275
71276         * nis/nis_table.c (nis_list): Use variable of correct type for
71277         result of __follow_path call.
71278
71279 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71280
71281         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71282         of math functions ceil, trunc, floor, round, and sqrt, when
71283         avaliable on the platform.
71284         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71285         name clash.
71286         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71287         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71288         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71289
71290 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71291
71292         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71293         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71294
71295 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71296
71297         * include/unistd.h: Fix __readlink return type.
71298         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71299
71300 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71301
71302         * stdlib/ucontext.h: Undo last change for makecontext.
71303
71304 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71305
71306         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71307
71308         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71309         * setjmp/setjmp.h: Mark functions as non-leaf.
71310         * setjmp/bits/setjmp2.h: Likewise.
71311         * stdlib/ucontext.h: Likewise.
71312
71313 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71314
71315         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71316         (reused_arena): Don't check arena limit.
71317         (arena_get2): Atomically check arena limit.
71318
71319 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71320
71321         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71322         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71323
71324         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71325         instructions.
71326
71327 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71328
71329         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71330         handler when locking.
71331
71332         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71333         Fix size of allocated buffer.
71334
71335 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71336
71337         [BZ #10103]
71338         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71339         declarations for long double functions.
71340         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71341
71342         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71343
71344 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71345
71346         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71347         installed.
71348
71349         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71350         is disabled.
71351
71352 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71353
71354         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71355
71356 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71357
71358         * include/alloca.h (stackinfo_alloca_round): Define.
71359         (extend_alloca): Use it.
71360         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71361         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71362         here.
71363
71364         * scripts/check-local-headers.sh: Ignore libaudit.h.
71365
71366         * nscd/Makefile (extra-objs): Make recursively expanded.
71367
71368 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71369
71370         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71371         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71372
71373         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71374         * posix/tst-rfc3484-2.c: Likewise.
71375         * posix/tst-rfc3484-3.c: Likewise.
71376
71377         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71378         process_vm_writev.
71379         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71380         process_vm_writev.
71381         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71382         process_vm_writev from libc using GLIBC_2.15 version.
71383
71384         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71385
71386 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71387
71388         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71389         stack usage.
71390
71391 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71392
71393         [BZ #13367]
71394         * nss/getent.c (initgroups_keys): Show error message in case no group
71395         names are given.
71396
71397         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71398         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71399         __bump_nl_timestamp.
71400         * nscd/connections (nscd_init): When host database is served open
71401         netlink socket and request notification about configuration changes.
71402         (main_loop_poll): Track netlink file descriptor and bump timestamp
71403         in case data becomes available.
71404         (main_loop_epoll): Likewise.
71405         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71406         (database_pers_head): Add extra_data fileds.
71407         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71408         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71409         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71410         Adjust caller.
71411         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71412         in6ai data, call __free_in6ai.
71413         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71414         Add -DHAVE_NETLINK.
71415         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71416         interface information.  Reuse previous data if netlink timestamp
71417         is not changed.
71418         (__bump_nl_timestamp): New function.
71419         (__free_in6ai): New function.
71420
71421 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71422
71423         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71424         close_not_cancel_no_status here.
71425         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71426
71427 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71428
71429         [BZ #13276]
71430         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71431         return value.
71432
71433         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71434         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71435         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71436
71437 2011-07-03  Andreas Jaeger  <aj@suse.de>
71438
71439         [BZ #10709]
71440         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71441         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71442         * math/libm-test.inc (sin_test): Add test case.
71443
71444 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71445
71446         [BZ #13337]
71447         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71448         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71449
71450         * elf/chroot_canon.c (chroot_canon): Cleanups.
71451
71452         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71453
71454         [BZ #13335]
71455         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71456         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71457
71458         * string/test-strchr.c: Make usable for strchrnul testing.
71459         * string/test-strchrnul.c: New file.
71460         * string/Makefile (strop-tests): Add strchrnul.
71461
71462         * po/it.po: Update from translation team.
71463         * po/es.po: Likewise.
71464
71465 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71466
71467         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71468         the three constants needed as parameters.  Drop the others.
71469         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71470         __m128i_strloadu_tolower.
71471         Create and initialize variable zero and use it in all the places
71472         where _mm_setzero_si128 was used.
71473
71474         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71475         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71476         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71477         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71478         anymore.
71479         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71480         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71481         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71482         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71483         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71484         __mpranred, __mptan.
71485         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71486         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71487         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71488         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71489         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71490         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71491         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71492         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71493         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71494
71495 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71496
71497         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71498         redefine if SHARED.
71499         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71500
71501         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71502         wide char related routines to wcsmbs subdir.
71503
71504 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71505
71506         [BZ #13344]
71507         * misc/sys/cdefs.h (__THROWNL): Define.
71508         * posix/unistd.h: Use __THREADNL instead of __THREAD
71509         for memory synchronization functions.
71510
71511 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71512
71513         [BZ #13349]
71514         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71515         doesn't exist.
71516         * manual/stdio.texi (Obstack Streams): Node removed.
71517
71518 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71519
71520         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71521         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71522         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71523
71524         * math/math_private.h (math_force_eval): Allow non-addressable
71525         arguments.
71526         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71527
71528 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71529
71530         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71531         file is not needed.
71532
71533         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71534         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71535         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71536         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71537         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71538         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71539         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71540         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71541         Add AVX variants.
71542         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71543         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71544         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71545         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71546         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71547         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71548         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71549         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71550         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71551         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71552         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71553         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71554         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71555         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71556         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71557         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71558         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71559         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71560         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71561
71562         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71563         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71564
71565         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71566         place.  Use VEX encoding when compiling for AVX.
71567
71568 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71569
71570         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71571         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71572
71573         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71574
71575 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71576
71577         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71578         useless if() expression.
71579         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71580         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71581         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71582         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71583         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71584         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71585         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71586         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71587         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71588         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71589         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71590         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71591         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71592         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71593         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71594         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71595         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71596         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71597         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71598
71599         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71600
71601 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71602
71603         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71604         condition.
71605         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71606
71607 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71608
71609         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71610         .text section.  Avoid duplicate constants.
71611         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71612         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71613         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71614         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71615         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71616         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71617         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71618         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71619         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71620         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71621         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71622         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71623         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71624         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71625         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71626         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71627         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71628         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71629         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71630         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71631         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71632         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71633         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71634         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71635         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71636         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71637         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71638         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71639         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71640         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71641         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71642         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71643         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71644         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71645         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71646         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71647         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71648         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71649         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71650         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71651         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71652         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71653         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71654         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71655         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71656
71657 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71658
71659         * sysdeps/x86_64/dla.h: Move to ...
71660         * sysdeps/x86_64/fpu/dla.h: ...here.
71661         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71662         situations.  Use __builtin_fma only for gcc 4.6 and up.
71663
71664         * config.make.in: Add have-mfma4 entry.
71665         * configure.in: Substitute libc_cv_cc_fma4.
71666         * math/Makefile (dbl-only-routines): Add sincostab.
71667         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71668         Use __sincostab not sincos.
71669         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71670         name is a macro.
71671         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71672         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71673         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71674         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71675         using __copysign.
71676         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71677         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71678         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71679         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71680         and __inv.
71681         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71682         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71683         __copysign.
71684         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71685         define aliases when function name is a macro.
71686         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71687         sysdeps/ieee754/dbl-64/sincos.tbl.
71688         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71689         fma4-enabled routines.
71690         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71691         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71692         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71693         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71694         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71695         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71696         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71697         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71698         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71699         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71700         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71701         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71702         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71703         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71704         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71705         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71706         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71707         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71708         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71709         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71710         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71711         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71712         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71713         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71714         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71715         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71716         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71717         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71718         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71719         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71720
71721         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71722         rename.
71723         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71724         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71725         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71726         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71727         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71728         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71729         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71730         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71731
71732 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71733
71734         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71735
71736 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71737
71738         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71739
71740         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71741         prediction.
71742         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71743
71744         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71745         Remove unused variable magic_bits.
71746         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71747
71748         * string/strnlen.c: Define and use STRNLEN macro.
71749         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71750         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71751         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71752         * wcsmbs/wcslen.c: Define and use WCSLEN.
71753         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71754         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71755         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71756         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71757         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71758         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71759         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71760
71761 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71762
71763         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71764         strnlen-sse2-no-bsf.
71765         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71766         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71767         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71768         Add strnlen support.
71769         (USE_AS_STRNLEN): New macro.
71770         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71771         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71772         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71773         * sysdeps/x86_64/wcslen.S: New file.
71774
71775 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71776
71777         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71778         XMM-moves are used for copying on small sizes.
71779
71780 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71781
71782         * wcsmbs/Makefile (strop-tests): Add wcschr.
71783         * wcsmbs/test-wcschr.c: New file.
71784         * string/test-strchr.c: Update.
71785         Add wcschr support.
71786         (WIDE): New macro.
71787
71788 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71789
71790         * wcsmbs/Makefile (strop-tests): Add wcslen.
71791         * wcsmbs/test-wcslen.c: New file.
71792         * string/test-strlen.c: Update.
71793         Add wcslen support.
71794         (WIDE): New macro.
71795
71796 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71797
71798         * po/it.po: Update from translation team.
71799
71800 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71801
71802         * sysdeps/x86_64/wcscmp.S: Update.
71803         Fix wrong comparison semantics.
71804         wcscmp shall use signed comparison not unsigned.
71805         Don't use substraction to avoid overflow bug.
71806         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71807         * wcsmbc/wcscmp.c: Likewise.
71808         * string/test-strcmp.c: Likewise.
71809         Add new tests to check cases with negative values.
71810
71811 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71812
71813         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71814         * sysdeps/x86_64/dla.h: ...here.  New file.
71815         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71816         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71817         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71818         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71819         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71820         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71821         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71822         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71823         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71824
71825 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71826
71827         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71828         __ynl_finite aliases.
71829
71830 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71831
71832         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71833
71834         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71835         define DLA_FMA.
71836         [DLA_FMA] (EMULV): Use DLA_FMA.
71837         [DLA_FMA] (MUL12): Use EMULV.
71838         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71839         that are not needed.
71840         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71841         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71842         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71843         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71844         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71845         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71846         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71847
71848 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71849
71850         * math/s_nan.c: Undef __nan.
71851         * math/s_nanf.c: Undef __nanf.
71852         * math/s_nanl.c: Undef __nanl.
71853         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71854         "math_private.h".
71855
71856 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71857
71858         * math/s_catan.c: Add branch predictions.
71859         * math/s_catanf.c: Likewise.
71860         * math/s_catanh.c: Likewise.
71861         * math/s_catanhf.c: Likewise.
71862         * math/s_catanhl.c: Likewise.
71863         * math/s_catanl.c: Likewise.
71864         * math/s_cexp.c: Likewise.
71865         * math/s_cexpf.c: Likewise.
71866         * math/s_cexpl.c: Likewise.
71867         * math/s_clog.c: Likewise.
71868         * math/s_clog10.c: Likewise.
71869         * math/s_clog10f.c: Likewise.
71870         * math/s_clog10l.c: Likewise.
71871         * math/s_clogf.c: Likewise.
71872         * math/s_clogl.c: Likewise.
71873         * math/s_csqrt.c: Likewise.
71874         * math/s_csqrtf.c: Likewise.
71875         * math/s_csqrtl.c: Likewise.
71876         * math/s_ctanf.c: Likewise.
71877         * math/s_ctanh.c: Likewise.
71878         * math/s_ctanhf.c: Likewise.
71879         * math/s_ctanhl.c: Likewise.
71880         * math/s_ctanl.c: Likewise.
71881
71882         * math/math_private.h: Define __nan, __nanf, __nanl.
71883         * math/s_cacosh.c: Include <math_private.h>.
71884         * math/s_cacoshl.c: Likewise.
71885         * math/s_casinh.c: Likewise.
71886         * math/s_casinhf.c: Likewise.
71887         * math/s_casinhl.c: Likewise.
71888         * math/s_ccos.c: Rely entire on ccosh.
71889         * math/s_ccosf.c: Rely entire on ccoshf.
71890         * math/s_ccosl.c: Rely entirely on ccoshl.
71891         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71892         Remove tests for FE_INVALID.
71893         * math/s_ccoshf.c: Likewise.
71894         * math/s_ccoshl.c: Likewise.
71895         * math/s_csin.c: Likewise.
71896         * math/s_csinf.c: Likewise.
71897         * math/s_csinh.c Likewise.
71898         * math/s_csinhf.c: Likewise.
71899         * math/s_csinhl.c: Likewise.
71900         * math/s_csinl.c: Likewise.
71901         * math/s_ctan.c: Likewise.
71902         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71903         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71904         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71905
71906 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71907
71908         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71909         compilation problems.
71910
71911         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71912         __builtin_expect.
71913
71914 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71915
71916         * sysdeps/i386/configure.in: Test for -mfma4 option.
71917         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71918         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71919         COMMON_CPUID_INDEX_80000001.
71920         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71921         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71922         use it if FMA3 is not supported.
71923         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71924
71925         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71926         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71927
71928 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71929
71930         [BZ #12892]
71931         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71932         it would create a cycle with a link time dependency.
71933
71934 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71935
71936         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71937         instruction.
71938         * string/Makefile (strop-tests): Add rawmemchr.
71939         * string/test-rawmemchr.c: New file.
71940
71941         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71942         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71943         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71944         when compiling str{,n}casecmp and when AVX is available.  Hook up
71945         new optimized code in initializers.
71946
71947 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71948
71949         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71950         __feraiseexcept instead of feraiseexcept.
71951
71952 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71953
71954         * math/math_private.h: Define defaults for libc_fetestexcept and
71955         libc_feupdateenv.
71956         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71957         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71958         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71959         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71960         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71961         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71962         libc_fetestexcept and libc_feupdateenv.
71963
71964         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71965         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71966         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71967         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71968         libc_feholdexcept_setround.
71969
71970         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71971         Add s_nearbyint-c and s_nearbyintf-c.
71972         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71973         nearbyintf inlines.
71974         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71975         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71976         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71977         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71978
71979         * math/math_private.h: Define defaults for libc_fegetround,
71980         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71981         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71982         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71983         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71984         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71985         standard functions.
71986         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71987         Remove comments and hacks for old compiler versions.
71988         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71989         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71990         libc_feholdexceptl.
71991
71992 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71993
71994         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71995         (__feraiseexcept_renamed): Add __NTH.
71996         (feraiseexcept): Add __NTH.  Rename local variables to fix
71997         namespace violations.
71998
71999 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
72000
72001         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
72002
72003         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
72004
72005         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
72006         recently added interfaces.
72007         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
72008
72009         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
72010         about macro parameter expansion.
72011
72012         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
72013         __NO_MATH_INLINES is defined.  Cleanups.
72014
72015         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
72016         and __floorf is target has SSE4.1.
72017         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
72018         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
72019         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
72020         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
72021
72022         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
72023         name.
72024         (floorf): Likewise.
72025
72026         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
72027
72028 2011-10-17  Andreas Schwab  <schwab@redhat.com>
72029
72030         * misc/sys/cdefs.h: Fix last change.
72031
72032         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
72033         database lookup.
72034
72035 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
72036
72037         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
72038
72039         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
72040         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
72041         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
72042         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
72043         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
72044         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
72045         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
72046         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
72047         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
72048         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
72049         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
72050         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
72051         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
72052         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
72053         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
72054         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
72055         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
72056         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
72057         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
72058         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
72059         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
72060         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
72061
72062         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
72063         ceil, ceilf, floor, floorf.
72064
72065         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
72066         Perform IRELATIVE relocations last.
72067
72068         * elf/do-rel.h: Add another parameter nrelative, replacing the
72069         local variable with the same name.  Change name of the function
72070         to end in Rel or Rela (uppercase).
72071         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
72072         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
72073         elf_dynamic_do_##reloc function.
72074
72075 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72076
72077         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
72078         is sufficient, at least on modern CPUs.
72079
72080         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
72081
72082         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
72083         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
72084
72085         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
72086         __expl_finite.
72087         * math/bits/math-finite.h: Add entries for exp.
72088         * math/e_expl.c: Add __*_finite alias.
72089         * sysdeps/i386/fpu/e_exp.S: Likewise.
72090         * sysdeps/i386/fpu/e_expf.S: Likewise.
72091         * sysdeps/i386/fpu/e_expl.c: Likewise.
72092         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
72093         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72094         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
72095         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
72096         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
72097         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72098         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72099
72100         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
72101         is sufficient, at least on modern CPUs.
72102
72103         * ctype/ctype-info.c (__ctype_init): Define.
72104         * include/ctype.h (__ctype_init): Declare.
72105         (__ctype_b_loc): The variable is always initialized.
72106         (__ctype_toupper_loc): Likewise.
72107         (__ctype_tolower_loc): Likewise.
72108         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
72109         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
72110
72111 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
72112
72113         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
72114
72115         * configure.in: Also look in $cxxmachine/include for C++ system
72116         headers.
72117
72118 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72119
72120         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
72121         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
72122         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
72123         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
72124         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72125         (USE_AS_WMEMCMP): New macro.
72126         Fixing indents.
72127         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72128         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72129         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72130         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72131         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72132         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72133         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72134         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72135         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72136         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72137         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72138         (USE_AS_WMEMCMP): New macro.
72139         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72140         * sysdeps/string/test-memcmp.c: Update.
72141         Fix simple_wmemcmp.
72142         Add new tests.
72143         * wcsmbs/wmemcmp.c: Update.
72144         (WMEMCMP): New macro.
72145         Fix overflow bug.
72146
72147 2011-10-12  Andreas Jaeger  <aj@suse.de>
72148
72149         [BZ #13268]
72150         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72151
72152 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72153
72154         * libio/iofwide.c (do_length): Avoid warning.
72155
72156         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72157
72158 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72159
72160         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72161
72162         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72163         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72164         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72165         * sysdeps/i386/i686/fpu/e_log.S: New file.
72166         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72167         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72168
72169         * ctype/ctype.h: Add support for inlined isXXX functions when
72170         compiling C++ code.
72171
72172 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72173
72174         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72175
72176         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72177
72178 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72179
72180         [BZ #13291]
72181         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72182
72183 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72184
72185         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72186         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72187         feraiseexcept.
72188
72189         * sysdeps/x86_64/memrchr.S: Check for zero size.
72190
72191         * string/stratcliff.c: Add memrchr tests.
72192
72193 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72194
72195         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72196         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72197         rawmemchr-sse2 rawmemchr-sse2-bsf.
72198         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72199         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72200         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72201         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72202         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72203         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72204         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72205         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72206         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72207         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72208         * string/memrchr.c (MEMRCHR): New macro.
72209
72210 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72211
72212         Add integration with gcc's -ffinite-math-only and optimize wrapper
72213         functions in libm.
72214         * Versions.def: Define GLIBC_2.15 version for libm.
72215         * math/Makefile (headers): Add bits/math-finite.h.
72216         * math/bits/math-finite.h: New file.
72217         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72218         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72219         * math/e_acoshl.c: Add __*_finite alias.
72220         * math/e_acosl.c: Likewise.
72221         * math/e_asinl.c: Likewise.
72222         * math/e_atan2l.c: Likewise.
72223         * math/e_atanhl.c: Likewise.
72224         * math/e_coshl.c: Likewise.
72225         * math/e_exp10.c: Likewise.
72226         * math/e_exp10f.c: Likewise.
72227         * math/e_exp10l.c: Likewise.
72228         * math/e_exp2l.c: Likewise.
72229         * math/e_fmodl.c: Likewise.
72230         * math/e_gammal_r.c: Likewise.
72231         * math/e_hypotl.c: Likewise.
72232         * math/e_j0l.c: Likewise.
72233         * math/e_j1l.c: Likewise.
72234         * math/e_jnl.c: Likewise.
72235         * math/e_lgammal_r.c: Likewise.
72236         * math/e_log10l.c: Likewise.
72237         * math/e_log2l.c: Likewise.
72238         * math/e_logl.c: Likewise.
72239         * math/e_powl.c: Likewise.
72240         * math/e_sinhl.c: Likewise.
72241         * math/e_sqrtl.c: Likewise.
72242         * math/e_scalb.c: Completely rewritten and optimized.
72243         * math/e_scalbf.c: Likewise.
72244         * math/e_scalbl.c: Likewise.
72245         * math/w_acos.c: Likewise.
72246         * math/w_acosf.c: Likewise.
72247         * math/w_acosl.c: Likewise.
72248         * math/w_acosh.c: Likewise.
72249         * math/w_acoshf.c: Likewise.
72250         * math/w_acoshl.c: Likewise.
72251         * math/w_asin.c: Likewise.
72252         * math/w_asinf.c: Likewise.
72253         * math/w_asinl.c: Likewise.
72254         * math/w_atan2.c: Likewise.
72255         * math/w_atan2f.c: Likewise.
72256         * math/w_atan2l.c: Likewise.
72257         * math/w_atanh.c: Likewise.
72258         * math/w_atanhf.c: Likewise.
72259         * math/w_atanhl.c: Likewise.
72260         * math/w_exp10.c: Likewise.
72261         * math/w_exp10f.c: Likewise.
72262         * math/w_exp10l.c: Likewise.
72263         * math/w_fmod.c: Likewise.
72264         * math/w_fmodf.c: Likewise.
72265         * math/w_fmodl.c: Likewise.
72266         * math/w_j0.c: Likewise.
72267         * math/w_j0f.c: Likewise.
72268         * math/w_j0l.c: Likewise.
72269         * math/w_j1.c: Likewise.
72270         * math/w_j1f.c: Likewise.
72271         * math/w_j1l.c: Likewise.
72272         * math/w_jn.c: Likewise.
72273         * math/w_jnf.c: Likewise.
72274         * math/w_log.c: Likewise.
72275         * math/w_logf.c: Likewise.
72276         * math/w_logl.c: Likewise.
72277         * math/w_log10.c: Likewise.
72278         * math/w_log10f.c: Likewise.
72279         * math/w_log10l.c: Likewise.
72280         * math/w_log2.c: Likewise.
72281         * math/w_log2f.c: Likewise.
72282         * math/w_log2l.c: Likewise.
72283         * math/w_pow.c: Likewise.
72284         * math/w_powf.c: Likewise.
72285         * math/w_powl.c: Likewise.
72286         * math/w_remainder.c: Likewise.
72287         * math/w_remainderf.c: Likewise.
72288         * math/w_remainderl.c: Likewise.
72289         * math/w_scalb.c: Likewise.
72290         * math/w_scalbf.c: Likewise.
72291         * math/w_scalbl.c: Likewise.
72292         * math/w_sqrt.c: Likewise.
72293         * math/w_sqrtf.c: Likewise.
72294         * math/w_sqrtl.c: Likewise.
72295         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72296         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72297         used.
72298         * math/math_private.h: Declare __kernel_standard_f.
72299         * math/w_cosh.c: Remove cruft and optimize a bit.
72300         * math/w_coshf.c: Likewise.
72301         * math/w_coshl.c: Likewise.
72302         * math/w_exp2.c: Likewise.
72303         * math/w_exp2f.c: Likewise.
72304         * math/w_exp2l.c: Likewise.
72305         * math/w_hypot.c: Likewise.
72306         * math/w_hypotf.c: Likewise.
72307         * math/w_hypotl.c: Likewise.
72308         * math/w_lgamma.c: Likewise.
72309         * math/w_lgamma_r.c: Likewise.
72310         * math/w_lgammaf.c: Likewise.
72311         * math/w_lgammaf_r.c: Likewise.
72312         * math/w_lgammal.c: Likewise.
72313         * math/w_lgammal_r.c: Likewise.
72314         * math/w_sinh.c: Likewise.
72315         * math/w_sinhf.c: Likewise.
72316         * math/w_sinhl.c: Likewise.
72317         * math/w_tgamma.c: Likewise.
72318         * math/w_tgammaf.c: Likewise.
72319         * math/w_tgammal.c: Likewise.
72320         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72321         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72322         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72323         Minor optimizations.  Pretty printing.  Remove cruft.
72324         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72325         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72326         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72327         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72328         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72329         * sysdeps/i386/fpu/e_asin.S: Likewise.
72330         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72331         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72332         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72333         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72334         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72335         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72336         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72337         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72338         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72339         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72340         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72341         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72342         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72343         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72344         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72345         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72346         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72347         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72348         * sysdeps/i386/fpu/e_log.S: Likewise.
72349         * sysdeps/i386/fpu/e_log10.S: Likewise.
72350         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72351         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72352         * sysdeps/i386/fpu/e_log2.S: Likewise.
72353         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72354         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72355         * sysdeps/i386/fpu/e_logf.S: Likewise.
72356         * sysdeps/i386/fpu/e_logl.S: Likewise.
72357         * sysdeps/i386/fpu/e_pow.S: Likewise.
72358         * sysdeps/i386/fpu/e_powf.S: Likewise.
72359         * sysdeps/i386/fpu/e_powl.S: Likewise.
72360         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72361         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72362         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72363         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72364         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72365         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72366         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72367         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72368         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72369         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72370         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72371         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72372         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72373         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72374         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72375         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72376         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72377         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72378         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72379         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72380         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72381         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72382         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72383         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72384         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72385         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72386         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72387         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72388         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72389         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72390         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72391         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72392         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72393         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72394         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72395         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72396         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72397         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72398         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72399         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72400         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72401         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72402         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72403         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72404         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72405         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72406         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72407         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72408         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72409         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72410         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72411         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72412         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72413         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72414         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72415         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72416         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72417         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72418         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72419         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72420         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72421         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72422         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72423         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72424         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72425         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72426         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72427         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72428         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72429         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72430         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72431         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72432         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72433         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72434         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72435         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72436         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72437         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72438         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72439         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72440         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72441         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72442         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72443         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72444         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72445         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72446         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72447         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72448         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72449         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72450         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72451         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72452         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72453         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72454         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72455         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72456         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72457         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72458         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72459         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72460         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72461         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72462         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72463         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72464         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72465         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72466         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72467         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72468         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72469         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72470         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72471         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72472         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72473         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72474         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72475         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72476         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72477         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72478         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72479         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72480         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72481         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72482         (__isnanf): Likewise.
72483         (__isinf_ns): Likewise.
72484         (__isinf_nsf): Likewise.
72485         (__finite): Likewise.
72486         (__finitef): Likewise.
72487         (__ieee754_sqrt): Define as macro.
72488         (__ieee754_sqrtf): Define as macro.
72489         (__ieee754_sqrtl): Define as macro.
72490         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72491         inlined copy.
72492         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72493         __FINITE_MATH_ONLY__ consistent.
72494         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72495
72496 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72497
72498         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72499         of rawmemchr.
72500
72501         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72502
72503 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72504
72505         * po/ja.po: Update from translation team.
72506
72507 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72508
72509         * locale/programs/locarchive.c (prepare_address_space): New function.
72510         (create_archive, enlarge_archive, open_archive): Use it.
72511
72512         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72513         inside [SHARED], where it is used.
72514
72515         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72516
72517         * nss/getent.c (netgroup_keys): Remove unused variable.
72518         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72519
72520 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72521
72522         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72523         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72524         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72525         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72526         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72527         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72528         * math/Makefile (libm-calls): Add s_isinf_ns.
72529         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72530         * math/multc3.c: Likewise.
72531         * math/s_casin.c: Likewise.
72532         * math/s_casinf.c: Likewise.
72533         * math/s_casinl.c: Likewise.
72534         * math/s_ccos.c: Likewise.
72535         * math/s_ccosf.c: Likewise.
72536         * math/s_ccosl.c: Likewise.
72537         * math/s_ctan.c: Likewise.
72538         * math/s_ctanf.c: Likewise.
72539         * math/s_ctanh.c: Likewise.
72540         * math/s_ctanhf.c: Likewise.
72541         * math/s_ctanhl.c: Likewise.
72542         * math/s_ctanl.c: Likewise.
72543         * math/w_fmod.c: Likewise.
72544         * math/w_fmodf.c: Likewise.
72545         * math/w_fmodl.c: Likewise.
72546         * math/w_remainder.c: Likewise.
72547         * math/w_remainderf.c: Likewise.
72548         * math/w_remainderl.c: Likewise.
72549         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72550         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72551         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72552         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72553         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72554         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72555         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72556         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72557
72558         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72559         of the number.
72560         * stdio-common/printf_fphex.c: Likewise.
72561         * stdio-common/printf_size.c: Likewise.
72562
72563         * math/e_exp10.c: Include math_private.h using <...> not "...".
72564         * math/e_exp10f.c: Likewise.
72565         * math/e_exp10l.c: Likewise.
72566         * math/e_exp2l.c: Likewise.
72567         * math/e_j0l.c: Likewise.
72568         * math/e_j1l.c: Likewise.
72569         * math/e_jnl.c: Likewise.
72570         * math/e_lgammal_r.c: Likewise.
72571         * math/e_rem_pio2l.c: Likewise.
72572         * math/e_scalb.c: Likewise.
72573         * math/e_scalbf.c: Likewise.
72574         * math/e_scalbl.c: Likewise.
72575         * math/k_cosl.c: Likewise.
72576         * math/k_sinl.c: Likewise.
72577         * math/k_tanl.c: Likewise.
72578         * math/s_cacoshf.c: Likewise.
72579         * math/s_catan.c: Likewise.
72580         * math/s_catanf.c: Likewise.
72581         * math/s_catanh.c: Likewise.
72582         * math/s_catanhf.c: Likewise.
72583         * math/s_catanhl.c: Likewise.
72584         * math/s_catanl.c: Likewise.
72585         * math/s_ccosh.c: Likewise.
72586         * math/s_ccoshf.c: Likewise.
72587         * math/s_ccoshl.c: Likewise.
72588         * math/s_cexp.c: Likewise.
72589         * math/s_cexpf.c: Likewise.
72590         * math/s_cexpl.c: Likewise.
72591         * math/s_clog.c: Likewise.
72592         * math/s_clog10.c: Likewise.
72593         * math/s_clog10f.c: Likewise.
72594         * math/s_clog10l.c: Likewise.
72595         * math/s_clogf.c: Likewise.
72596         * math/s_clogl.c: Likewise.
72597         * math/s_csin.c: Likewise.
72598         * math/s_csinf.c: Likewise.
72599         * math/s_csinh.c: Likewise.
72600         * math/s_csinhf.c: Likewise.
72601         * math/s_csinhl.c: Likewise.
72602         * math/s_csinl.c: Likewise.
72603         * math/s_csqrt.c: Likewise.
72604         * math/s_csqrtf.c: Likewise.
72605         * math/s_csqrtl.c: Likewise.
72606         * math/s_ctan.c: Likewise.
72607         * math/s_ctanf.c: Likewise.
72608         * math/s_ctanh.c: Likewise.
72609         * math/s_ctanhf.c: Likewise.
72610         * math/s_ctanhl.c: Likewise.
72611         * math/s_ctanl.c: Likewise.
72612         * math/s_ldexp.c: Likewise.
72613         * math/s_ldexpf.c: Likewise.
72614         * math/s_ldexpl.c: Likewise.
72615         * math/s_significand.c: Likewise.
72616         * math/s_significandf.c: Likewise.
72617         * math/s_significandl.c: Likewise.
72618         * math/w_acos.c: Likewise.
72619         * math/w_acosf.c: Likewise.
72620         * math/w_acosh.c: Likewise.
72621         * math/w_acoshf.c: Likewise.
72622         * math/w_acoshl.c: Likewise.
72623         * math/w_acosl.c: Likewise.
72624         * math/w_asin.c: Likewise.
72625         * math/w_asinf.c: Likewise.
72626         * math/w_asinl.c: Likewise.
72627         * math/w_atan2.c: Likewise.
72628         * math/w_atan2f.c: Likewise.
72629         * math/w_atan2l.c: Likewise.
72630         * math/w_atanh.c: Likewise.
72631         * math/w_atanhf.c: Likewise.
72632         * math/w_atanhl.c: Likewise.
72633         * math/w_cosh.c: Likewise.
72634         * math/w_coshf.c: Likewise.
72635         * math/w_coshl.c: Likewise.
72636         * math/w_dremf.c: Likewise.
72637         * math/w_exp10.c: Likewise.
72638         * math/w_exp10f.c: Likewise.
72639         * math/w_exp10l.c: Likewise.
72640         * math/w_exp2.c: Likewise.
72641         * math/w_exp2f.c: Likewise.
72642         * math/w_fmod.c: Likewise.
72643         * math/w_fmodf.c: Likewise.
72644         * math/w_fmodl.c: Likewise.
72645         * math/w_hypot.c: Likewise.
72646         * math/w_hypotf.c: Likewise.
72647         * math/w_hypotl.c: Likewise.
72648         * math/w_j0.c: Likewise.
72649         * math/w_j0f.c: Likewise.
72650         * math/w_j0l.c: Likewise.
72651         * math/w_j1.c: Likewise.
72652         * math/w_j1f.c: Likewise.
72653         * math/w_j1l.c: Likewise.
72654         * math/w_jn.c: Likewise.
72655         * math/w_jnf.c: Likewise.
72656         * math/w_jnl.c: Likewise.
72657         * math/w_lgamma.c: Likewise.
72658         * math/w_lgamma_r.c: Likewise.
72659         * math/w_lgammaf.c: Likewise.
72660         * math/w_lgammaf_r.c: Likewise.
72661         * math/w_lgammal.c: Likewise.
72662         * math/w_lgammal_r.c: Likewise.
72663         * math/w_log.c: Likewise.
72664         * math/w_log10.c: Likewise.
72665         * math/w_log10f.c: Likewise.
72666         * math/w_log10l.c: Likewise.
72667         * math/w_log2.c: Likewise.
72668         * math/w_log2f.c: Likewise.
72669         * math/w_log2l.c: Likewise.
72670         * math/w_logf.c: Likewise.
72671         * math/w_logl.c: Likewise.
72672         * math/w_pow.c: Likewise.
72673         * math/w_powf.c: Likewise.
72674         * math/w_powl.c: Likewise.
72675         * math/w_remainder.c: Likewise.
72676         * math/w_remainderf.c: Likewise.
72677         * math/w_remainderl.c: Likewise.
72678         * math/w_scalb.c: Likewise.
72679         * math/w_scalbf.c: Likewise.
72680         * math/w_scalbl.c: Likewise.
72681         * math/w_sinh.c: Likewise.
72682         * math/w_sinhf.c: Likewise.
72683         * math/w_sinhl.c: Likewise.
72684         * math/w_sqrt.c: Likewise.
72685         * math/w_sqrtf.c: Likewise.
72686         * math/w_sqrtl.c: Likewise.
72687         * math/w_tgamma.c: Likewise.
72688         * math/w_tgammaf.c: Likewise.
72689         * math/w_tgammal.c: Likewise.
72690
72691         * po/ja.po: Update from translation team.
72692
72693 2011-09-29  Andreas Jaeger  <aj@suse.de>
72694
72695         [BZ #13179]
72696         * sunrpc/netname.c (netname2host): Fix logic.
72697
72698         [BZ #6779]
72699         [BZ #6783]
72700         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72701         correctly.
72702         * math/w_remainder.c (__remainder): Likewise.
72703         * math/w_remainderf.c (__remainderf): Likewise.
72704         * math/libm-test.inc (remainder_test): Add test cases.
72705
72706 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72707
72708         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72709         sdiv_qrnnd.
72710
72711 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72712
72713         * string/test-memcmp.c: Avoid unncessary #defines.
72714         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72715
72716 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72717
72718         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72719         Use new sse2 version for core i3 - i7 as it's faster
72720         than sse42 version.
72721         (bit_Prefer_PMINUB_for_stringop): New.
72722         * sysdeps/x86_64/rawmemchr.S: Update.
72723         Replace with faster SSE2 version.
72724         * sysdeps/x86_64/memrchr.S: New file.
72725         * sysdeps/x86_64/memchr.S: Update.
72726         Replace with faster SSE2 version.
72727
72728 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72729
72730         * elf/dl-load.c (lose): Add cast to avoid warning.
72731
72732 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72733
72734         * po/ca.po: Update from translation team.
72735
72736         * inet/getnetgrent_r.c: Hook up nscd.
72737         * nscd/Makefile (routines): Add nscd_netgroup.
72738         (nscd-modules): Add netgroupcache.
72739         (CFLAGS-netgroupcache.c): Define.
72740         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72741         (cache_search): Add const to second parameter.
72742         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72743         INNETGR.
72744         (dbs): Add netgrdb entry.
72745         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72746         (verify_persistent_db): Handle netgrdb.
72747         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72748         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72749         GETFDNETGR.
72750         (netgroup_response_header): Define.
72751         (innetgroup_response_header): Define.
72752         (datahead): Add netgroup_response_header and innetgroup_response_header
72753         elements.
72754         * nscd/nscd.conf: Add entries for netgroup cache.
72755         * nscd/nscd.h (dbtype): Add netgrdb.
72756         (_PATH_NSCD_NETGROUP_DB): Define.
72757         (netgroup_iov_disabled): Declare.
72758         (xmalloc, xcalloc, xrealloc): Move declarations here.
72759         (cache_search): Adjust prototype.
72760         Add netgroup-related prototypes.
72761         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72762         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72763         (__nscd_innetgr): Declare.
72764         * nscd/selinux.c (perms): Use access_vector_t as element type and
72765         add netgroup-related initializers.
72766         * nscd/netgroupcache.c: New file.
72767         * nscd/nscd_netgroup.c: New file.
72768         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72769         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72770         For four parameters use innetgr.
72771         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72772         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72773         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72774         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72775
72776         * nscd/connections.c (register_traced_file): Don't register file
72777         for disabled databases.
72778
72779 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72780
72781         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72782
72783         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72784         from tree and freeing node.
72785
72786 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72787
72788         * nss/nsswitch.c (__nss_database_lookup): Handle
72789         nss_parse_service_list out of memory case.
72790
72791 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72792
72793         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72794         out of memory case.
72795
72796 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72797
72798         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72799         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72800         pass it down.
72801         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72802         elf_machine_rela, elf_machine_lazy_rel.
72803         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72804         (ELF_DYNAMIC_DO_REL): Likewise.
72805         (ELF_DYNAMIC_DO_RELA): Likewise.
72806         (ELF_DYNAMIC_RELOCATE): Likewise.
72807         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72808         to ELF_DYNAMIC_DO_REL.
72809         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72810         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72811         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72812         elf_machine_rela.
72813         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72814         skip_ifunc, don't call ifunc function if non-zero.
72815         (elf_machine_rela): Likewise.
72816         (elf_machine_lazy_rel): Likewise.
72817         (elf_machine_lazy_rela): Likewise.
72818         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72819         (elf_machine_lazy_rel): Likewise.
72820         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72821         Likewise.
72822         (elf_machine_lazy_rel): Likewise.
72823         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72824         Likewise.
72825         (elf_machine_lazy_rel): Likewise.
72826         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72827         (elf_machine_lazy_rel): Likewise.
72828         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72829         (elf_machine_lazy_rel): Likewise.
72830         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72831         (elf_machine_lazy_rel): Likewise.
72832         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72833         (elf_machine_lazy_rel): Likewise.
72834         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72835         (elf_machine_lazy_rel): Likewise.
72836         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72837         (elf_machine_lazy_rel): Likewise.
72838
72839 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72840
72841         * nss/nss_files/files-init.c (_nss_files_init): Use static
72842         initialization for all the *_traced_file variables.
72843
72844 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72845
72846         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72847
72848 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72849
72850         [BZ #13226]
72851         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72852
72853 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72854
72855         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72856         Reread the line before reparsing it.
72857
72858 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72859
72860         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72861
72862 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72863             Maxim Kuvyrkov  <maxim@codesourcery.com>
72864             Joseph Myers  <joseph@codesourcery.com>
72865
72866         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72867         if needed for __stack_chk_guard.
72868
72869 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72870
72871         * sysdeps/posix/spawni.c (script_execute): Always define it.
72872         It will be optimized away if unused.
72873         (maybe_script_execute): New function.
72874         (__spawni): Call it.
72875
72876         * Makerules: Don't include tls.make.
72877         (config-tls): Always set to thread.
72878         * tls.make.c: File removed.
72879
72880 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72881
72882         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72883         * config.make.in (CPPFLAGS-config): New substituted variable.
72884
72885 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72886
72887         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72888
72889         [BZ #13192]
72890         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72891         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72892
72893 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72894
72895         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72896         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72897         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72898         (CALL_FAIL): Likewise.
72899         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72900         (CALL_FAIL): Macro removed.
72901         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72902
72903 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72904
72905         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72906         for __FINITE_MATH_ONLY__ == 1.
72907
72908 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72909
72910         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72911         __ieee754_sqrt instead of sqrt.
72912         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72913         __ieee754_sqrtf instead of sqrtf.
72914         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72915         __floorf instead of floorf.
72916         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72917         __floorf, __truncf instead of floorf, truncf.
72918
72919 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72920
72921         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72922
72923         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72924         __extern_always_inline.
72925         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72926         32-bit.
72927
72928 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72929
72930         * elf/rtld.c (dl_main): Also relocate in dependency order when
72931         doing symbol dependency testing.
72932
72933 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72934
72935         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72936         Always define `refsym'.
72937
72938 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72939
72940         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72941         (__FD_ELT): Renamed from __FDELT.
72942         * misc/bits/select2.h (__FD_ELT): Likewise.
72943         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72944         __FD_MASK instead of __FDELT, __FDMASK.
72945         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72946         Likewise.
72947         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72948         Likewise.
72949
72950         * elf/Makefile (gen-ldd): Fix pattern.
72951
72952         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72953         (init_tls): Likewise.
72954
72955 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72956
72957         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72958
72959 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72960
72961         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72962         `struct cmsghdr *' instead of `void *'.
72963         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72964         Likewise.
72965
72966 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72967
72968         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72969         if non-absolute.
72970         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72971         ldd_rewrite_script.
72972
72973 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72974
72975         * configure.in: Remove --with-tls option.
72976         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72977         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72978         out in case it is missing.
72979         * sysdeps/ia64/elf/configure.in: Likewise.
72980         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72981         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72982         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72983         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72984         * sysdeps/sh/elf/configure.in: Likewise.
72985         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72986         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72987         * sysdeps/x86_64/elf/configure.in: Likewise.
72988         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72989         * sysdeps/mach/hurd/tls.h: Likewise.
72990
72991         [BZ #13067]
72992         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72993
72994         [BZ #13090]
72995         * configure.in: Fix use of AC_INIT.
72996
72997         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72998
72999 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
73000
73001         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
73002         __set_errno.
73003         * malloc/hooks.c: Likewise.
73004
73005         [BZ #11929]
73006         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
73007         variables statically.
73008         (narenas): Initialize.
73009         (list_lock): Initialize.
73010         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
73011         initializtion of main_arena and list_lock.  Small cleanups.
73012         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
73013         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
73014         Add initializers to main_arena and mp_.
73015         (malloc_state): Remove pagesize member.  Change all users to use
73016         GLRO(dl_pagesize).
73017
73018         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
73019         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
73020         is always initialized.
73021
73022         * malloc/malloc.c: Removed unused configurations and dead code.
73023         * malloc/arena.c: Likewise.
73024         * malloc/hooks.c: Likewise.
73025         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
73026
73027         * include/tls.h: Removed.  USE___THREAD must always be defined.
73028         * bits/libc-tsd.h: Don't handle !USE___THREAD.
73029         * elf/dl-libc.c: Likewise.
73030         * elf/dl-tsd.c: Likewise.
73031         * include/errno.h: Likewise.
73032         * include/netdb.h: Likewise.
73033         * include/resolv.h: Likewise.
73034         * inet/herrno-loc.c: Likewise.
73035         * inet/herrno.c: Likewise.
73036         * malloc/arena.c: Likewise.
73037         * malloc/hooks.c: Likewise.
73038         * malloc/malloc.c: Likewise.
73039         * resolv/res-state.c: Likewise.
73040         * resolv/res_libc.c: Likewise.
73041         * sysdeps/i386/dl-machine.h: Likewise.
73042         * sysdeps/ia64/dl-machine.h: Likewise.
73043         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
73044         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
73045         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
73046         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
73047         * sysdeps/sh/dl-machine.h: Likewise.
73048         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
73049         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
73050         * sysdeps/unix/i386/sysdep.S: Likewise.
73051         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
73052         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
73053         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
73054         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
73055         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
73056         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
73057         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
73058         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
73059         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
73060         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
73061         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73062         * sysdeps/x86_64/dl-machine.h: Likewise.
73063         * tls.make.c: Likewise.
73064
73065         * configure.in: Remove --with-__thread option.  Make tests for
73066         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
73067         tls_model attribute fail if no support is available.  Remove
73068         USE_IN_LIBIO.
73069         * Makeconfig: Adjust for dropped configure option.  All features are
73070         now mandatory.
73071         * Makerules: Likewise.
73072         * Versions.def: Likewise.
73073         * argp/argp-fmtstream.c: Likewise.
73074         * argp/argp-fmtstream.h: Likewise.
73075         * argp/argp-help.c: Likewise.
73076         * assert/assert.c: Likewise.
73077         * config.h.in: Likewise.
73078         * config.make.in: Likewise.
73079         * configure: Likewise.
73080         * configure.in: Likewise.
73081         * csu/Versions: Likewise.
73082         * csu/init.c: Likewise.
73083         * elf/tst-audit2.c: Likewise.
73084         * elf/tst-tls10.c: Likewise.
73085         * elf/tst-tls10.h: Likewise.
73086         * elf/tst-tls11.c: Likewise.
73087         * elf/tst-tls12.c: Likewise.
73088         * elf/tst-tls14.c: Likewise.
73089         * elf/tst-tlsmod11.c: Likewise.
73090         * elf/tst-tlsmod12.c: Likewise.
73091         * elf/tst-tlsmod13.c: Likewise.
73092         * elf/tst-tlsmod13a.c: Likewise.
73093         * elf/tst-tlsmod14a.c: Likewise.
73094         * elf/tst-tlsmod15b.c: Likewise.
73095         * elf/tst-tlsmod16a.c: Likewise.
73096         * elf/tst-tlsmod16b.c: Likewise.
73097         * elf/tst-tlsmod7.c: Likewise.
73098         * elf/tst-tlsmod8.c: Likewise.
73099         * elf/tst-tlsmod9.c: Likewise.
73100         * gmon/gmon.c: Likewise.
73101         * grp/fgetgrent_r.c: Likewise.
73102         * grp/putgrent.c: Likewise.
73103         * hurd/fopenport.c: Likewise.
73104         * include/libc-symbols.h: Likewise.
73105         * include/tls.h: Likewise.
73106         * intl/gettextP.h: Likewise.
73107         * intl/loadinfo.h: Likewise.
73108         * locale/global-locale.c: Likewise.
73109         * locale/localeinfo.h: Likewise.
73110         * mach/devstream.c: Likewise.
73111         * malloc/arena.c: Likewise.
73112         * malloc/set-freeres.c: Likewise.
73113         * misc/err.c: Likewise.
73114         * misc/getttyent.c: Likewise.
73115         * misc/mntent_r.c: Likewise.
73116         * posix/getopt.c: Likewise.
73117         * posix/wordexp.c: Likewise.
73118         * pwd/fgetpwent_r.c: Likewise.
73119         * resolv/Versions: Likewise.
73120         * resolv/res_hconf.c: Likewise.
73121         * shadow/fgetspent_r.c: Likewise.
73122         * shadow/putspent.c: Likewise.
73123         * stdio-common/printf_fphex.c: Likewise.
73124         * stdio-common/tmpfile.c: Likewise.
73125         * stdlib/abort.c: Likewise.
73126         * stdlib/fmtmsg.c: Likewise.
73127         * sunrpc/auth_unix.c: Likewise.
73128         * sunrpc/clnt_perr.c: Likewise.
73129         * sunrpc/clnt_tcp.c: Likewise.
73130         * sunrpc/clnt_udp.c: Likewise.
73131         * sunrpc/clnt_unix.c: Likewise.
73132         * sunrpc/openchild.c: Likewise.
73133         * sunrpc/svc_simple.c: Likewise.
73134         * sunrpc/svc_tcp.c: Likewise.
73135         * sunrpc/svc_udp.c: Likewise.
73136         * sunrpc/svc_unix.c: Likewise.
73137         * sunrpc/xdr.c: Likewise.
73138         * sunrpc/xdr_array.c: Likewise.
73139         * sunrpc/xdr_rec.c: Likewise.
73140         * sunrpc/xdr_ref.c: Likewise.
73141         * sunrpc/xdr_stdio.c: Likewise.
73142
73143 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73144
73145         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73146
73147 2011-07-03  Andreas Jaeger  <aj@suse.de>
73148
73149         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73150         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73151         regenerate with gen-libm-tests.pl.
73152
73153 2010-05-12  Petr Baudis  <pasky@suse.cz>
73154
73155         [BZ #11589]
73156         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73157         around j0() zero points by switching to j1().
73158         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73159         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73160         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73161         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73162
73163 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73164
73165         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73166         instead of 0.
73167         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73168         instead of 0.
73169         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73170         Patch in part by Pavel Roskin <proski@gnu.org>.
73171
73172         [BZ #13138]
73173         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73174         realloc.
73175         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73176         Free memory block if necessary.
73177
73178         [BZ #12847]
73179         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73180         be NULL.  Don't lock in this case.
73181
73182 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73183
73184         * elf/elf.h (ELFOSABI_GNU): New macro.
73185         (ELFOSABI_LINUX): Define to that.
73186
73187 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73188
73189         * string/strncat.c (strncat): Undef the symbol in case it has been
73190         defined in bits/string.h.
73191
73192 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73193
73194         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73195
73196         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73197         link map.
73198
73199 2011-08-17  Andreas Jaeger  <aj@suse.de>
73200
73201         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73202
73203 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73204             Ian Lance Taylor  <iant@google.com>
73205
73206         * math/libm-test.inc (lround_test): New testcase.
73207         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73208
73209 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73210
73211         * Makefile: Remove support for automatic cvs check-ins.
73212         * Makerules: Likewise.
73213         * config.make.in: Likewise.
73214         * configure.in: Likewise.
73215         * intl/Makefile: Likewise.
73216         * locale/Makefile: Likewise.
73217         * po/Makefile: Likewise.
73218         * posix/Makefile: Likewise.
73219         * sysdeps/gnu/Makefile: Likewise.
73220         * sysdeps/mach/hurd/Makefile: Likewise.
73221         * sysdeps/sparc/sparc32/Makefile: Likewise.
73222
73223         [BZ #13118]
73224         * posix/Makefile (bug-regex32-ENV): Define.
73225         Patch by John Stanley <jpsinthemix@verizon.net>.
73226
73227         * misc/Makefile (headers): Add bits/select2.h.
73228         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73229         * misc/bits/select2.h: New file.
73230         * include/bits/select2.h: New file.
73231         * debug/Makefile (routines): Add fdelt_chk.
73232         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73233         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73234         FD_ISSET.
73235         * debug/fdelt_chk.c: New file.
73236
73237         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73238         * wcsmbs/test-wmemcmp.c: Likewise.
73239         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73240         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73241
73242 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73243
73244         * string/Makefile (strop-tests): Add memcmp.
73245         * string/test-wmemcmp.c: New file.
73246         * string/test-memcmp.c: Add wmemcmp support.
73247
73248 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73249
73250         [BZ #13153]
73251         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73252         2011-07-19 change.
73253
73254         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73255         garbage value in a __mach_port_mod_refs call in the cases of the
73256         task-self and thread-self ports.
73257
73258 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73259
73260         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73261
73262 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73263
73264         * elf/dl-load.c (lose): Check for non-null L.
73265
73266 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73267
73268         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73269
73270         * elf/dl-libc.c (dlerror_run): Pass back error code from
73271         dl_catch_error.
73272
73273         [BZ #13123]
73274         * elf/dl-load.c (lose): Free l_origin if it is valid.
73275
73276         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73277         names.
73278         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73279         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73280         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73281         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73282         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73283         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73284
73285 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73286
73287         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73288         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73289         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73290         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73291         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73292         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73293         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73294         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73295         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73296         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73297
73298 2011-08-15  Alan Modra  <amodra@gmail.com>
73299
73300         [BZ #13092]
73301         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73302         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73303         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73304         ppc_mcount to static-only-routines.
73305         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73306         __mcount_internal.
73307         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73308         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73309
73310 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73311
73312         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73313         for finite and infinity parameters.
73314
73315 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73316
73317         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73318         and add nop instructions for throughput optimization.
73319         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73320
73321 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73322
73323         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73324         aligned copy for power7 with vector-scalar instructions.
73325         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73326
73327 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73328
73329         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73330         AVX check.
73331
73332 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73333
73334         [BZ #13144]
73335         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73336         last change.
73337
73338 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73339
73340         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73341         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73342         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73343         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73344         clock_gettime.
73345
73346 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73347
73348         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73349         Forgot to demangle the pointer.
73350
73351         * sysdeps/i386/sysdep.h: Define atom_text_section.
73352         * sysdeps/x86_64/sysdep.h: Likewise.
73353         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73354         section with atom_text_section.
73355         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73356         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73357         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73358         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73359         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73360
73361         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73362         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73363         already be defined.  Change to take two parameters and don't assign
73364         result to variable.  Adjust all users.
73365         Define INTERNAL_GETTIME if not already defined.
73366         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73367         call.
73368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73369         HAVE_CLOCK_GETTIME_VSYSCALL.
73370         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73371
73372         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73373         gettimeofday vsyscall, just use time.
73374
73375 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73376
73377         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73378         <errno.h>.
73379
73380 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73381
73382         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73383         syscall on x86-64.
73384         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73385         syscall.
73386         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73387         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73388         syscall if possible.
73389
73390 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73391
73392         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73393         e_ident.  Don't pass to find_mapsXX.
73394         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73395
73396 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73397
73398         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73399         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73400         * sysdeps/x86_64/multiarch/strchr.S: Update.
73401         Check bit_slow_BSF bit.
73402         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73403         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73404         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73405
73406 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73407
73408         [BZ #13134]
73409         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73410         before glibc 2.15.
73411         (tryshell): Define.
73412         (__spawni): Change last parameter to be flag.  Test
73413         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73414         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73415         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73416         * posix/spawni.c: Likewise.
73417         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73418         * posix/spawnp.c: Likewise.  Change normal version to use
73419         SPAWN_XFLAGS_USE_PATH.
73420         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73421         SPAWN_XFLAGS_TRY_SHELL.
73422
73423         [BZ #13150]
73424         * posix/glob.h: Remove gcc 1.x support.
73425
73426         [BZ #13068]
73427         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73428
73429 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73430
73431         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73432         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73433         strrchr-sse2-bsf
73434         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73435         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73436         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73437         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73438         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73439         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73440
73441 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73442
73443         * sysdeps/x86_64/wcscmp.S: New file.
73444
73445         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73446         wcscmp-c wcscmp-sse2
73447         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73448         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73449         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73450         * wcsmbs/wcscmp.c: Allow renaming.
73451
73452 2011-09-05  David S. Miller  <davem@davemloft.net>
73453
73454         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73455         stack slot, rather than the struct return pointer slot.
73456         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73457         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73459         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73460
73461 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73462
73463         * po/ja.po: Update from translation team.
73464
73465         [BZ #13144]
73466         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73467         kernel in 64-bit binaries.
73468
73469 2011-09-01  David S. Miller  <davem@davemloft.net>
73470
73471         * elf/elf.h (HWCAP_SPARC_*): Move to..
73472         * sysdeps/sparc/sysdep.h: this new file and add new values.
73473         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73474         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73475         _DL_HWCAP_COUNT to 24.
73476         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73477         entries.
73478         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73479         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73480         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73481         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73482         instead of magic constants.
73483         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73484
73485 2011-08-31  David S. Miller  <davem@davemloft.net>
73486
73487         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73488         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73489         Reimplement to do errno handling inline.
73490         (SYSCALL_ERROR_HANDLER): New macro.
73491         (__SYSCALL_STRING): Do not do errno handling in asm.
73492         (__CLONE_SYSCALL_STRING): Delete.
73493         (__INTERNAL_SYSCALL_STRING): Delete.
73494         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73495         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73496         (PSEUDO): Reimplement to do errno handling inline.
73497         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73498         (SYSCALL_ERROR_HANDLER): New macro.
73499         (__SYSCALL_STRING): Do not do errno handling in asm.
73500         (__CLONE_SYSCALL_STRING): Delete.
73501         (__INTERNAL_SYSCALL_STRING): Delete.
73502         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73503         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73504         i386.
73505         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73506         (inline_syscall*): Add 'err' argument.
73507         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73508         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73509         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73510         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73511
73512         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73513         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73514
73515 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73516
73517         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73518
73519 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73520
73521         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73522         directive.
73523
73524 2011-08-24  David S. Miller  <davem@davemloft.net>
73525
73526         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73527
73528 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73529
73530         * elf/Makefile: Add rules to build and run unload8 test.
73531         * elf/unload8.c: New file.
73532         * elf/unload8mod1.c: New file.
73533         * elf/unload8mod1x.c: New file.
73534         * elf/unload8mod2.c: New file.
73535         * elf/unload8mod3.c: New file.
73536
73537         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73538         it wasn't used.
73539
73540 2011-08-23  David S. Miller  <davem@davemloft.net>
73541
73542         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73543         subtract stack bias.
73544         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73545         %sp not %fp in calculations.
73546         (_JMPBUF_UNWINDS_ADJ): Likewise.
73547
73548         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73549         (aio_suspend): Call it to force an exception region around the
73550         AIO_MISC_WAIT() invocation.
73551
73552 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73553
73554         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73555         backslash.
73556
73557 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73558
73559         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73560         protection macro.
73561         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73562         and <dl-machine.h>.
73563         (Elf64_FuncDesc): Remove.
73564
73565 2011-08-22  David S. Miller  <davem@davemloft.net>
73566
73567         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73568         sigaltstack check, add missing cfi directives.
73569         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73570         missing cfi directives, and sigaltstack handling.
73571
73572 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73573
73574         [BZ #11724]
73575         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73576         object is seen twice.
73577         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73578
73579         * elf/Makefile (distribute): Add tst-initorder2.c.
73580         (tests): Add tst-initorder2.
73581         (modules-names): Add tst-initorder2a tst-initorder2b
73582         tst-initorder2c tst-initorder2d.  Add rules to build them.
73583         ($(objpfx)tst-initorder2.out): New rule.
73584         * elf/tst-initorder2.c: New file.
73585         * elf/tst-initorder2.exp: New file.
73586
73587 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73588
73589         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73590
73591         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73592         dependencies back to end of function.
73593
73594         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73595         $(elfobjdir)/ld.so.
73596
73597 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73598
73599         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73600         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73601         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73602         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73603         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73604         of __vdso_gettimeofday.
73605         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73606         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73607         attribute_hidden.
73608         (_libc_vdso_platform_setup): Remove initialization of
73609         __vdso_gettimeofday and __vdso_time.
73610
73611 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73612
73613         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73614         and fgetc_unlocked.
73615         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73616         getc_unlocked.
73617
73618         * elf/dl-open.c (add_to_global): Report additions to the global scope
73619         for LD_DEBUG=scopes.
73620         (dl_open_worker): Also print scope of newly loaded dependencies.
73621         (_dl_show_scope): Indicate if there is no scope.
73622
73623         [BZ #13114]
73624         * stdio-common/Makefile (tests): Add bug24.
73625         * stdio-common/bug24.c: New file.
73626
73627 2011-08-19  Andreas Jaeger  <aj@suse.de>
73628
73629         [BZ #13114]
73630         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73631         non-existant file when using close-on-exec mode.
73632
73633 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73634
73635         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73636         the very first instruction.
73637
73638         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73639         the CFI state in the end.
73640         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73641         inclusion of dl-trampoline.h.
73642         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73643
73644 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73645
73646         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73647         expectations for long double.
73648
73649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73650         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73651
73652 2011-08-14  David S. Miller  <davem@davemloft.net>
73653
73654         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73655         artificual limit depends upon the system page size.
73656
73657 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73658
73659         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73660         * resolv/Makefile: Define CFLAGS-libresolv.
73661
73662 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73663
73664         * nss/makedb.c (compute_tables): Make variables used in nested
73665         function static.
73666
73667 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73668
73669         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73670         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73671         if buffer was too small.
73672
73673         * elf/pldd.c (main): Attach to all threads in the process.
73674         Rewrite /proc handling to use *at functions.
73675
73676 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73677
73678         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73679         specifies first scope to show.
73680         (dl_open_worker): Update callers.  Move printing scope of new
73681         object to before the relocation.
73682         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73683         * sysdeps/generic/ldsodefs.h: Update declaration.
73684
73685         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73686         string for the scope number.
73687
73688 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73689
73690         * nscd/servicescache.c (cache_addserv): Make sure written is always
73691         initialized.
73692
73693 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73694
73695         * sysdeps/i386/i486/bits/atomic.h
73696         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73697         statement expression, so as to suppress "set but not used" warning.
73698         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73699
73700         * string/strncat.c (STRNCAT): Use prototype definition.
73701
73702         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73703         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73704         -Iprograms here.
73705         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73706         (localedef-modules): Add localedef.
73707         (locale-modules): Add locale.
73708
73709         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73710         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73711         to avoid a warning.
73712
73713 2011-08-14  David S. Miller  <davem@davemloft.net>
73714
73715         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73716         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73717
73718 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73719
73720         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73721         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73722         * elf/rtld.c (dl_main): Set l_name of vDSO.
73723         Call _dl_show_scope when DL_DEBUG_SCOPES.
73724         (process_dl_debug): Recognize scopes flag and also set it for all.
73725         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73726         Declare _dl_show_scope.
73727
73728         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73729         (do_dlopen): Pass caller_dlopen to dl_open.
73730         (__libc_dlopen_mode): Initialize caller_dlopen.
73731
73732         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73733         of libc.  Make tolower call locale-independent.  Optimize a bit by
73734         using isdigit instead of isalnum.
73735         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73736
73737 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73738
73739         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73740         was a dependency or dynamically loaded.
73741
73742 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73743
73744         * intl/l10nflist.c: Allow architecture-specific pop function.
73745         * sysdeps/x86_64/l10nflist.c: New file.
73746
73747         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73748         classification.
73749
73750 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73751
73752         * include/dirent.h: Add libc_hidden_proto for scandirat and
73753         scandirat64.  Don't declare __scandirat64.
73754         * dirent/scandirat.c: Add libc_hidden_def.
73755         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73756         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73757
73758 2011-08-10  David S. Miller  <davem@davemloft.net>
73759
73760         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73761         enum.
73762         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73763         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73764         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73765
73766 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73767
73768         * Versions.def [libc]: Add GLIBC_2.15.
73769         * dirent/Makefile (routines): Add scandirat and scandirat64.
73770         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73771         GLIBC_2.15.
73772         * dirent/dirent.h: Declare scandirat and scandirat64.
73773         * dirent/scandirat.c: New file.
73774         * dirent/scandirat64.c: New file.
73775         * sysdeps/wordsize-64/scandirat.c: New file.
73776         * sysdeps/wordsize-64/scandirat64.c: New file.
73777         * dirent/opendir.c: Define opendirat.
73778         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73779         using scandirat.
73780         * dirent/scandir64.c: Adjust for scandir.c change.
73781         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73782         __scandirat64, and __scandir_cancel_handler.
73783         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73784         additional parameter and use openat instead of open (outside of ld.so).
73785         Add new __opendir as wrapper around __opendirat.
73786         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73787         here without requiring old scandirat implementation.
73788
73789 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73790
73791         * dirent/scandir.c (cancel_handler): Renamed to
73792         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73793         defined.  Adjust users.
73794         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73795         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73796
73797 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73798
73799         * string/test-string.h (IMPL): Use __STRING to expand name and then
73800         stringify it.
73801
73802         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73803         of cleanups.
73804
73805 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73806
73807         * string/Makefile: Update.
73808         (strop-tests): Append strncat.
73809         * string/test-wcscmp.c: New file.
73810         New comprehensive test for wcscmp.
73811         * string/test-strcmp.c: Update.
73812         (WIDE): New define.
73813
73814 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73815
73816         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73817         line.
73818
73819 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73820
73821         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73822         encoding to ACE if AI_IDN.
73823
73824 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73825
73826         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73827         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73828
73829 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73830
73831         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73832         Fix overflow bug in strncat.
73833         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73834
73835         * string/test-strncat.c: Update.
73836         Add new tests for checking overflow bugs.
73837
73838 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73839
73840         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73841         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73842         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73843         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73844         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73845         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73846         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73847         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73848         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73849
73850         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73851         (USE_AS_STRCAT): Define.
73852         Add strcat and strncat support.
73853         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73854
73855 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73856
73857         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73858         __n bigger than INT_MAX+1.
73859         (__strncmp_g): Likewise.
73860
73861 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73862
73863         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73864         * libio/stido.h: Likewise.
73865
73866         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73867         (AF_NFC): Define.
73868         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73869         (AF_NFC): Define.
73870
73871         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73872         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73873         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73874         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73875         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73876
73877         [BZ #13021]
73878         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73879         installed.
73880
73881         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73882         typo.
73883         (_dl_x86_64_save_sse): Likewise.
73884
73885 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73886
73887         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73888         OSXSAVE.
73889         (_dl_x86_64_save_sse): Likewise.
73890
73891         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73892
73893         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73894
73895 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73896
73897         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73898         change.
73899         (_dl_x86_64_save_sse): Use correct AVX check.
73900
73901 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73902
73903         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73904         bug in strncpy/strncat.
73905         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73906
73907 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73908
73909         * string/tester.c (test_strcat): Add tests for different alignments
73910         of source and destination.
73911         (test_strncat): Likewise.
73912
73913 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73914
73915         [BZ #12852]
73916         * posix/glob.c (glob): Check passed in values before using them in
73917         expressions to avoid some overflows.
73918         (glob_in_dir): Likewise.
73919
73920         [BZ #13007]
73921         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73922         check for AVX enablement so that we don't crash with old kernels and
73923         new hardware.
73924         * elf/tst-audit4.c: Add same checks here.
73925         * elf/tst-audit6.c: Likewise.
73926
73927         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73928
73929 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73930
73931         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73932
73933 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73934
73935         * po/cs.po: Update from translation team.
73936         * po/bg.po: Likewise.
73937
73938 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73939
73940         * misc/sys/cdefs.h: Add support for const attribute.
73941         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73942         to gnu_dev_{major,minor,makedev} functions.
73943
73944 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73945
73946         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73947
73948 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73949
73950         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73951         strlen results.
73952
73953 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73954
73955         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73956         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73957         register in order to avoid conflicts with the soft frame pointer
73958         being held in r11 when necessary.
73959         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73960         (INTERNAL_VSYSCALL_NCS): Likewise.
73961
73962 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73963
73964         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73965         * elf/dl-fini.c (_dl_fini): Adjust caller.
73966         * elf/dl-close.c (_dl_close_worker): Likewise.
73967         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73968
73969 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73970
73971         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73972         "aux_cache->nlibs < 0".
73973
73974         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73975         in the reload-count case.
73976
73977 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73978
73979         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73980         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73981         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73982         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73983         * sysdeps/x86_64/multiarch/strcat.S: New file.
73984         * sysdeps/x86_64/multiarch/strncat.S: New file.
73985         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73986         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73987         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73988         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73989         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73990         (USE_AS_STRCAT): Define.
73991         Add strcat and strncat support.
73992         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73993         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73994         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73995         * string/strncat.c: Update.
73996         (USE_AS_STRNCAT): Define.
73997         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73998         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73999         and i7.
74000         * sysdeps/x86_64/multiarch/init-arch.h
74001         (bit_Prefer_PMINUB_for_stringop): New.
74002         (index_Prefer_PMINUB_for_stringop): Likewise.
74003         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
74004         bit_Prefer_PMINUB_for_stringop.
74005
74006 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74007
74008         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
74009         buffer64.
74010         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
74011         of casting of buffer.
74012         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
74013         buffer32 and buffer64.
74014         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
74015         writes instead of casting of buffer.
74016         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
74017         buffer32.
74018         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
74019         casting of buffer.
74020
74021 2011-07-19  Andreas Schwab  <schwab@redhat.com>
74022
74023         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
74024
74025 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74026
74027         * nscd/nscd.c (termination_handler): Don't do anything for a database
74028         if it has not yet been initialized.
74029
74030 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74031
74032         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74033
74034 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
74035
74036         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74037
74038 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74039
74040         * po/nl.po: Update from translation team.
74041         * po/sv.po: Likewise.
74042
74043 2011-07-16  Roland McGrath  <roland@hack.frob.com>
74044
74045         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
74046         now disallowed by GCC.
74047
74048         * configure.in (use-default-link): Default to yes if a test -shared
74049         link meets our qualifications.
74050         * configure: Regenerated.
74051
74052         * config.make.in (output-format): New variable.
74053         * configure.in: Check for ld --print-output-format support.
74054         * configure: Regenerated.
74055         * Makerules ($(common-objpfx)format.lds)
74056         [$(output-format) != unknown]: Just use $(output-format),
74057         instead of the linker-script munging.
74058
74059 2011-07-14  Roland McGrath  <roland@hack.frob.com>
74060
74061         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
74062         of $(common-objpfx)shlib.lds.
74063         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
74064
74065         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
74066         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
74067
74068         * configure.in (-z relro check): Adjust test code to add a large
74069         writable data section after it.
74070         * configure: Regenerated.
74071
74072 2011-07-11  Roland McGrath  <roland@hack.frob.com>
74073
74074         * configure.in (-z relro check): Fix test code to make the variable
74075         truly const.
74076         * configure: Regenerated.
74077
74078 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
74079
74080         * nscd/nscd.h (struct traced_file): Define.
74081         (struct database_dyn): Remove inotify_descr, reset_res, and filename
74082         elements.  Add traced_files.
74083         (inotify_fd): Declare.
74084         (register_traced_file): Declare.
74085         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
74086         (inotify_fd): Export.
74087         (resolv_conf_descr): Remove.
74088         (nscd_init): Move inotify descriptor creation to main.
74089         Don't register files for notification here.
74090         (register_traced_file): New function.
74091         (invalidate_cache): Don't use reset_res to determine whether to call
74092         res_init, go through the list of registered files.
74093         (main_loop_poll): The inotify descriptors are now stored in the
74094         structures for the traced files.
74095         (main_loop_epoll): Likewise.
74096         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
74097         to __nss_disable_nscd.
74098         * nscd/cache.c (prune_cache): There is no single inotify descriptor
74099         for a database anymore.  Check the records for all the registered
74100         files instead.
74101         * nss/Makefile (libnss_files-routines): Add files-init.
74102         (libnss_db-routines): Add db-init.
74103         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
74104         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
74105         * nss/nss_db/db-init.c: New file.
74106         * nss/nss_files/files-init.c: New file.
74107         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
74108         __nss_lookup_function.
74109         (__nss_lookup_function): Call nss_load_library.
74110         (nss_load_all_libraries): New function.
74111         (__nss_disable_nscd): Take parameter with callback function for files
74112         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
74113         used for the cached services.
74114         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
74115         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
74116         options for features to all the files in nscd.
74117
74118         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
74119
74120 2011-07-10  Roland McGrath  <roland@hack.frob.com>
74121
74122         * csu/elf-init.c (__libc_csu_init): Comment typo.
74123
74124 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74125
74126         * po/pl.po: Update from translation team.
74127         * po/ja.po: Likewise.
74128         * po/ru.po: Likewise.
74129         * po/ko.po: Likewise.
74130         * po/fr.po: Likewise.
74131
74132 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74133
74134         * configure.in (.ctors/.dtors header and trailer check):
74135         Use an empirical test on a built program.
74136         * configure: Regenerated.
74137
74138         * configure.in (-z relro check): Use an empirical test on a built DSO.
74139         Detect, but do not require, on ia64.
74140         * configure: Regenerated.
74141
74142         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74143         Update tests that use readelf to use $READELF instead.
74144         * configure: Regenerated.
74145
74146 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74147
74148         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74149         if the result is not used.
74150
74151 2011-07-05  Andreas Jaeger  <aj@suse.de>
74152
74153         [BZ#9696]
74154         * stdlib/tst-strtod.c: Add testcase.
74155
74156 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74157
74158         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74159         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74160         The latter has a higher limit.  Take additional parameter to pass to
74161         the new function.
74162         (__pathconf): Pass file to __statfs_link_max.
74163         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74164         __statfs_link_max.
74165         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74166         __statfs_link_max.
74167
74168         [BZ #12868]
74169         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74170         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74171         Handle Lustre.
74172         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74173         (__statfs_filesize_max): Likewise.
74174         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74175
74176 2011-07-05  Andreas Jaeger  <aj@suse.de>
74177
74178         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74179
74180 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74181
74182         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74183         `status' variable.
74184         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74185         Likewise.
74186
74187 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74188
74189         * Makefile (strop-tests): Add strncat.
74190         * string/test-strncat.c: New file.
74191
74192 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74193
74194         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74195
74196 2011-06-21  Andreas Jaeger  <aj@suse.de>
74197
74198         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74199         Copy rule from iconvdata/Makefile.
74200
74201 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74202
74203         [BZ #12922]
74204         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74205         but no long options are defined, just return 'W'.
74206
74207 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74208
74209         [BZ #9696]
74210         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74211
74212 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74213
74214         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74215         netgroups to read.
74216         (innetgr): Likewise.
74217
74218 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74219
74220         * config.make.in (install_root): Default to $(DESTDIR).
74221
74222 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74223
74224         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74225
74226 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74227
74228         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74229
74230         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74231         containing directory rather than embedding absolute directory names.
74232
74233         * scripts/check-local-headers.sh: Rewritten using awk.
74234         Match by word, not by line.  Print error messages for matches.
74235         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74236
74237         * Makerules [shlib-lds-flags empty]:
74238         ($(common-objpfx)libc_pic.opts): New target.
74239         ($(common-objpfx)libc_pic.os.clean): New target.
74240         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74241
74242         * config.make.in (OBJCOPY): New variable.
74243         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74244         * configure: Regenerated.
74245
74246         * config.make.in (use-default-link): New variable.
74247         * configure.in (use_default_link): Grok --with-default-link to set it.
74248         * configure: Regenerated.
74249         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74250         (shlib-lds, shlib-lds-flags): Define to empty.
74251
74252         * Makerules (shlib-lds): New variable.
74253         (shlib-lds-flags): New variable.
74254         (build-shlib, build-moduile, build-module-asneeded): Use it.
74255         ($(common-objpfx)libc.so): Use $(shlib-lds).
74256         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74257         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74258
74259         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74260         DT_FLAGS/DT_FLAGS_1 with zero flags.
74261
74262         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74263         linker script munging.
74264
74265 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74266
74267         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74268         as 128-bit value.
74269         * crypt/sha512.c (sha512_process_block): Perform total addition using
74270         128-bit if possible.
74271         (__sha512_finish_ctx): Likewise.
74272         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74273         as 64-bit value.
74274         * crypt/sha256.c (SWAP64): Define.
74275         (sha256_process_block): Perform total addition using 64-bit if
74276         possible.
74277         (__sha256_finish_ctx): Likewise.
74278
74279 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74280
74281         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74282         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74283         * nscd/hstcache.c (cache_addhst): Likewise.
74284         * nscd/grpcache.c (cache_addgr): Likewise.
74285         * nscd/aicache.c (addhstaiX): Likewise.
74286         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74287
74288 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74289
74290         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74291         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74292         * nscd/hstcache.c (cache_addhst): Likewise.
74293         * nscd/grpcache.c (cache_addgr): Likewise.
74294         * nscd/aicache.c (addhstaiX): Likewise.
74295
74296 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74297
74298         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74299         domain only when needed.
74300
74301 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74302
74303         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74304         is always restored.
74305
74306 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74307
74308         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74309         are re-adding the entry.
74310         * nscd/servicescache.c (cache_addserv): Likewise.
74311
74312 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74313
74314         * sysdeps/generic/dl-irel.h: fix protection against multiple
74315         inclusions.
74316         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74317
74318 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74319
74320         [BZ #12935]
74321         * malloc/memusage.sh: Fix quoting in message.
74322         * debug/xtrace.sh: Likewise.
74323
74324         * configure.in: Remove support for --experimental-malloc option, make
74325         it the default.
74326         * config.make.in: Likewise.
74327         * malloc/Makefile: Likewise.
74328
74329 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74330
74331         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74332         two-byte characters.
74333
74334 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74335
74336         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74337         AC_CACHE_CHECK invocation.
74338         * configure: Regenerated.
74339
74340         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74341
74342 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74343
74344         [BZ #12350]
74345         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74346         bit from old_res_options.
74347
74348         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74349
74350         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74351         value type for setfct.
74352
74353 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74354
74355         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74356         __gettimeofday instead of gettimeofday.
74357
74358 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74359
74360         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74361
74362 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74363
74364         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74365
74366         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74367         info.
74368
74369 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74370
74371         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74372         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74373         strcpy-sse2-unaligned strncpy-sse2-unaligned
74374         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74375         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74376         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74377         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74378         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74379         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74380         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74381         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74382         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74383         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74384         (STRCPY): Support SSE2 and SSSE3 versions.
74385
74386 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74387
74388         [BZ #12874]
74389         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74390         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74391         kernels which artificially limit size of requests.
74392
74393 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74394
74395         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74396         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74397         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74398         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74399         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74400         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74401         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74402         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74403         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74404         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74405         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74406         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74407         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74408         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74409         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74410         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74411         Enable unaligned load optimization for Intel Core i3, i5 and i7
74412         processors.
74413         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74414         Define.
74415         (index_Fast_Unaligned_Load): Define.
74416         (HAS_FAST_UNALIGNED_LOAD): Define.
74417
74418 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74419
74420         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74421
74422 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74423
74424         [BZ #12907]
74425         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74426         until it is clear that the information is realy needed.
74427         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74428
74429 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74430
74431         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74432
74433 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74434
74435         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74436         /sys/devices/system/cpu/online if it is usable.
74437
74438         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74439         reading the information from the /proc filesystem to once a second.
74440
74441 2011-06-21  Andreas Jaeger  <aj@suse.de>
74442
74443         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74444         NULL after inclusion of kernel headers.
74445
74446 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74447
74448         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74449         calls to internal_setent.
74450
74451         [BZ #12885]
74452         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74453         addresses using gethostbyname4_r ignore IPv4 addresses.
74454
74455         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74456         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74457
74458         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74459
74460 2011-06-20  David S. Miller  <davem@davemloft.net>
74461
74462         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74463         inclusions.
74464         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74465
74466         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74467         (elf_irel): Use it.
74468         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74469         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74470         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74471         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74472         * sysdeps/x86_64/dl-irel.h: Likewise.
74473
74474         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74475         * elf/dl-sym.c: Likewise.
74476
74477 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74478
74479         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74480         need to dereference resplen2.
74481
74482 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74483
74484         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74485
74486 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74487
74488         * Makeconfig: Define vardbdir and inst_vardbdir.
74489         * nss/Makefile: Add rules to install db-Makefile.
74490
74491         * nss/nss_db/db-XXX.c: Cleanup.
74492
74493         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74494         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74495         GLIBC_PRIVATE.
74496         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74497         * nss/makedb.c: Implement -g option to specify that value strings
74498         are generated and should not be added to table iterated over for
74499         get*ent calls.
74500         * nss/nss_db/db-initgroups.c: New file.
74501
74502         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74503         interface.
74504
74505         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74506         (internal_getgrouplist): Adjust to name change.
74507         Update use_initgroups_entry if this is not the first call.
74508         * nss/databases.def: Add initgroups entry.
74509
74510         * nss/makedb.c (compute_tables): Check result of multiple hash table
74511         sizes to minimize maximum chain length.
74512
74513 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74514
74515         * Versions.def: Add entry for libnss_db.
74516         * shlib-versions: Likewise.
74517         * nss/Makefile: Add rules to build libnss_db.
74518         * nss/Versions: Add libnss_db information.  Organize libnss_files
74519         entries better.
74520         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74521         makedb progra.  Some minor improvements to generate smaller files.
74522         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74523         here from...
74524         * nss/makedb.c: ...here.
74525         Improve database format to be smaller and require less memory at
74526         runtime.
74527         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74528         db anymore.
74529         * nss/nss_db/db-netgrp.c: Likewise.
74530         * nss/nss_db/db-open.c: Likewise.
74531         * nss/nss_files/flies-XXX.x: Adjust comments.
74532         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74533         * nss/nss_files/files-grp.c: Likewise.
74534         * nss/nss_files/files-hosts.c: Likewise.
74535         * nss/nss_files/files-network.c: Likewise.
74536         * nss/nss_files/files-proto.c: Likewise.
74537         * nss/nss_files/files-pwd.c: Likewise.
74538         * nss/nss_files/files-rpc.c: Likewise.
74539         * nss/nss_files/files-service.c: Likewise.
74540         * nss/nss_files/files-sgrp.c: Likewise.
74541         * nss/nss_files/files-spwd.c: Likewise.
74542         * nss/nss_db/db-alias.c: Removed.
74543         * nss/nss_db/dummy-db.h: Removed.
74544
74545 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74546
74547         * nss/makedb.c: Rewritten to not use database library.
74548         * nss/Makefile: Update to build new makedb program.
74549
74550 2011-06-14  Andreas Jaeger  <aj@suse.de>
74551
74552         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74553         memset declaration.
74554
74555 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74556
74557         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74558         tmpbuf.
74559
74560 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74561
74562         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74563         * elf/Makefile ($(objpfx)ld.so): Likewise.
74564
74565         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74566         Don't list ld.so twice in dependencies.
74567
74568         * posix/bug-regex31.c: Include <stdlib.h>.
74569
74570         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74571
74572         * nis/nss_compat/compat-spwd.c
74573         (getspent_next_nss_netgr): Remove unused variable.
74574         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74575
74576         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74577         nonmembers" output to use the right array.
74578
74579         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74580
74581         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74582
74583         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74584         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74585         * catgets/gencat.c (read_input_file): Likewise.
74586         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74587
74588         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74589         variable definition inside #if's controlling its use.
74590
74591         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74592
74593         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74594
74595         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74596
74597         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74598         unreachable code.
74599
74600         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74601
74602         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74603         * configure: Regenerated.
74604
74605         * Makerules: Revert last change.
74606         * elf/Makefile: Likewise.
74607
74608 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74609
74610         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74611         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74612         (reloc-link): Likewise.
74613
74614 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74615
74616         * elf/Makefile: Add rules to build pldd.
74617         * elf/pldd.c: New file.
74618         * elf/pldd-xx.c: New file.
74619
74620 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74621
74622         * version.h: Update for 2.15 development version.
74623
74624 2011-06-07  David S. Miller  <davem@davemloft.net>
74625
74626         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74627         ifuncs.
74628         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74629         elf_machine_lazy_rel): Likewise.
74630         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74631         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74632         elf_machine_lazy_rel): Likewise.
74633         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74634         dl_hwcap via passed in argument.
74635         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74636         Likewise.
74637
74638 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74639
74640         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74641
74642 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74643
74644         [BZ #12849]
74645         * manual/fdl-1.1.texi: New file, verbatim from:
74646         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74647         * manual/lgpl-2.1.texi: New file, verbatim from:
74648         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74649         * manual/Makefile (licenses): New variable, list those new file names.
74650         (texis): Use it.
74651         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74652
74653         * manual/fdl.texi: File removed.
74654         * manual/lesser.texi: File removed.
74655         * manual/libc.texinfo (Copying, Documentation License):
74656         Use new @include file names, put @appendix directive before @include.
74657
74658 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74659
74660         [BZ #12841]
74661         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74662         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74663         (mq_open): Add __NTH.
74664
74665 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74666
74667         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74668         Assume Intel Core i3/i5/i7 processor if AVX is available.
74669
74670 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74671
74672         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74673         typo.
74674
74675 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74676
74677         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74678         memory.  Use alloca_account.  Fix memory leak when retrying.
74679
74680 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74681
74682         * version.h (RELEASE): Bump for 2.14 release.
74683         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74684
74685         * config.make.in (RANLIB): Remove entry.
74686
74687 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74688
74689         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74690         (libc.pot): Work around missing support for .ksh extension in xgettext.
74691
74692         [BZ #12684]
74693         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74694         if both request failed.
74695         (send_dg): In case of server errors clear resplen or *resplen2.
74696
74697         [BZ #12454]
74698         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74699         when there are multiple maps.
74700         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74701         (_dl_fini): Remove test here.
74702
74703         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74704
74705 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74706
74707         [BZ #12350]
74708         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74709         bit from old_res_options.
74710         (gaih_inet): Likewise.
74711
74712         [BZ #11099]
74713         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74714         as signed.
74715
74716         * resolv/res_init.c (res_setoptions): Make the code more compact.
74717
74718         [BZ #11558]
74719         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74720         set RES_USEVC.
74721
74722         [BZ #11634]
74723         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74724
74725         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74726
74727         [BZ #11781]
74728         * malloc/malloc.h: Declare malloc hook variables as volatile.
74729
74730         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74731         in last patch.
74732
74733         [BZ #11799]
74734         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74735         raise in the comment.
74736         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74737         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74738         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74739
74740 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74741
74742         [BZ #12811]
74743         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74744         grow the buffers more if it already has to be sufficient.
74745         (build_wcs_upper_buffer): Likewise.
74746         * posix/regexec.c (check_matching): Likewise.
74747         (clean_state_log_if_needed): Likewise.
74748         (extend_buffers): Don't enlarge buffers beyond size of the input
74749         buffer.
74750         Patches mostly by Emil Wojak <emil@wojak.eu>.
74751         * posix/bug-regex32.c: New file.
74752         * posix/Makefile (tests): Add bug-regex32.
74753
74754         * locale/findlocale.c (_nl_find_locale): Return right away if
74755         _nl_explode_name failed.
74756         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74757
74758         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74759
74760         * debug/xtrace.sh: Unify messages.
74761         * malloc/memusage.sh: Likewise.
74762
74763         [BZ #12813]
74764         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74765         time symbol from vDSO.  Substitute with vsyscall if not available.
74766         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74767         __vdso_time.
74768
74769         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74770         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74771         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74772         Add sendmmsg and internal_sendmmsg.
74773         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74774         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74775         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74776
74777         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74778         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74779         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74780
74781 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74782
74783         [BZ #12813]
74784         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74785         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74786         available.
74787         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74788         __vdso_getcpu.
74789
74790         [BZ #12814]
74791         * iconvdata/Makefile (tests): Add bug-iconv9.
74792         * iconvdata/bug-iconv9.c: New file.
74793
74794 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74795
74796         [BZ #12814]
74797         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74798
74799 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74800
74801         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74802         (struct user_regs_struct): Change intcs field back to cs.
74803
74804 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74805
74806         * po/ja.po: Update from translation team.
74807
74808 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74809
74810         [BZ #12795]
74811         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74812         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74813
74814 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74815
74816         * stdlib/longlong.h: Update from GCC.
74817
74818 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74819
74820         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74821         parameter name.
74822         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74823         Add parameter name.
74824         (__sysconf): Pass it down.
74825
74826 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74827
74828         [BZ #12671]
74829         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74830         some situations.
74831         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74832         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74833         add in in __libc_use_alloca calls.  Adjust callers.
74834         (glob): Use malloc in some situations.
74835
74836         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74837         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74838         pltexit.
74839
74840 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74841
74842         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74843         and CLOCK_BOOTTIME_ALARM.
74844
74845         [BZ #12782]
74846         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74847         is returned.
74848
74849         * string/_strerror.c (__strerror_r): Print negative errors as signed
74850         numbers.
74851
74852         [BZ #12777]
74853         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74854         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74855         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74856
74857         * configure.in: Fix typo in redirection and correct removal of test
74858         files in two cases.
74859
74860         [BZ #12788]
74861         * locale/setlocale.c (new_composite_name): Fix test to check for
74862         identical name of all categories.
74863
74864         [BZ #12792]
74865         * libio/filedoalloc.c (local_isatty): New function.
74866         (_IO_file_doallocate): Use local_isatty.
74867         * stdio-common/perror.c (perror): In case a new stream is used
74868         forward the stream error.
74869         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74870         error flag.
74871
74872 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74873
74874         [BZ #11884]
74875         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74876         alloca.
74877         * include/alloca.h (extend_alloca_account): Define.
74878
74879         [BZ #11857]
74880         * posix/regex.h: Fix comments with documentation of user-accessible
74881         fields after compilation and describe correct free'ing of pattern
74882         after re_compile_pattern.
74883         Patch by Reuben Thomas <rrt@sc3d.org>.
74884
74885 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74886
74887         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74888         and -mno-altivec to prevent the compiler from using Altivec and/or
74889         VSX instructions when the corresponding registers are not available.
74890
74891 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74892
74893         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74894
74895 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74896
74897         * libio/freopen.c (freopen): Use __dup2, not dup2.
74898         * libio/freopen64.c (freopen64): Likewise.
74899
74900 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74901
74902         [BZ #12775]
74903         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74904         * math/Makefile (tests): Add test-powl.
74905         (CFLAGS-test-powl.c): Define.
74906         * math/test-powl.c: New file.
74907
74908 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74909
74910         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74911
74912 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74913
74914         [BZ #11837]
74915         * iconvdata/gb18030.c: Update to GB18020-2005.
74916
74917 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74918
74919         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74920         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74921         Patch by Aharon Robbins <arnold@skeeve.com>.
74922
74923         [BZ #11892]
74924         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74925         on the stack.
74926
74927         [BZ #11895]
74928         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74929         through underflows.
74930
74931         [BZ #12766]
74932         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74933         point to strings before performing equality test for error_one_per_line
74934         mode.
74935
74936         [BZ #11697]
74937         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74938
74939         [BZ #11820]
74940         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74941         (struct user_fpregs_struct): Avoid __uint*_t types.
74942
74943         [BZ #6420]
74944         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74945         symbol info.  Use it instead of calling _dl_addr locally.
74946         (lock_and_info): New function.
74947         (tr_freehook): Call lock_and_info and pass symbol info as additional
74948         parameter to tr_where.
74949         (tr_mallochook): Likewise.
74950         (tr_reallochook): Likewise.
74951         (tr_memalignhook): Likewise.
74952
74953         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74954         used and couldn't be at all thread-safe.
74955
74956 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74957
74958         * libio/freopen.c (freopen): Don't close old file descriptor
74959         before the new one is opened.  Instead dup the new file descriptor
74960         to the old one after the new stream is created.
74961         * libio/freopen64.c (freopen64): Likewise.
74962         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74963         * libio/fileops.c (_IO_new_file_close_it): Handle new
74964         _IO_FLAGS2_NOCLOSE flag.
74965         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74966         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74967         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74968         _IO_FLAGS2_NOCLOSE flag.
74969         * include/unistd.h: Add hidden_proto for dup3.
74970         Define __have_dup3.
74971         * io/dup3.c: Define hidden symbol.
74972         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74973
74974         [BZ #7101]
74975         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74976         when an incomplete long option is used.
74977         * posix/tst-getopt_long1.c: New file.
74978         * posix/Makefile (tests): Add tst-getopt_long1.
74979
74980         [BZ #10138]
74981         * scripts/config.guess: Update from autoconf-2.68.
74982         * scripts/config.sub: Likewise.
74983
74984         [BZ #10157]
74985         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74986         tests into ...
74987         (has_cpuclock): ...this.  New function.
74988         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74989         macro here based on has_cpuclock code.
74990
74991         [BZ #10149]
74992         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74993         First byte (not low byte) is now always NUL.
74994         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74995
74996         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74997         Use non-cancelable interfaces.
74998
74999         [BZ #9809]
75000         * locale/iso-639.def: Add entry for Sorani.
75001
75002         [BZ #11901]
75003         * include/stdlib.h: Move include protection to the right place.
75004         Define abort_msg_s.  Declare __abort_msg with it.
75005         * stdlib/abort.c (__abort_msg): Adjust type.
75006         * assert/assert.c (__assert_fail_base): New function.  Majority
75007         of code from __assert_fail.  Allocate memory for __abort_msg with
75008         mmap.
75009         (__assert_fail): Now call __assert_fail_base.
75010         * assert/assert-perr.c: Remove bulk of implementation.  Use
75011         __assert_fail_base.
75012         * include/assert.hL Declare __assert_fail_base.
75013         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
75014         mmap.
75015         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
75016
75017 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
75018
75019         [BZ #11952]
75020         [BZ #12453]
75021         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
75022         until all modules are registered in the DTV.
75023         * elf/Makefile: Add rules to build and run tst-tls19.
75024         * elf/tst-tls19.c: New file.
75025         * elf/tst-tls19mod1.c: New file.
75026         * elf/tst-tls19mod2.c: New file.
75027         * elf/tst-tls19mod3.c: New file.
75028         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
75029
75030         [BZ #12083]
75031         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
75032         correctly.
75033
75034         [BZ #12601]
75035         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
75036         two-byte sequence errors.
75037         * iconvdata/Makefile (tests): Add bug-iconv8.
75038         * iconvdata/bug-iconv8.c: New file.
75039
75040         [BZ #12626]
75041         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
75042         buf2 definition.
75043
75044         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
75045
75046         [BZ #12432]
75047         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
75048         (dummy_getcfa): New function.
75049         (init): Get _Unwind_GetCFA address, use dummy if not found.
75050         (backtrace_helper): In recursion check, also check whether CFA changes.
75051         (__backtrace): Completely initialize arg.
75052
75053         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
75054         storing incomplete byte sequence in state object.  Avoid testing for
75055         guaranteed too small input if we know there is enough data available.
75056
75057 2011-05-11  Andreas Schwab  <schwab@redhat.com>
75058
75059         * Makeconfig (+link-pie): Indent.
75060         * Rules (binaries-pie): Define if $(have-fpie) and
75061         $(build-shared).
75062         (binaries-shared): Also filter out $(binaries-pie).
75063         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
75064         * nscd/Makefile (others-pie): Add nscd.
75065         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
75066         ($(objpfx)nscd): Remove command override.
75067         * login/Makefile (others-pie): Add pt_chown.
75068         ($(objpfx)pt_chown): Remove command override.
75069         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
75070         remove command overrides.
75071
75072 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
75073
75074         * libio/tst_putwc.c: Fix error messages.
75075
75076         [BZ #12724]
75077         * libio/fileops.c (_IO_new_file_close_it): Always flush when
75078         currently writing and seek to current position when not.
75079         * libio/Makefile (tests): Add bug-fclose1.
75080         * libio/bug-fclose1.c: New file.
75081
75082 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
75083
75084         [BZ #12511]
75085         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
75086         don't set DF_1_NODELETE here.
75087         (do_lookup_x): When entering new entry test for copy relocation
75088         and if necessary set DF_1_NODELETE flag.
75089         * elf/tst-unique4.cc: New file.
75090         * elf/tst-unique4.h: New file.
75091         * elf/tst-unique4lib.cc: New file.
75092         * elf/Makefile: Add rules to build and run tst-unique4.
75093         Patch by Piotr Bury <pbury@goahead.com>.
75094
75095 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
75096
75097         [BZ #12052]
75098         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
75099
75100         [BZ #12625]
75101         * misc/mntent_r.c (addmntent): Flush the stream after the output
75102
75103         [BZ #12393]
75104         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
75105         (is_trusted_path_normalize): Skip initial colon.  Append slash
75106         to empty buffer.  Duplicate is_trusted_path code but allow
75107         constructed patch to be prefix.
75108         (is_dst): Allow $ORIGIN followed by /.
75109         (_dl_dst_substitute): Correct clearing of check_for_trusted.
75110         Correct testing of result of is_trusted_path_normalize
75111         (decompose_rpath): Fix warning.
75112
75113 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
75114
75115         [BZ #11257]
75116         * grp/initgroups.c (internal_getgrouplist): When we found the service
75117         list through the initgroups entry in nsswitch.conf do not always
75118         continue on a successful lookup.  Don't always use the
75119         __nss_group_database value if it is set.
75120         * nss/nsswitch.conf (initgroups): Change action for successful db
75121         lookup to continue for compatibility.
75122
75123 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
75124
75125         [BZ #11532]
75126         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75127         and CP774 modules.
75128         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75129         and CP774 modules.
75130         * iconvdata/tst-tables.sh: Likewise.
75131         * iconvdata/cp770.c: New file.
75132         * iconvdata/cp771.c: New file.
75133         * iconvdata/cp772.c: New file.
75134         * iconvdata/cp773.c: New file.
75135         * iconvdata/cp774.c: New file.
75136         * iconvdata/testdata/CP770: New file.
75137         * iconvdata/testdata/CP770..UTF8: New file.
75138         * iconvdata/testdata/CP771: New file.
75139         * iconvdata/testdata/CP771..UTF8: New file.
75140         * iconvdata/testdata/CP772: New file.
75141         * iconvdata/testdata/CP772..UTF8: New file.
75142         * iconvdata/testdata/CP773: New file.
75143         * iconvdata/testdata/CP773..UTF8: New file.
75144         * iconvdata/testdata/CP774: New file.
75145         * iconvdata/testdata/CP774..UTF8: New file.
75146
75147         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75148         END CHARMAP line.
75149         * iconvdata/gen-8bit-gap.sh: Likewise.
75150         * iconvdata/gen-8bit.sh: Likewise.
75151
75152         * locale/iso-639.def: Add ary entry.
75153
75154         [BZ #11258]
75155         * locale/C-translit.h.in: Add U20A1 transliteration.
75156
75157         [BZ #12178]
75158         * locale/iso-639.def: Add wae entry.
75159         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75160
75161         [BZ #12545]
75162         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75163         for n.
75164
75165         [BZ #12711]
75166         * locale/C-translit.h.in: Add entry for U20B9.
75167         Patch by pravin.d.s@gmail.com.
75168
75169 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75170
75171         [BZ #12713]
75172         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75173         ENAMETOOLONG use generic getcwd.
75174         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75175         in rtld.  Use *stat64.
75176         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75177         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75178         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75179         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75180         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75181         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75182         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75183         __fstatat64 macros.
75184         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75185         * dirent/rewinddir.c: Add libc_hidden_def.
75186         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75187         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75188
75189         * include/dirent.h (__alloc_dir): Add flags parameter.
75190         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75191         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75192         __alloc_dir.
75193         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75194         from fdopendir if O_CLOEXEC is already set.
75195
75196 2011-03-15  Alan Modra  <amodra@gmail.com>
75197
75198         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75199         l_tls_firstbyte_offset non-zero.  Save padding offset in
75200         l_tls_firstbyte_offset for later use.
75201         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75202         freeing static tls block.
75203
75204 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75205
75206         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75207         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75208         being defined by the kernel headers.
75209
75210 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75211
75212         [BZ #12734]
75213         * resolv/resolv.h: Define RES_NOTLDQUERY.
75214         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75215         no-tld-query and set RES_NOTLDQUERY.
75216         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75217         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75218         modern BIND to search name as TLD unless forbidden.
75219
75220 2011-05-07  Petr Baudis  <pasky@suse.cz>
75221             Ulrich Drepper  <drepper@gmail.com>
75222
75223         [BZ #12393]
75224         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75225         (is_trusted_path): ...to here.
75226         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75227         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75228         using is_trusted_path_normalize() in setuid scripts.
75229
75230 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75231
75232         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75233         __BEGIN/__END_DECLS.
75234
75235 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75236
75237         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75238         NSS_STATUS_NOTFOUND if no record was found.
75239
75240 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75241
75242         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75243         (headers-not-in-tirpc): Remove rpc/netdb.h
75244         * resolv/netdb.h: Revert last change.
75245
75246 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75247
75248         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75249         circular dependency between libgcc.a and libc.a.
75250
75251 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75252
75253         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75254         * nis/Makefile: Don't install rpcsvc/*.
75255         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75256         instead of <rpc/types.h>.
75257         (MAXHOSTNAMELEN): Define.
75258
75259 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75260
75261         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75262
75263 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75264
75265         [BZ #12714]
75266         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75267         gethostbyname4_r when IPv6 results are possible.
75268
75269 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75270
75271         [BZ #12723]
75272         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75273         _PC_PIPE_BUF handling.
75274
75275 2011-04-30  Bruno Haible  <bruno@clisp.org>
75276
75277         [BZ #12717]
75278         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75279         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75280         to 'int'.
75281         * inet/getnameinfo.c (getnameinfo): Likewise.
75282
75283 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75284
75285         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75286         to groups setting in database lookup.
75287         * nss/nsswitch.conf: Add initgroups entry.
75288
75289 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75290
75291         [BZ #12685]
75292         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75293         mode string.
75294         Patch by Eric Blake <eblake@redhat.com>.
75295
75296 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75297
75298         * sunrpc/Makefile (need-export-routines): Add svc_run.
75299         (routines): Remove svc_run.
75300         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75301         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75302         * sunrpc/svc_run.c (svc_run): Likewise.
75303         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75304
75305 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75306
75307         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75308         problem in reallocation in last patch.
75309
75310 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75311
75312         * sunrpc/Makefile: Move inclusion of Rules.
75313
75314 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75315
75316         * nss/nss_files/files-initgroups.c: New file.
75317         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75318         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75319         _nss_files_initgroups_dyn.
75320
75321 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75322
75323         * elf/elf.h (R_ARM_IRELATIVE): Define.
75324
75325 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75326
75327         * po/ru.po: Update from translation team.
75328
75329 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75330
75331         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75332         dependencies.
75333
75334 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75335
75336         [BZ #12653]
75337         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75338         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75339         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75340         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75341         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75342
75343 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75344
75345         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75346         differing bytes.
75347         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75348         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75349         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75350
75351 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75352
75353         [BZ #12420]
75354         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75355         storing it.
75356         * stdlib/bug-getcontext.c: New file.
75357         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75358
75359 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75360
75361         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75362         instructions into .machine "z9-109".
75363         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75364         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75365
75366 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75367
75368         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75369         between environment variables and auxiliary vector.
75370
75371 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75372
75373         * Makefile: Add rules to build linkobj/libc.so.
75374         * include/libc-symbols.h: Define libc_hidden_nolink.
75375         * include/rpc/auth.h: Mark functions which are to be hidden.
75376         * include/rpc/auth_des.h: Likewise.
75377         * include/rpc/auth_unix.h: Likewise.
75378         * include/rpc/clnt.h: Likewise.
75379         * include/rpc/des_crypt.h: Likewise.
75380         * include/rpc/key_prot.h: Likewise.
75381         * include/rpc/pmap_clnt.h: Likewise.
75382         * include/rpc/pmap_prot.h: Likewise.
75383         * include/rpc/pmap_rmt.h: Likewise.
75384         * include/rpc/rpc_msg.h: Likewise.
75385         * include/rpc/svc.h: Likewise.
75386         * include/rpc/svc_auth.h: Likewise.
75387         * include/rpc/xdr.h: Likewise.
75388         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75389         * nss/Makefile: Likewise.
75390         * sunrpc/Makefile: Don't install headers.  Build library with normal
75391         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75392         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75393         for the compat linking library.  Remove use of INTDEF/INTUSE.
75394         * sunrpc/auth_none.c: Likewise.
75395         * sunrpc/auth_unix.c: Likewise.
75396         * sunrpc/authdes_prot.c: Likewise.
75397         * sunrpc/authuxprot.c: Likewise.
75398         * sunrpc/clnt_gen.c: Likewise.
75399         * sunrpc/clnt_perr.c: Likewise.
75400         * sunrpc/clnt_raw.c: Likewise.
75401         * sunrpc/clnt_simp.c: Likewise.
75402         * sunrpc/clnt_tcp.c: Likewise.
75403         * sunrpc/clnt_udp.c: Likewise.
75404         * sunrpc/clnt_unix.c: Likewise.
75405         * sunrpc/des_crypt.c: Likewise.
75406         * sunrpc/des_soft.c: Likewise.
75407         * sunrpc/get_myaddr.c: Likewise.
75408         * sunrpc/key_call.c: Likewise.
75409         * sunrpc/key_prot.c: Likewise.
75410         * sunrpc/netname.c: Likewise.
75411         * sunrpc/pm_getmaps.c: Likewise.
75412         * sunrpc/pm_getport.c: Likewise.
75413         * sunrpc/pmap_clnt.c: Likewise.
75414         * sunrpc/pmap_prot.c: Likewise.
75415         * sunrpc/pmap_prot2.c: Likewise.
75416         * sunrpc/pmap_rmt.c: Likewise.
75417         * sunrpc/publickey.c: Likewise.
75418         * sunrpc/rpc_cmsg.c: Likewise.
75419         * sunrpc/rpc_common.c: Likewise.
75420         * sunrpc/rpc_dtable.c: Likewise.
75421         * sunrpc/rpc_prot.c: Likewise.
75422         * sunrpc/rpc_thread.c: Likewise.
75423         * sunrpc/rtime.c: Likewise.
75424         * sunrpc/svc.c: Likewise.
75425         * sunrpc/svc_auth.c: Likewise.
75426         * sunrpc/svc_authux.c: Likewise.
75427         * sunrpc/svc_raw.c: Likewise.
75428         * sunrpc/svc_run.c: Likewise.
75429         * sunrpc/svc_simple.c: Likewise.
75430         * sunrpc/svc_tcp.c: Likewise.
75431         * sunrpc/svc_udp.c: Likewise.
75432         * sunrpc/svc_unix.c: Likewise.
75433         * sunrpc/svcauth_des.c: Likewise.
75434         * sunrpc/xcrypt.c: Likewise.
75435         * sunrpc/xdr.c: Likewise.
75436         * sunrpc/xdr_array.c: Likewise.
75437         * sunrpc/xdr_float.c: Likewise.
75438         * sunrpc/xdr_intXX_t.c: Likewise.
75439         * sunrpc/xdr_mem.c: Likewise.
75440         * sunrpc/xdr_rec.c: Likewise.
75441         * sunrpc/xdr_ref.c: Likewise.
75442         * sunrpc/xdr_sizeof.c: Likewise.
75443         * sunrpc/xdr_stdio.c: Likewise.
75444
75445 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75446
75447         [BZ #12650]
75448         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75449         * sysdeps/ia64/dl-tls.h: Likewise.
75450         * sysdeps/powerpc/dl-tls.h: Likewise.
75451         * sysdeps/s390/dl-tls.h: Likewise.
75452         * sysdeps/sh/dl-tls.h: Likewise.
75453         * sysdeps/sparc/dl-tls.h: Likewise.
75454         * sysdeps/x86_64/dl-tls.h: Likewise.
75455         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75456
75457 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75458
75459         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75460         rpath element also skip the following colon.
75461         (expand_dynamic_string_token): Add is_path parameter and pass
75462         down to DL_DST_REQUIRED and _dl_dst_substitute.
75463         (decompose_rpath): Call expand_dynamic_string_token with
75464         non-zero is_path.  Ignore empty rpaths.
75465         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75466         with zero is_path.
75467
75468 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75469
75470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75471         Make cancelable.
75472
75473 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75474
75475         [BZ #12655]
75476         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75477         Patch by Filipe David Manana <fdmanana@apache.org>.
75478
75479 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75480
75481         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75482         Maintain aligned stack.
75483         (CHECK_RSP): Remove unused macro.
75484
75485 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75486
75487         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75488         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75489
75490 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75491
75492         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75493
75494         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75495
75496 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75497
75498         [BZ #12518]
75499         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75500         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75501         * sysdeps/x86_64/memmove.c: New file.
75502         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75503         (memcpy): Renamed to ...
75504         (__new_memcpy): This.
75505         (memcpy): Provide GLIBC_2_14 memcpy.
75506         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75507         (memcpy): Provide GLIBC_2_2_5 memcpy.
75508
75509 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75510
75511         [BZ #12631]
75512         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75513
75514 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75515
75516         * misc/syncfs.c: New file.
75517         * misc/Makefile (routines): Add syncfs.
75518         * posix/unistd.h: Declare syncfs.
75519         * sysdeps/unix/syscalls.list: Add syncfs.
75520
75521 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75522
75523         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75524         open_by_handle_at.
75525         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75526         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75527         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75528         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75529         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75530         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75531         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75532
75533 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75534
75535         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75536         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75537         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75538         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75539         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75540         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75541         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75542
75543         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75544         sync_file_range.c with -fexceptions.
75545         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75546         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75547         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75548         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75549         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75550         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75551         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75552         sync_file_range as cancellation point
75553         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75554         now a wrapper around __call_sync_file_range with cancellation handling.
75555         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75556         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75557         function name to __call_sync_file_range.
75558         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75559         Add call_sync_file_range.
75560
75561 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75562
75563         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75564         bits/timex.h.
75565
75566 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75567
75568         * iconv/iconv.h: Fix typo in comment.
75569         * io/fcntl.h: Likewise.
75570         * libio/stdio.h: Likewise.
75571         * posix/spawn.h: Likewise.
75572         * posix/unistd.h: Likewise.
75573         * stdlib/stdlib.h: Likewise.
75574         * time/time.h: Likewise.
75575         * wcsmbs/wchar.h: Likewise.
75576
75577         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75578         open_by_handle): Add.
75579         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75580         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75581         Augment a few comments.
75582         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75583         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75584         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75585         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75586         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75587         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75588         open_by_handle.
75589
75590         * io/fcntl.h (AT_EMPTY_PATH): Define.
75591
75592 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75593
75594         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75595         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75596         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75597         to...
75598         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75599         * Versions.def: Add GLIBC_2.14.
75600         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75601         Export.
75602
75603 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75604
75605         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75606         round counter.
75607         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75608
75609 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75610
75611         [BZ #12597]
75612         * string/test-strncmp.c (do_page_test): New function.
75613         (check2): Likewise.
75614         (test_main): Call check2.
75615         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75616
75617 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75618
75619         [BZ #12587]
75620         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75621         Handle cache information in CPU leaf 4.
75622         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75623
75624 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75625
75626         [BZ #12583]
75627         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75628         character representation.
75629         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75630
75631 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75632
75633         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75634         END(__isnan) to END(__isnanf) to match function entry point/label
75635         EALIGN(__isnanf,...).
75636
75637 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75638
75639         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75640
75641 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75642
75643         [BZ #12510]
75644         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75645         copy from the symbol referenced in the relocation to initialize the
75646         used variable.
75647         Patch by Piotr Bury <pbury@goahead.com>.
75648         * elf/Makefile: Add rules to build and tst-unique3.
75649         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75650         * elf/tst-unique3.cc: New file.
75651         * elf/tst-unique3.h: New file.
75652         * elf/tst-unique3lib.cc: New file.
75653         * elf/tst-unique3lib2.cc: New file.
75654
75655         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75656
75657 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75658
75659         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75660         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75661         to _start.
75662
75663 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75664
75665         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75666         to-be-loaded object along a path to loader is ld.so.
75667
75668 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75669             Ulrich Drepper  <drepper@gmail.com>
75670
75671         * sysdeps/x86_64/memset.S: After aligning destination, code
75672         branches to different locations depending on the value of
75673         misalignment, when multiarch is enabled. Fix this.
75674
75675 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75676
75677         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75678         Set _x86_64_preferred_memory_instruction for AMD processsors.
75679         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75680         Set bit_Prefer_SSE_for_memop for AMD processors.
75681
75682 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75683
75684         * libio/fmemopen.c (fmemopen): Optimize a bit.
75685
75686 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75687
75688         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75689
75690 2011-03-03  Roland McGrath  <roland@redhat.com>
75691
75692         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75693
75694 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75695
75696         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75697         __bzero_ultra1 instead of __memset_ultra1.
75698
75699 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75700             Ulrich Drepper  <drepper@gmail.com>
75701
75702         [BZ #12509]
75703         * include/link.h (struct link_map): Add l_orig_initfini.
75704         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75705         returning unsuccessfully.
75706         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75707         close of a file loaded at startup, restore the original l_initfini
75708         list.
75709         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75710         list, store the pointer.
75711         * elf/Makefile ($(objpfx)noload-mem): New rule.
75712         (noload-ENV): Define.
75713         (tests): Add $(objpfx)noload-mem.
75714         * elf/noload.c: Include <memcheck.h>.
75715         (main): Call mtrace.  Close all opened handles.
75716
75717 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75718
75719         [BZ #12454]
75720         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75721         dependencies are missing.
75722
75723 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75724
75725         Fix __if_freereq crash: Unlike the generic version which uses free,
75726         Hurd needs munmap.
75727         * sysdeps/mach/hurd/ifreq.h: New file.
75728
75729 2011-01-27  Petr Baudis  <pasky@suse.cz>
75730             Ulrich Drepper  <drepper@gmail.com>
75731
75732         [BZ 12445]#
75733         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75734         to extend_alloca().
75735         * stdio-common/bug23.c: New file.
75736         * stdio-common/Makefile (tests): Add bug23.
75737
75738 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75739             Ulrich Drepper  <drepper@gmail.com>
75740
75741         [BZ #12489]
75742         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75743         before performing relro protection.  At old place add assertion
75744         to make sure nothing changed.
75745
75746 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75747             Glauber de Oliveira Costa  <glommer@gmail.com>
75748
75749         * elf/elf.h: Add new ARM TLS relocs.
75750
75751 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75752
75753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75754         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75755         cast from r3.
75756         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75757         'tests' variable.
75758         * sysdeps/wordsize-64/tst-writev.c: New file.
75759
75760 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75761
75762         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75763         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75764         insns in _dl_start to prevent a TOC reference before relocs are
75765         resolved.
75766
75767 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75768
75769         [BZ #12469]
75770         * Makeconfig: Remove RANLIB definition.
75771         * Makerules: Don't use RANLIB.
75772         * aclocal.m4: Remove ranlib test.
75773         * configure.in: No need to check for ranlib.
75774         * elf/rtld-Rules: Don't use RANLIB.
75775
75776 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75777
75778         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75779         protection macro.
75780         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75781         inclusion protection macro.
75782
75783         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75784         SIGRTMIN and SIGRTMAX and print information in that case only when
75785         SIGRTMIN is defined.
75786
75787 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75788
75789         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75790         arginfo fn returning -1.
75791
75792         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75793         and thousands string is zero terminated.
75794
75795 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75796
75797         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75798         sysdeps/unix/sysv/linux/bits/socket.h.
75799
75800 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75801
75802         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75803         (__CPU_COUNT): Remove old macros.
75804         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75805         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75806         (__CPU_ALLOC, __CPU_FREE): Add macros.
75807         (__sched_cpualloc, __sched_cpufree): Add declarations.
75808
75809 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75810
75811         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75812         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75813         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75814         (readdhstai): Return value of addhstaiX call.
75815         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75816         (addgrbyX): Return value returned by cache_addgr.
75817         (readdgrbyname): Return value returned by addgrbyX.
75818         (readdgrbygid): Likewise.
75819         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75820         (addpwbyX): Return value returned by cache_addpw.
75821         (readdpwbyname): Return value returned by addhstbyX.
75822         (readdpwbyuid): Likewise.
75823         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75824         (addservbyX): Return value returned by cache_addserv.
75825         (readdservbyname): Return value returned by addservbyX:
75826         (readdservbyport): Likewise.
75827         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75828         (addhstbyX): Return value returned by cache_addhst.
75829         (readdhstbyname): Return value returned by addhstbyX.
75830         (readdhstbyaddr): Likewise.
75831         (readdhstbynamev6): Likewise.
75832         (readdhstbyaddrv6): Likewise.
75833         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75834         (readdinitgroups): Return value returned by addinitgroupsX.
75835         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75836         (prune_cache): Keep track of timeout value of re-added entries.
75837         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75838         * nscd/nscd.h: Adjust prototypes of readd* functions.
75839
75840 2011-02-04  Roland McGrath  <roland@redhat.com>
75841
75842         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75843         (nis_stats): Likewise.
75844         * nis/nis_modify.c (nis_modify): Likewise.
75845         * nis/nis_remove.c (nis_remove): Likewise.
75846         * nis/nis_add.c (nis_add): Likewise.
75847
75848         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75849
75850         * posix/fnmatch_loop.c: Add some consts.
75851
75852         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75853
75854 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75855
75856         [BZ #12460]
75857         * config.make.in (config-cflags-novzeroupper): Define.
75858         * configure.in: Substitute libc_cv_cc_novzeroupper.
75859         * elf/Makefile (AVX-CFLAGS): Define.
75860         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75861         (CFLAGS-tst-auditmod4a.c): Likewise.
75862         (CFLAGS-tst-auditmod4b.c): Likewise.
75863         (CFLAGS-tst-auditmod6b.c): Likewise.
75864         (CFLAGS-tst-auditmod6c.c): Likewise.
75865         (CFLAGS-tst-auditmod7b.c): Likewise.
75866         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75867
75868 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75869
75870         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75871         function to the callback.
75872         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75873
75874 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75875
75876         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75877         of errno.
75878
75879 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75880
75881         [BZ #11724]
75882         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75883         of constructors.
75884         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75885         of destructors.
75886         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75887
75888         [BZ #11724]
75889         * elf/Makefile: Add rules to build and run new test.
75890         * elf/tst-initorder.c: New file.
75891         * elf/tst-initorder.exp: New file.
75892         * elf/tst-initordera1.c: New file.
75893         * elf/tst-initordera2.c: New file.
75894         * elf/tst-initordera3.c: New file.
75895         * elf/tst-initordera4.c: New file.
75896         * elf/tst-initorderb1.c: New file.
75897         * elf/tst-initorderb2.c: New file.
75898         * elf/tst-order-a1.c: New file.
75899         * elf/tst-order-a2.c: New file.
75900         * elf/tst-order-a3.c: New file.
75901         * elf/tst-order-a4.c: New file.
75902         * elf/tst-order-b1.c: New file.
75903         * elf/tst-order-b2.c: New file.
75904         * elf/tst-order-main.c: New file.
75905         New test case by George Gensure <werkt0@gmail.com>.
75906
75907 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75908
75909         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75910         decoding ACE if AI_CANONIDN.
75911
75912 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75913
75914         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75915
75916 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75917
75918         * version.h (RELEASE): Bump for 2.13 release.
75919         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75920
75921         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75922
75923         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75924         MADV_NOHUGEPAGE.
75925         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75926         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75927         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75928         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75929         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75930         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75931
75932         * posix/getconf.c: Update copyright year.
75933         * catgets/gencat.c: Likewise.
75934         * csu/version.c: Likewise.
75935         * debug/catchsegv.sh: Likewise.
75936         * debug/xtrace.sh: Likewise.
75937         * elf/ldconfig.c: Likewise.
75938         * elf/ldd.bash.in: Likewise.
75939         * elf/sprof.c (print_version): Likewise.
75940         * iconv/iconv_prog.c: Likewise.
75941         * iconv/iconvconfig.c: Likewise.
75942         * locale/programs/locale.c: Likewise.
75943         * locale/programs/localedef.c: Likewise.
75944         * malloc/memusage.sh: Likewise.
75945         * malloc/mtrace.pl: Likewise.
75946         * nscd/nscd.c (print_version): Likewise.
75947         * nss/getent.c: Likewise.
75948
75949         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75950         PF_CAIF, and PF_ALG.
75951         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75952
75953 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75954
75955         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75956         (modules-names): Use them.
75957         (ifunc-test-modules, ifunc-pie-tests): Define.
75958         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75959         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75960         (test-extras): Likewise.
75961         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75962         $(compile-command.c).
75963         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75964         (all-built-dso): Define.
75965         (check-textrel.out, check-execstack.out): Depend on it.
75966
75967         * configure.in: Don't override --enable-multi-arch.
75968
75969 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75970
75971         [BZ #6812]
75972         * nscd/hstcache.c (tryagain): Define.
75973         (cache_addhst): Return tryagain not notfound for temporary errors.
75974         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75975         failed.
75976
75977 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75978
75979         [BZ #10563]
75980         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75981         to make the syscall.
75982         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75983
75984         [BZ #12378]
75985         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75986         and fall back to matching as normal character if the string ends before
75987         the matching ']' is found.  This is what POSIX requires.
75988         * posix/testfnm.c: Adjust test result.
75989         * posix/globtest.sh: Adjust test result.  Add new test.
75990         * posix/tst-fnmatch.input: Likewise.
75991         * posix/tst-fnmatch2.c: Add new test.
75992
75993 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75994
75995         * elf/Makefile (check-execstack): Revert last change.  Depend on
75996         check-execstack.h.
75997         (check-execstack.h): New target.
75998         (generated): Add check-execstack.h.
75999         * elf/check-execstack.c: Include "check-execstack.h".
76000         (main): Revert last change.
76001         (handle_file): Return zero if GNU_STACK is absent and
76002         DEFAULT_STACK_PERMS doesn't include PF_X.
76003
76004 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
76005
76006         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
76007         in child fails because the descriptor is already closed.
76008         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
76009         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
76010         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
76011
76012         [BZ #12397]
76013         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
76014         syscall.
76015
76016         [BZ #10484]
76017         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
76018         temporary buffer used to handle multi lookups locally.
76019         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
76020
76021 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76022
76023         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
76024         loader is ld.so.
76025
76026 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
76027
76028         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
76029         alignment for SSE2.
76030
76031 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76032
76033         [BZ #12394]
76034         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
76035         characters.  When rounding increased number of integer digits recompute
76036         number of groups.
76037         * stdio-common/tst-grouping.c: New file.
76038         * stdio-common/Makefile: Add rules to build and run tst-grouping.
76039
76040 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
76041
76042         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
76043         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
76044
76045         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
76046         void.
76047         * bits/select.h: Likewise.
76048
76049 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
76050
76051         * po/ja.po: Update from translation team.
76052
76053 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
76054
76055         [BZ #11155]
76056         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
76057         implementation just like for lxstat, fxstatat, et al.
76058
76059 2010-12-27  Jim Meyering  <meyering@redhat.com>
76060
76061         [BZ #12348]
76062         * posix/regexec.c (build_trtable): Return failure indication upon
76063         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
76064
76065 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
76066
76067         [BZ #12201]
76068         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
76069         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
76070         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
76071         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
76072
76073         [BZ #12207]
76074         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
76075
76076         [BZ #12204]
76077         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
76078         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
76079
76080 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
76081
76082         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
76083         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
76084         script has SORT_BY_INIT_PRIORITY.
76085         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
76086         NO_CTORS_DTORS_SECTIONS is defined.
76087         * elf/soinit.c: Likewise.
76088         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
76089         NO_CTORS_DTORS_SECTIONS is defined.
76090         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
76091         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
76092         * sysdeps/sh/init-first.c: Likewise.
76093         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
76094
76095 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
76096
76097         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
76098         always use the slow path.
76099
76100 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
76101
76102         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
76103         similar rule which adds the sysdep directories to the header search in
76104         order to pick up the correct platform stackinfo.h.
76105         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
76106         perform test if it is, otherwise return successfully without testing.
76107         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
76108         DEFAULT_STACK_PERMS define in stackinfo.h.
76109         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
76110         defined in stackinfo.h.
76111         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
76112         DEFAULT_STACK_PERMS defined in stackinfo.h.
76113         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
76114         * sysdeps/ia64/stackinfo.h: Likewise.
76115         * sysdeps/s390/stackinfo.h: Likewise.
76116         * sysdeps/sh/stackinfo.h: Likewise.
76117         * sysdeps/sparc/stackinfo.h: Likewise.
76118         * sysdeps/x86_64/stackinfo.h: Likewise.
76119         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
76120         PF_X for powerpc64.  Retain PF_X for powerpc32.
76121
76122 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
76123
76124         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76125         accurately.
76126         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76127         GETDENTS_64BIT_ALIGNED.
76128
76129 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76130
76131         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76132
76133 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76134
76135         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76136         _GNU_SOURCE.
76137
76138         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76139         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76140         Remove __restrict.
76141         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76142         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76143
76144 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76145
76146         [BZ #11655]
76147         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76148         are initialized.
76149
76150 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76151
76152         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76153
76154 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76155
76156         * po/it.po: Update from translation team.
76157
76158 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76159
76160         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76161         unused codes.
76162
76163 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76164
76165         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76166
76167 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76168
76169         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76170         specially.
76171         (gaih_getanswer_slice): Likewise.
76172
76173 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76174
76175         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76176
76177 2010-05-31  Petr Baudis  <pasky@suse.cz>
76178
76179         [BZ #11149]
76180         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76181         silently even in the chroot mode.
76182
76183 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76184
76185         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76186         last patch a bit.  Pretty printing
76187
76188 2010-05-31  Petr Baudis <pasky@suse.cz>
76189
76190         [BZ #10085]
76191         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76192         initialization of skip_initgroups_dyn.
76193
76194 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76195
76196         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76197         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76198
76199 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76200
76201         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76202
76203 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76204
76205         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76206         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76207         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76208         ($(objpfx)tst-fnmatch-mem): New rule.
76209         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76210         * posix/tst-fnmatch.c (main): Call mtrace.
76211
76212 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76213
76214         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76215         Support Intel processor model 6 and model 0x2c.
76216
76217 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76218
76219         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76220           signed comparison.
76221
76222 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76223
76224         [BZ #12205]
76225         * string/test-strncasecmp.c (check_result): New function.
76226         (do_one_test): Use it.
76227         (check1): New function.
76228         (test_main): Use it.
76229         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76230         Support strcasecmp and strncasecmp.
76231
76232 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76233
76234         [BZ #12194]
76235         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76236         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76237
76238 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76239
76240         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76241         IFUNC support.
76242         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76243         memset-x86-64.
76244         * sysdeps/x86_64/multiarch/bzero.S: New file.
76245         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76246         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76247         * sysdeps/x86_64/multiarch/memset.S: New file.
76248         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76249         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76250         Set bit_Prefer_SSE_for_memop for Intel processors.
76251         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76252         Define.
76253         (index_Prefer_SSE_for_memop): Define.
76254         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76255
76256 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76257
76258         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76259         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76260
76261 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76262
76263         [BZ #12191]
76264         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76265         (__x86_64_raw_data_cache_size_half): Likewise.
76266         (__x86_64_raw_shared_cache_size): Likewise.
76267         (__x86_64_raw_shared_cache_size_half): Likewise.
76268
76269         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76270         (__x86_64_raw_data_cache_size_half): Likewise.
76271         (__x86_64_raw_shared_cache_size): Likewise.
76272         (__x86_64_raw_shared_cache_size_half): Likewise.
76273         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76274         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76275         and __x86_64_raw_shared_cache_size_half.  Round
76276         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76277         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76278         to multiple of 256 bytes.
76279
76280 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76281
76282         [BZ #12167]
76283         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76284         of inacessible symlinks.  Verify result of symlink before returning it.
76285         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76286         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76287
76288 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76289
76290         * math/math.h (isinf): Fix typo in comment.
76291
76292 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76293
76294         * po/da.po: Update from translation team.
76295
76296 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76297
76298         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76299         is added to the list.
76300
76301 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76302             Ulrich Drepper  <drepper@gmail.com>
76303
76304         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76305         the global list here.  Move code to...
76306         (_dl_add_to_namespace_list): ...here.  New function.
76307         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76308         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76309         * elf/dl-load.c (lose): Don't remove the element from the list.
76310         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76311         (_dl_map_object): Likewise.
76312
76313 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76314
76315         [BZ #12159]
76316         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76317         into all bytes of SSE register.
76318         Patch by Richard Li <richardpku@gmail.com>.
76319
76320 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76321
76322         [BZ #12140]
76323         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76324         perturbing.
76325
76326 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76327
76328         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76329         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76330         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76331         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76333         submachine.
76334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76335
76336 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76337
76338         * include/dlfcn.h (__RTLD_SECURE): Define.
76339         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76340         mode & __RTLD_SECURE instead.
76341         (open_path): Rename preloaded parameter to secure.
76342         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76343         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76344         * elf/dl-deps.c (openaux): Likewise.
76345         * elf/rtld.c (struct map_args): Remove is_preloaded.
76346         (map_doit): Don't use it.
76347         (dl_main): Likewise.
76348         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76349         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76350
76351 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76352
76353         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76354         (sysd-rules-targets): Remove duplicates.
76355         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76356         rtld-%.$o dependency.
76357
76358 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76359
76360         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76361         _dl_map_object do it.
76362
76363 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76364
76365         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76366         fast fma builtins, define the macros in the C99 standard.
76367         (FP_FAST_FMAF): Likewise.
76368         (FP_FAST_FMAL): Likewise.
76369         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76370
76371         * bits/mathdef.h: Update copyright year.
76372         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76373
76374 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76375
76376         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76377         builtins, define the macros in the C99 standard.
76378         (FP_FAST_FMAF): Likewise.
76379         (FP_FAST_FMAL): Likewise.
76380         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76381         multiply/add.
76382         (FP_FAST_FMAF): Likewise.
76383
76384 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76385
76386         [BZ #3268]
76387         * math/libm-test.inc (fma_test): Some new testcases.
76388         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76389         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76390         y and infinite z.  Do multiplication by C already in long double.
76391         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76392         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76393         y and infinite z.  Do bitwise or of inexact bit into u.d.
76394         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76395         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76396         * sysdeps/i386/fpu/s_fma.S: Removed.
76397         * sysdeps/i386/fpu/s_fmal.S: Removed.
76398
76399 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76400
76401         [BZ #3268]
76402         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76403         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76404         computation is not scheduled after fetestexcept.  Fix value
76405         of minimum denormal long double.
76406
76407 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76408
76409         [BZ #3268]
76410         * math/libm-test.inc (fma_test): Add some more tests.
76411         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76412         correctly.
76413
76414 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76415
76416         * scripts/data/localplt-s390-linux-gnu.data: New file.
76417         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76418
76419 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76420
76421         [BZ #3268]
76422         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76423         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76424         instead of dbl-64.
76425         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76426         inlines.
76427         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76428         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76429         if one of x and y is very large and the other is subnormal.
76430         * sysdeps/s390/fpu/s_fmaf.c: New file.
76431         * sysdeps/s390/fpu/s_fma.c: New file.
76432         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76433         * sysdeps/powerpc/fpu/s_fma.S: New file.
76434         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76435         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76436         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76437
76438 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76439
76440         [BZ #3268]
76441         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76442         fma tests.
76443         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76444         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76445         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76446         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76447         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76448         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76449         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76450
76451 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76452
76453         [BZ #12078]
76454         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76455         * posix/bug-regex31.input: Add test case.
76456
76457 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76458
76459         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76460         * posix/bug-regex31.input: New file.
76461
76462         [BZ #12078]
76463         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76464         (parse_sub_exp): Fix last change, use postorder.
76465
76466         * posix/bug-regex31.c: New file.
76467         * posix/Makefile: Add rules to build and run bug-regex31.
76468
76469         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76470
76471         [BZ #12078]
76472         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76473
76474         [BZ #12108]
76475         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76476         to have entries in sys_siglist.
76477
76478         [BZ #12093]
76479         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76480         be NULL.
76481
76482 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76483
76484         [BZ #3268]
76485         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76486         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76487         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76488         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76489         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76490         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76491         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76492         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76493         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76494         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76495         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76496         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76497         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76498         * math/ftestexcept.c (fetestexcept): Likewise.
76499         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76500         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76501         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76502         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76503         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76504         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76505         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76506
76507 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76508
76509         [BZ #12107]
76510         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76511         newline.
76512
76513 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76514
76515         * string/bug-strstr1.c: New file.
76516         * string/Makefile: Add rules to build and run bug-strstr1.
76517
76518 2010-10-05  Eric Blake  <eblake@redhat.com>
76519
76520         [BZ #12092]
76521         * string/str-two-way.h (two_way_long_needle): Always clear memory
76522         when skipping input due to the shift table.
76523
76524 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76525
76526         [BZ #12005]
76527         * malloc/mcheck.c: Handle large requests.
76528
76529         [BZ #12077]
76530         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76531         for strncmp and strncasecmp.
76532         * string/stratcliff.c: Add tests for strcmp and strncmp.
76533         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76534
76535 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76536
76537         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76538         __set_fpscr.
76539
76540 2010-09-30  Andreas Jaeger  <aj@suse.de>
76541
76542         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76543         (CGROUP_SUPER_MAGIC): Define.
76544         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76545         Handle btrfs and cgroup file systems.
76546         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76547         Likewise.
76548
76549 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76550
76551         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76552         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76553
76554 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76555
76556         [BZ #12067]
76557         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76558         trying to locate the ELF header.
76559
76560 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76561
76562         [BZ #11611]
76563         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76564         Mask out sign-bit copies when constructing f_fsid.
76565
76566 2010-09-24  Petr Baudis <pasky@suse.cz>
76567
76568         * debug/stack_chk_fail_local.c: Add missing licence exception.
76569         * debug/warning-nop.c: Likewise.
76570
76571 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76572
76573         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76574         implementing getdents64 using getdents syscall, set d_type if
76575         __ASSUME_GETDENTS32_D_TYPE.
76576
76577 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76578
76579         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76580         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76581
76582 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76583
76584         [BZ #12037]
76585         * posix/unistd.h: Undo change of feature selection for ftruncate from
76586         2010-01-11.
76587
76588 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76589
76590         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76591         detection.
76592
76593 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76594
76595         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76596         fanotify_mark.
76597         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76598
76599 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76600
76601         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76602         variables after CHECK_SP call.
76603         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76604
76605 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76606             Ulrich Drepper  <drepper@redhat.com>
76607
76608         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76609         re-relocationg ld.so.
76610         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76611         _dl_init_paths call.
76612         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76613         here anymore.
76614
76615 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76616
76617         * resolv/res_init.c (__res_vinit): Count the default server we added.
76618
76619 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76620             Ulrich Drepper  <drepper@redhat.com>
76621
76622         [BZ #11968]
76623         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76624         (____longjmp_chk): Use %ebx for saving value across system call.
76625         Add unwind info.
76626
76627 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76628
76629         * manual/Makefile: Don't mix pattern rules with normal rules.
76630
76631 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76632
76633         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76634         operation.
76635         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76636         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76637         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76638         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76639         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76640         Likewise.
76641
76642 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76643
76644         [BZ #11979]
76645         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76646         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76647
76648 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76649
76650         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76651         * sysdeps/x86_64/addmul_1.S: Likewise.
76652         * sysdeps/x86_64/lshift.S: Likewise.
76653         * sysdeps/x86_64/mul_1.S: Likewise.
76654         * sysdeps/x86_64/rshift.S: Likewise.
76655         * sysdeps/x86_64/sub_n.S: Likewise.
76656         * sysdeps/x86_64/submul_1.S: Likewise.
76657
76658 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76659
76660         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76661         Define __sched_param instead of SCHED_* and sched_param when
76662         <bits/sched.h> is included with __need_schedparam defined.
76663         * bits/sched.h [__need_schedparam]
76664         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76665         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76666         (__defined_schedparam): Define to 1.
76667         (__sched_param): New structure, identical to sched_param.
76668         (__need_schedparam): Undefine.
76669
76670 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76671
76672         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76673         (epoll_create1): Declare.
76674
76675         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76676
76677 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76678
76679         [BZ #7066]
76680         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76681         shifting retval into place.
76682
76683 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76684
76685         * nis/rpcsvc/nis.h: Update copyright notice.
76686         * nis/rpcsvc/nis.x: Likewise.
76687         * nis/rpcsvc/nis_callback.h: Likewise.
76688         * nis/rpcsvc/nis_callback.x: Likewise.
76689         * nis/rpcsvc/nis_object.x: Likewise.
76690         * nis/rpcsvc/nis_tags.h: Likewise.
76691         * nis/rpcsvc/yp.h: Likewise.
76692         * nis/rpcsvc/yp.x: Likewise.
76693         * nis/rpcsvc/ypupd.h: Likewise.
76694         * nis/yp_xdr.c: Likewise.
76695         * nis/ypupdate_xdr.c: Likewise.
76696
76697         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76698         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76699         (pmap_getport): Use __libc_rpc_getport.
76700         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76701         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76702         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76703
76704 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76705
76706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76707         fanotify_mark.
76708
76709 2010-08-27  Roland McGrath  <roland@redhat.com>
76710
76711         * sysdeps/i386/i686/multiarch/Makefile
76712         (CFLAGS-varshift.c): New variable.
76713
76714 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76715
76716         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76717         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76718
76719         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76720
76721         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76722
76723 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76724
76725         * sysdeps/x86_64/strlen.S: Unroll the loop.
76726         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76727         strlen-sse2 strlen-sse2-bsf.
76728         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76729         __strlen_no_bsf if bit_Slow_BSF is set.
76730         (__strlen_sse42): Removed.
76731         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76732         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76733
76734 2010-08-25  Roland McGrath  <roland@redhat.com>
76735
76736         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76737         * sysdeps/x86_64/multiarch/varshift.c: New file.
76738         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76739         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76740         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76741         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76742
76743 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76744
76745         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76746         strlen-sse2 strlen-sse2-bsf.
76747         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76748         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76749         (__strlen_sse2): Removed.
76750         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76751         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76752         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76753         bit_Slow_BSF for Atom.
76754         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76755         (index_Slow_BSF): Define.
76756         (HAS_SLOW_BSF): Define.
76757
76758 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76759
76760         [BZ #10851]
76761         * resolv/res_init.c (__res_vinit): When no server address at all
76762         is given default to loopback.
76763
76764 2010-08-24  Roland McGrath  <roland@redhat.com>
76765
76766         * configure.in: Remove config-name.h generation.
76767         * configure: Regenerated.
76768         * config-name.in: File removed.
76769         * scripts/config-uname.sh: New file.
76770         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76771         ($(objdir)config-name.h): New target.
76772
76773         * sunrpc/rpc_parse.h: Avoid nested comment.
76774
76775 2010-08-24  Richard Henderson  <rth@redhat.com>
76776             Ulrich Drepper  <drepper@redhat.com>
76777             H.J. Lu  <hongjiu.lu@intel.com>
76778
76779         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76781         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76782         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76783         _mm_alignr_epi8 with _mm_loadu_si128.
76784         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76785         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76786         (__m128i_shift_right): Removed.
76787         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76788         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76789         * sysdeps/x86_64/multiarch/varshift.h: New file.
76790         * sysdeps/x86_64/multiarch/varshift.S: New file.
76791
76792 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76793
76794         * configure.in: Move assembler checks to before sysdep dir checking.
76795
76796 2010-08-20  Petr Baudis  <pasky@suse.cz>
76797
76798         * LICENSES: Sync the sunrpc license.
76799
76800 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76801
76802         * sunrpc/auth_des.c: Update copyright notice once again.
76803         * sunrpc/auth_none.c: Likewise.
76804         * sunrpc/auth_unix.c: Likewise.
76805         * sunrpc/authdes_prot.c: Likewise.
76806         * sunrpc/authuxprot.c: Likewise.
76807         * sunrpc/bindrsvprt.c: Likewise.
76808         * sunrpc/clnt_gen.c: Likewise.
76809         * sunrpc/clnt_perr.c: Likewise.
76810         * sunrpc/clnt_raw.c: Likewise.
76811         * sunrpc/clnt_simp.c: Likewise.
76812         * sunrpc/clnt_tcp.c: Likewise.
76813         * sunrpc/clnt_udp.c: Likewise.
76814         * sunrpc/clnt_unix.c: Likewise.
76815         * sunrpc/des_crypt.c: Likewise.
76816         * sunrpc/des_soft.c: Likewise.
76817         * sunrpc/get_myaddr.c: Likewise.
76818         * sunrpc/getrpcport.c: Likewise.
76819         * sunrpc/key_call.c: Likewise.
76820         * sunrpc/key_prot.c: Likewise.
76821         * sunrpc/openchild.c: Likewise.
76822         * sunrpc/pm_getmaps.c: Likewise.
76823         * sunrpc/pm_getport.c: Likewise.
76824         * sunrpc/pmap_clnt.c: Likewise.
76825         * sunrpc/pmap_prot.c: Likewise.
76826         * sunrpc/pmap_prot2.c: Likewise.
76827         * sunrpc/pmap_rmt.c: Likewise.
76828         * sunrpc/rpc/auth.h: Likewise.
76829         * sunrpc/rpc/auth_unix.h: Likewise.
76830         * sunrpc/rpc/clnt.h: Likewise.
76831         * sunrpc/rpc/des_crypt.h: Likewise.
76832         * sunrpc/rpc/key_prot.h: Likewise.
76833         * sunrpc/rpc/netdb.h: Likewise.
76834         * sunrpc/rpc/pmap_clnt.h: Likewise.
76835         * sunrpc/rpc/pmap_prot.h: Likewise.
76836         * sunrpc/rpc/pmap_rmt.h: Likewise.
76837         * sunrpc/rpc/rpc.h: Likewise.
76838         * sunrpc/rpc/rpc_des.h: Likewise.
76839         * sunrpc/rpc/rpc_msg.h: Likewise.
76840         * sunrpc/rpc/svc.h: Likewise.
76841         * sunrpc/rpc/svc_auth.h: Likewise.
76842         * sunrpc/rpc/types.h: Likewise.
76843         * sunrpc/rpc/xdr.h: Likewise.
76844         * sunrpc/rpc_clntout.c: Likewise.
76845         * sunrpc/rpc_cmsg.c: Likewise.
76846         * sunrpc/rpc_common.c: Likewise.
76847         * sunrpc/rpc_cout.c: Likewise.
76848         * sunrpc/rpc_dtable.c: Likewise.
76849         * sunrpc/rpc_hout.c: Likewise.
76850         * sunrpc/rpc_main.c: Likewise.
76851         * sunrpc/rpc_parse.c: Likewise.
76852         * sunrpc/rpc_parse.h: Likewise.
76853         * sunrpc/rpc_prot.c: Likewise.
76854         * sunrpc/rpc_sample.c: Likewise.
76855         * sunrpc/rpc_scan.c: Likewise.
76856         * sunrpc/rpc_scan.h: Likewise.
76857         * sunrpc/rpc_svcout.c: Likewise.
76858         * sunrpc/rpc_tblout.c: Likewise.
76859         * sunrpc/rpc_util.c: Likewise.
76860         * sunrpc/rpc_util.h: Likewise.
76861         * sunrpc/rpcinfo.c: Likewise.
76862         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76863         * sunrpc/rpcsvc/key_prot.x: Likewise.
76864         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76865         * sunrpc/rpcsvc/mount.x: Likewise.
76866         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76867         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76868         * sunrpc/rpcsvc/rex.x: Likewise.
76869         * sunrpc/rpcsvc/rstat.x: Likewise.
76870         * sunrpc/rpcsvc/rusers.x: Likewise.
76871         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76872         * sunrpc/rpcsvc/spray.x: Likewise.
76873         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76874         * sunrpc/rtime.c: Likewise.
76875         * sunrpc/svc.c: Likewise.
76876         * sunrpc/svc_auth.c: Likewise.
76877         * sunrpc/svc_authux.c: Likewise.
76878         * sunrpc/svc_raw.c: Likewise.
76879         * sunrpc/svc_run.c: Likewise.
76880         * sunrpc/svc_simple.c: Likewise.
76881         * sunrpc/svc_tcp.c: Likewise.
76882         * sunrpc/svc_udp.c: Likewise.
76883         * sunrpc/svc_unix.c: Likewise.
76884         * sunrpc/svcauth_des.c: Likewise.
76885         * sunrpc/xcrypt.c: Likewise.
76886         * sunrpc/xdr.c: Likewise.
76887         * sunrpc/xdr_array.c: Likewise.
76888         * sunrpc/xdr_float.c: Likewise.
76889         * sunrpc/xdr_mem.c: Likewise.
76890         * sunrpc/xdr_rec.c: Likewise.
76891         * sunrpc/xdr_ref.c: Likewise.
76892         * sunrpc/xdr_sizeof.c: Likewise.
76893         * sunrpc/xdr_stdio.c: Likewise.
76894
76895         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76896         handling.
76897
76898 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76899
76900         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76901
76902 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76903
76904         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76905         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76906         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76907         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76908         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76909         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76910         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76911         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76912         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76913         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76914         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76915         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76916         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76917         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76918
76919 2010-07-26  Anton Blanchard  <anton@samba.org>
76920
76921         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76922         * malloc/arena.c (heap_trim): Likewise.
76923
76924 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76925
76926         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76927         here.  Not...
76928         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76929         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76930
76931 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76932
76933         * sysdeps/i386/elf/Makefile: New file.
76934
76935 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76936
76937         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76938         from fanotify_init.
76939         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76940         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76941
76942 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76943
76944         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76945         of strncasecmp_l.
76946         * sysdeps/multiarch/strcmp.S: Likewise.
76947
76948 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76949
76950         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76951         strncase_l-nonascii.
76952         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76953         Add strncase_l-ssse3.
76954         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76955         * sysdeps/x86_64/strcmp.S: Likewise.
76956         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76957         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76958         * sysdeps/x86_64/strncase.S: New file.
76959         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76960         * sysdeps/x86_64/strncase_l.S: New file.
76961         * string/Makefile (strop-tests): Add strncasecmp.
76962         * string/test-strncasecmp.c: New file.
76963
76964         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76965         warning.
76966
76967         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76968         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76969
76970 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76971
76972         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76973
76974 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76975
76976         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76977         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76978         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76979
76980 2010-05-01  Alan Modra  <amodra@gmail.com>
76981
76982         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76983         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76984         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76985         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76986         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76987         tidying.  Don't tail-call __sigjmp_save for static lib.
76988         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76989         save location.
76990         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76991         (CALL_MCOUNT): Add eh info, and nop after bl.
76992         (TAIL_CALL_SYSCALL_ERROR): New macro.
76993         (PSEUDO_RET): Use it.
76994         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76995         Correct save location of integer regs and cr.
76996         (_dl_profile_resolve): Correct cr save location.  Delete nops
76997         after bl when SHARED.  Reduce cfi size a little by better
76998         placement of cfi directives.
76999         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
77000         make a stack frame.  Instead use parm save area as a temp.
77001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
77002         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
77003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
77004         Don't make a stack frame for parent, use parm save area.
77005         Increase child stack frame to 112 bytes.  Don't save unused reg,
77006         and adjust reg usage.  Set up cfi on error recovery and
77007         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
77008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
77009         (__makecontext): Add dummy nop after jump to exit.
77010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
77011         Use correct parm save area and cr save, reduce stack frame.
77012         Correct cfi for possible PSEUDO_RET frame setup.
77013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
77014         Branch to local label emitted by PSEUDO_RET rather than
77015         __syscall_error.
77016
77017 2010-08-12  Andreas Schwab  <schwab@redhat.com>
77018
77019         [BZ #11904]
77020         * locale/programs/locale.c (print_assignment): New function.
77021         (show_locale_vars): Use it.
77022
77023 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
77024
77025         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
77026         field.
77027         (struct statfs64): Likewise.
77028         (_STATFS_F_FLAGS): Define.
77029         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
77030         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
77031         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
77032         (ST_VALID): Define locally.
77033         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
77034         __statvfs_getflags, use the provided value.
77035         * sysdeps/unix/sysv/linux/kernel-features.h: Define
77036         __ASSUME_STATFS_F_FLAGS.
77037
77038         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
77039
77040         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
77041         Add sys/fanotify.h.
77042         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
77043         fanotify_mask for GLIBC_2.13.
77044         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
77045         fanotify_init and fanotify_mark.
77046         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
77047         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
77048
77049         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
77050         Add prlimit.
77051         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
77052         prlimit64 for GLIBC_2.13.
77053         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
77054         prlimit64.
77055         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
77056         syscall.
77057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
77058         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
77059         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
77060         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
77061         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
77062         add prlimit alias.
77063         * sysdeps/unix/sysv/linux/prlimit.c: New file.
77064
77065         [BZ #11903]
77066         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
77067         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
77068
77069         * nss/Makefile: Add rules to build and run tst-nss-test1.
77070         * shlib-versions: Add entry for libnss_test1.
77071         * nss/nss_test1.c: New file.
77072         * nss/tst-nss-test1.c: New file.
77073
77074         * nss/nsswitch.c (__nss_database_custom): Define new variable.
77075         (__nss_configure_lookup): Set appropriate entry in
77076         __nss_configure_lookup to true.
77077         * nss/nsswitch.h: Define enum with indeces of databases in
77078         databases and __nss_database_custom arrays.  Declare
77079         __nss_database_custom.
77080         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
77081         to avoid using nscd when custom rules are installed.
77082         * nss/getXXbyYY_r.c: Likewise.
77083         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
77084
77085         * nss/nss_files/files-parse.c: Whitespace fixes.
77086
77087 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
77088
77089         [BZ #11883]
77090         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
77091         * posix/fnmatch_loop.c: Likewise.
77092
77093 2010-07-17  Andi Kleen  <ak@linux.intel.com>
77094
77095         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
77096         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
77097         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
77098         * Versions.def [GLIBC_2.13]: Add.
77099
77100 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
77101
77102         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77103         Also fail if tpwd after pwuid call is NULL.
77104
77105 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77106
77107         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
77108         when converting to ms.
77109
77110 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77111
77112         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
77113         EOPNOTSUPP errors with ENOTTY.
77114         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
77115         EOPNOTSUPP errors with ENOTTY.
77116
77117 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
77118
77119         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77120         Add strcasecmp_l-ssse3.
77121         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
77122         strcasecmp.
77123         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
77124         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77125         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77126
77127 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77128
77129         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77130
77131         * string/Makefile (strop-tests): Add strcasecmp.
77132         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77133         strcasecmp_l-nonascii.
77134         (gen-as-const-headers): Add locale-defines.sym.
77135         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77136         * sysdeps/x86_64/strcasecmp.S: New file.
77137         * sysdeps/x86_64/strcasecmp_l.S: New file.
77138         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77139         * sysdeps/x86_64/locale-defines.sym: New file.
77140         * string/test-strcasecmp.c: New file.
77141
77142         * string/test-strcasestr.c: Test both ends of the range of characters.
77143         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77144
77145 2010-07-29  Roland McGrath  <roland@redhat.com>
77146
77147         [BZ #11856]
77148         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77149
77150 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77151
77152         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77153         for ld.so.
77154
77155 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77156
77157         * manual/memory.texi (Malloc Tunable Parameters): Document
77158         M_PERTURB.
77159
77160 2010-07-26  Roland McGrath  <roland@redhat.com>
77161
77162         [BZ #11840]
77163         * configure.in (-fgnu89-inline check): Set and substitute
77164         gnu89_inline, not libc_cv_gnu89_inline.
77165         * configure: Regenerated.
77166         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77167
77168 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77169
77170         * string/test-strnlen.c: New file.
77171         * string/Makefile (strop-tests): Add strnlen.
77172         * string/tester.c (test_strnlen): Add a few more test cases.
77173         * string/tst-strlen.c: Better error reporting.
77174
77175         * sysdeps/x86_64/strnlen.S: New file.
77176
77177 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77178
77179         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77180         lower-latency instructions.
77181
77182 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77183
77184         * string/test-strcasestr.c: New file.
77185         * string/test-strstr.c: New file.
77186         * string/Makefile (strop-tests): Add strstr and strcasestr.
77187         * string/str-two-way.h: Don't undefine MAX.
77188         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77189
77190 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77191
77192         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77193         strcasestr-nonascii.
77194         (CFLAGS-strcasestr-nonascii.c): Define.
77195         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77196         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77197         Remove unused attribute.
77198
77199 2010-07-20  Roland McGrath  <roland@redhat.com>
77200
77201         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77202         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77203         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77204         like LD_HWCAP_MASK can disable hwcaps.
77205
77206 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77207
77208         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77209
77210 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77211
77212         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77213         call in strcasestr.
77214         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77215         __strcasestr_sse42_nonascii.
77216         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77217         strcasestr-nonascii.c.
77218         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77219
77220 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77221
77222         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77223         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77224         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77225         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77226
77227 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77228
77229         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77230         fcntl.
77231
77232 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77233
77234         [BZ #11577]
77235         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77236         dl_signal_cerror.
77237
77238 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77239
77240         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77241         _PC_PIPE_BUF using F_GETPIPE_SZ.
77242
77243 2010-07-05  Roland McGrath  <roland@redhat.com>
77244
77245         * manual/arith.texi (Rounding Functions): Fix rint description
77246         implicit in round description.
77247
77248 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77249
77250         * elf/Makefile: Fix linking for a few tests to make recent linker
77251         happy.
77252
77253 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77254
77255         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77256         $(common-objpfx)libc_nonshared.a.
77257
77258 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77259
77260         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77261         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77262         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77263         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77264         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77265         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77266         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77267         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77282         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77283         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77284         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77285         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77286         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77287         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77288         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77289         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77290         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77291         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77292         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77293         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77308
77309 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77310
77311         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77312         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77313         * string/memmove.c (memmove): Renamed to ...
77314         (MEMMOVE): ...this.  Default to memmove.
77315         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77316         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77317         (END_CHK): Define.
77318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77319         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77320         mempcpy-ssse3-back memmove-ssse3-back.
77321         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77322         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77323         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77324         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77325         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77326         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77327         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77328         * sysdeps/x86_64/multiarch/memmove.c: New file.
77329         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77330         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77331         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77332         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77333         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77334         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77335         Define.
77336         (index_Fast_Copy_Backward): Define.
77337         (HAS_ARCH_FEATURE): Define.
77338         (HAS_FAST_REP_STRING): Define.
77339         (HAS_FAST_COPY_BACKWARD): Define.
77340
77341 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77342
77343         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77344         Restore proper fallback handling.
77345
77346 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77347
77348         [BZ #11701]
77349         * posix/group_member.c (__group_member): Correct checking loop.
77350
77351         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77352         OOM in getpwuid_r correctly.  Return error number when the caller
77353         should return, otherwise -1.
77354         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77355         call returning > 0 value.
77356         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77357
77358 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77359
77360         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77361         libc_nonshared.a from targets in modules-names.
77362
77363 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77364
77365         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77366         requires it.
77367
77368 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77369
77370         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77371         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77372         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77373         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77374
77375 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77376
77377         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77378
77379 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77380
77381         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77382         and F_GETPIPE_SZ.
77383         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77384         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77385         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77386         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77387         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77388         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77389
77390 2010-06-14  Roland McGrath  <roland@redhat.com>
77391
77392         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77393
77394 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77395
77396         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77397         __REDIRECT followed by __THROW.
77398         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77399         * posix/getopt.h (getopt): Likewise.
77400
77401 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77402
77403         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77404         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77405         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77406         in AT_FLAGS.
77407         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77408         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77409
77410 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77411
77412         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77413
77414 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77415
77416         [BZ #11640]
77417         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77418         Properly check family and model.
77419
77420 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77421
77422         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77423
77424 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77425
77426         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77427
77428 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77429
77430         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77431         symbol reference.
77432
77433 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77434
77435         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77436         symbol reference.
77437
77438 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77439
77440         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77441         and internal_recvmmsg.
77442         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77443         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77444         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77445         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77446
77447         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77448         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77449         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77450
77451 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77452
77453         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77454
77455 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77456
77457         POWER7 optimizations.
77458         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77459         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77460
77461 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77462
77463         * version.h: Update for 2.13 development version.
77464
77465 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77466
77467         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77468         exceptions.  Return 0.
77469
77470 2010-05-07  Roland McGrath  <roland@redhat.com>
77471
77472         * elf/ldconfig.c (main): Add a const.
77473
77474 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77475
77476         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77477         (args_options): Add no-idn option.
77478         (ahosts_keys_int): Add idn_flags to ai_flags.
77479         (parse_option): Handle 'i' option to clear idn_flags.
77480
77481         * malloc/malloc.c (_int_free): Possible race in the most recently
77482         added check.  Only act on the data if no current modification
77483         happened.
77484
77485 See ChangeLog.17 for earlier changes.